|
From: | Stefan Monnier |
Subject: | Re: rewriting y-or-n-p to use read-char-choice |
Date: | Thu, 10 Mar 2011 21:05:27 -0500 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
> 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 in Thread] | Current Thread | [Next in Thread] |