all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* about ido-completing-read and completing-read
@ 2007-05-31  4:22 William Xu
  2007-05-31 10:01 ` Juanma Barranquero
  0 siblings, 1 reply; 4+ messages in thread
From: William Xu @ 2007-05-31  4:22 UTC (permalink / raw)
  To: emacs-devel

Hi all, 

I'm addicted to ido-completing-read. Hence i want to enable it whenever
possible. Although i've turned on ido-everywhere, there are still places
using completing-read, such as woman, bookmark-jump, perldoc, webjump,
imenu, etags, etc. I find myself is keeping modifying their source codes
to replace completing-read with ido-completing-read..

How about adding a new user option, like  `ido-really-everythere', that
does ido-completing-read wherever possible?

-- 
William

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: about ido-completing-read and completing-read
  2007-05-31  4:22 about ido-completing-read and completing-read William Xu
@ 2007-05-31 10:01 ` Juanma Barranquero
  2007-05-31 10:50   ` William Xu
  0 siblings, 1 reply; 4+ messages in thread
From: Juanma Barranquero @ 2007-05-31 10:01 UTC (permalink / raw)
  To: William Xu; +Cc: emacs-devel

On 5/31/07, William Xu <william.xwl@gmail.com> 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.

             Juanma

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: about ido-completing-read and completing-read
  2007-05-31 10:01 ` Juanma Barranquero
@ 2007-05-31 10:50   ` William Xu
  2007-05-31 14:49     ` Juanma Barranquero
  0 siblings, 1 reply; 4+ messages in thread
From: William Xu @ 2007-05-31 10:50 UTC (permalink / raw)
  To: emacs-devel

"Juanma Barranquero" <lekktu@gmail.com> writes:

   On 5/31/07, William Xu <william.xwl@gmail.com> 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: about ido-completing-read and completing-read
  2007-05-31 10:50   ` William Xu
@ 2007-05-31 14:49     ` Juanma Barranquero
  0 siblings, 0 replies; 4+ messages in thread
From: Juanma Barranquero @ 2007-05-31 14:49 UTC (permalink / raw)
  To: William Xu; +Cc: emacs-devel

On 5/31/07, William Xu <william.xwl@gmail.com> wrote:

> 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.

It was a starting point. You can special-case some things from the
advice, I suppose. Whether it is easier than modifying the source of
every package that uses completing-read or not, it's your call.

             Juanma

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-05-31 14:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-31  4:22 about ido-completing-read and completing-read William Xu
2007-05-31 10:01 ` Juanma Barranquero
2007-05-31 10:50   ` William Xu
2007-05-31 14:49     ` Juanma Barranquero

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.