From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Ted Zlatanov <tzz@lifelogs.com>
Cc: emacs-devel@gnu.org
Subject: Re: rewriting y-or-n-p to use read-char-choice
Date: Thu, 10 Mar 2011 21:05:27 -0500 [thread overview]
Message-ID: <jwvd3lye7lk.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <8739mulshy.fsf@lifelogs.com> (Ted Zlatanov's message of "Thu, 10 Mar 2011 12:50:33 -0600")
> So I think a better way would be to write a
> `read-char-choice-from-keymap' function which can be passed
> `query-replace-map' or something else AND a prompt and a list of
> acceptable return values.
Using a keymap sounds good. It also means that the right way to
implement it is by using read-key-sequence (temporarily overshadowing
all the normal keymaps with the one provided).
Stefan
prev parent reply other threads:[~2011-03-11 2:05 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-10 18:50 rewriting y-or-n-p to use read-char-choice Ted Zlatanov
2011-03-10 19:10 ` Edward O'Connor
2011-03-10 19:46 ` Ted Zlatanov
2011-03-10 22:35 ` Drew Adams
2011-03-10 22:54 ` Ted Zlatanov
2011-03-10 23:48 ` Drew Adams
2011-03-11 2:05 ` Stefan Monnier [this message]
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=jwvd3lye7lk.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=emacs-devel@gnu.org \
--cc=tzz@lifelogs.com \
/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).