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: Juri Linkov
Subject: Re: [gmane.emacs.help] Info-mode and ido
Date: Mon, 31 Mar 2008 02:06:29 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (x86_64-pc-linux-gnu)

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

I think it would be better to create a new `completing-read-function'
variable like already existing `read-file-name-function' and
`read-buffer-function'.

-- 
Juri Linkov
http://www.jurta.org/emacs/




reply via email to

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