From: Juri Linkov <juri@linkov.net>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: 10477@debbugs.gnu.org, jidanni@jidanni.org
Subject: bug#10477: zap-to-char should allow picking from history
Date: Sun, 27 Oct 2019 23:30:43 +0200 [thread overview]
Message-ID: <8736fe874s.fsf@mail.linkov.net> (raw)
In-Reply-To: <87zhi4rpg2.fsf@gnus.org> (Lars Ingebrigtsen's message of "Mon, 14 Oct 2019 05:11:41 +0200")
>> zap-to-char should allow typing e.g., the up arrow to pick a recently used
>> character, and then RET.
>>
>> Currently the only way is to type the actual character back in again!
>> Even if hard to type CKS!
>>
>> Currently one gets 'Non-character input-event'.
>
> I've now implemented this in Emacs 27 -- it was more code than expected,
> so perhaps simple.el isn't the right place for it. On the other hand,
> `zap-to-char' is there, so perhaps that's the right place for it?
I tried typing the up arrow, but it fails with the error
"Non-character input-event". Is this intentional?
> Or it could go to subr-x.el with an autoload -- `zap-to-char' probably
> isn't the most used command ever, anyway, and I'm not sure
> `read-char-with-history' has much utility outside that command.
Indeed, subr-x.el looks like a more suitable place.
Another variant is create a new file for commands reading input
with a name like read-x.el (or maybe minibuffer-x.el or prompt-x.el).
Then put here `read-char-with-history', also all functions from
lisp/emacs-lisp/map-ynp.el and lisp/emacs-lisp/rmc.el,
maybe also read-char-choice from subr.el.
next prev parent reply other threads:[~2019-10-27 21:30 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-11 3:27 bug#10477: zap-to-char should allow picking from history jidanni
2012-01-15 1:23 ` Drew Adams
2012-01-15 1:38 ` jidanni
2012-01-15 3:47 ` Drew Adams
2019-10-14 3:11 ` Lars Ingebrigtsen
2019-10-27 21:30 ` Juri Linkov [this message]
2019-10-27 22:14 ` Lars Ingebrigtsen
2019-10-27 22:34 ` Juri Linkov
2019-10-28 10:48 ` Lars Ingebrigtsen
2019-10-28 22:17 ` Juri Linkov
2019-10-29 11:32 ` Lars Ingebrigtsen
2019-10-29 23:01 ` Lars Ingebrigtsen
2019-10-30 0:00 ` Juri Linkov
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=8736fe874s.fsf@mail.linkov.net \
--to=juri@linkov.net \
--cc=10477@debbugs.gnu.org \
--cc=jidanni@jidanni.org \
--cc=larsi@gnus.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).