From: Juri Linkov <juri@jurta.org>
To: Michael Olson <mwolson@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: [gmane.emacs.help] Info-mode and ido
Date: Mon, 31 Mar 2008 02:06:29 +0300 [thread overview]
Message-ID: <87tzinn762.fsf@jurta.org> (raw)
In-Reply-To: <87ej9s6lta.fsf@grepfind.mwolson.org> (Michael Olson's message of "Sun, 30 Mar 2008 12:42:09 -0700")
>> ,----[ 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/
next prev parent reply other threads:[~2008-03-30 23:06 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-27 3:26 [gmane.emacs.help] Info-mode and ido William Xu
2008-03-30 19:42 ` Michael Olson
2008-03-30 23:06 ` Juri Linkov [this message]
2008-03-31 3:12 ` Drew Adams
2008-04-03 22:56 ` Juri Linkov
2008-03-30 23:22 ` William Xu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87tzinn762.fsf@jurta.org \
--to=juri@jurta.org \
--cc=emacs-devel@gnu.org \
--cc=mwolson@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).