From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Abrahamsen Subject: Re: for your amusement Date: Thu, 20 Feb 2014 19:29:58 +0800 Message-ID: <8738je2f9l.fsf@ericabrahamsen.net> References: <87ipd1d418.fsf@ericabrahamsen.net> <87iosaf3yk.fsf@yahoo.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34114) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WGRrl-0008I0-5y for emacs-orgmode@gnu.org; Thu, 20 Feb 2014 06:32:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WGRrg-00011c-13 for emacs-orgmode@gnu.org; Thu, 20 Feb 2014 06:32:33 -0500 Received: from plane.gmane.org ([80.91.229.3]:45237) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WGRrf-00011W-Pa for emacs-orgmode@gnu.org; Thu, 20 Feb 2014 06:32:27 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WGRre-0000qp-0A for emacs-orgmode@gnu.org; Thu, 20 Feb 2014 12:32:26 +0100 Received: from 111.199.145.158 ([111.199.145.158]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 20 Feb 2014 12:32:25 +0100 Received: from eric by 111.199.145.158 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 20 Feb 2014 12:32:25 +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 "Nicolas Richard" writes: > [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. Gosh, where did you guys dig this thread up from? :) Thanks for the refinements on the original function, and for the tips on ido related packages in elpa repos -- I hadn't been aware of that. I've been a tiny bit annoyed with this function ever since I wrote it (obviously not annoyed enough, since that was years ago), as progressive narrowing didn't work the way I wanted it to. Kevin, I'll give your version a whack, and maybe come back with some more refinements in a bit. Thanks! E