From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: William Xu Newsgroups: gmane.emacs.devel Subject: Re: about ido-completing-read and completing-read Date: Thu, 31 May 2007 18:50:20 +0800 Organization: the Church of Emacs Message-ID: <878xb5cln7.fsf@www.williamxu.com> References: <87vee9d3ks.fsf@www.williamxu.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1180608671 24856 80.91.229.12 (31 May 2007 10:51:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 31 May 2007 10:51:11 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu May 31 12:51:03 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HtiFA-0002aN-4q for ged-emacs-devel@m.gmane.org; Thu, 31 May 2007 12:51:00 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HtiF9-0001em-IK for ged-emacs-devel@m.gmane.org; Thu, 31 May 2007 06:50:59 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HtiF5-0001ef-W6 for emacs-devel@gnu.org; Thu, 31 May 2007 06:50:56 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HtiF4-0001eG-Kc for emacs-devel@gnu.org; Thu, 31 May 2007 06:50:54 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HtiF4-0001eD-DQ for emacs-devel@gnu.org; Thu, 31 May 2007 06:50:54 -0400 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HtiF3-0001Uf-Ut for emacs-devel@gnu.org; Thu, 31 May 2007 06:50:54 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1HtiEr-0004X1-5B for emacs-devel@gnu.org; Thu, 31 May 2007 12:50:41 +0200 Original-Received: from 203.86.61.139 ([203.86.61.139]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 31 May 2007 12:50:41 +0200 Original-Received: from william.xwl by 203.86.61.139 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 31 May 2007 12:50:41 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 26 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 203.86.61.139 User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) Cancel-Lock: sha1:wHqJ6RKgy0Sc6qqRIIi1X4fKJc4= X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:72011 Archived-At: "Juanma Barranquero" writes: On 5/31/07, William Xu wrote: > I find myself is keeping modifying their source codes > to replace completing-read with ido-completing-read.. You could try this: (defvar *completing-read-recursive* nil) (defadvice completing-read (around my-completing-read activate compile) (if *completing-read-recursive* ad-do-it (let ((*completing-read-recursive* t)) (ido-completing-read prompt collection predicate require-match initial-input hist def)))) to see whether it helps. Hmm, this would break some things. For instance, describe-function will fail now. Also, the `collection' parameter is different between them, ido-completing-read only accepts lists. -- William