From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Nicolas Richard" Subject: Re: for your amusement Date: Thu, 20 Feb 2014 11:55:47 +0100 Message-ID: <87iosaf3yk.fsf@yahoo.fr> References: <87ipd1d418.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52988) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WGRIP-0000hJ-VP for emacs-orgmode@gnu.org; Thu, 20 Feb 2014 05:56:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WGRIJ-0005z7-Tc for emacs-orgmode@gnu.org; Thu, 20 Feb 2014 05:56:01 -0500 Received: from plane.gmane.org ([80.91.229.3]:40115) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WGRIJ-0005yz-NN for emacs-orgmode@gnu.org; Thu, 20 Feb 2014 05:55:55 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WGRII-0002XE-4S for emacs-orgmode@gnu.org; Thu, 20 Feb 2014 11:55:54 +0100 Received: from mathsrv4.ulb.ac.be ([164.15.133.241]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 20 Feb 2014 11:55:54 +0100 Received: from theonewiththeevillook by mathsrv4.ulb.ac.be with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 20 Feb 2014 11:55:54 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Cc: bbdb-info@lists.sourceforge.net [fu2 gmane.emacs.bbdb.user] Eric Abrahamsen writes: > Incidentally, I'm using `ido-everywhere', and would like to write this > function so that it didn't _rely_ on ido, but made use of ido when > `ido-everywhere' was true. Ie, I'd like to replace the > `ido-completing-read' calls with something more generic that still made > use of ido when it was turned on. Any suggestions? ido-everywhere is only meant for buffer/file (see its docstring). People who really want ido everywhere should probably use ido-ubiquitous which sets completing-read-function to ido-completing-read (in fact, a wrapper around it because it cannot handle all cases that completing-read should handle). Hence, my suggestion would be to use completing-read instead of ido-completing-read in your code, and configure ido-ubiquitous (available from marmalade and melpa) for controlling what to use. Related package : ido-hacks (which also enables ido in more places) I *guess* it'll then also work automagically with icomplete-mode (shipped with recent emacs) if that is what the user enable instead of ido-ubiquitous. -- Nico.