From: Lars Ingebrigtsen <larsi@gnus.org>
To: Juri Linkov <juri@linkov.net>
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:14:46 +0100 [thread overview]
Message-ID: <874kztdeeh.fsf@gnus.org> (raw)
In-Reply-To: <8736fe874s.fsf@mail.linkov.net> (Juri Linkov's message of "Sun, 27 Oct 2019 23:30:43 +0200")
Juri Linkov <juri@linkov.net> writes:
>> 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?
That's the way the command has always worked, so I didn't change that.
>> 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.
Makes sense to me.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
next prev parent reply other threads:[~2019-10-27 22:14 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
2019-10-27 22:14 ` Lars Ingebrigtsen [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=874kztdeeh.fsf@gnus.org \
--to=larsi@gnus.org \
--cc=10477@debbugs.gnu.org \
--cc=jidanni@jidanni.org \
--cc=juri@linkov.net \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.