[fu2 gmane.emacs.bbdb.user] Eric Abrahamsen <e...@ericabrahamsen.net> 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.