Can I use ido-completing-read instead of completing-read everywhere?

Posted by haxney on Stack Overflow See other posts from Stack Overflow or by haxney
Published on 2009-05-25T04:39:51Z Indexed on 2010/04/16 6:43 UTC
Read the original article Hit count: 442

Filed under:
|
|
|

I'm a big fan of ido-mode, so much so that I would like to use it for things like describe-function or find-tag and so on, without having to write something like in "Can I get ido-mode-style completion for searching tags in Emacs?" for each one.

Both

(defalias completing-read ido-completing-read)

and

(setf 'completing-read 'ido-completing-read)

don't work, at least partly because ido-completing-read calls completing-read in its body, so any simple redefinition would result in infinite recursion.

In theory, it should be possible, since the first line of the docstring for ido-completing-read is "Ido replacement for the built-in completing-read." I've looked around a bit and can't seem to find anyone else who has attempted or succeeded at it.

I realize that Icicles [2] probably provides something like this, and I may end up going with that anyway, but it is a bit more of a plunge than I care to take right now.

Thanks for any help.

© Stack Overflow or respective owner

Related posts about emacs

Related posts about ido-mode