emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gmane.emacs.help] Info-mode and ido


From: Michael Olson
Subject: Re: [gmane.emacs.help] Info-mode and ido
Date: Sun, 30 Mar 2008 12:42:09 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

William Xu <address@hidden> writes:

> ,----[ Info-menu ]
> | (completing-read (if default
> |                      (format "Menu item (default %s): "
> |                              default)
> |                    "Menu item: ")
> |                  'Info-complete-menu-item nil t)
> `----
>
> I'm thinking that I need to replace completing-read with
> ido-completing-read.  I have read docstring of completing-read, but
> still can't figure it out how does it work when `collection' is
> function, in here, 'Info-complete-menu-buffer.

It would be best if a new customizable option called
`Info-completing-read-function' were defined, with 'completing-read as
its default value.  Then the code could just do:

  (funcall Info-completing-read-function ...)

I do this in all of the Emacs Lisp code I touch which uses
completing-read.

-- 
|       Michael Olson  |  FSF Associate Member #652     |
| http://mwolson.org/  |  Hobbies: Lisp, HCoop          |
| Projects: Emacs, Muse, ERC, EMMS, ErBot, DVC, Planner |
`-------------------------------------------------------'

Attachment: pgp0X1bTT5pTH.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]