[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#10477: zap-to-char should allow picking from history
From: |
Lars Ingebrigtsen |
Subject: |
bug#10477: zap-to-char should allow picking from history |
Date: |
Sun, 27 Oct 2019 23:14:46 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
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
- bug#10477: zap-to-char should allow picking from history, Lars Ingebrigtsen, 2019/10/13
- bug#10477: zap-to-char should allow picking from history, Juri Linkov, 2019/10/27
- bug#10477: zap-to-char should allow picking from history,
Lars Ingebrigtsen <=
- bug#10477: zap-to-char should allow picking from history, Juri Linkov, 2019/10/27
- bug#10477: zap-to-char should allow picking from history, Lars Ingebrigtsen, 2019/10/28
- bug#10477: zap-to-char should allow picking from history, Juri Linkov, 2019/10/28
- bug#10477: zap-to-char should allow picking from history, Lars Ingebrigtsen, 2019/10/29
- bug#10477: zap-to-char should allow picking from history, Lars Ingebrigtsen, 2019/10/29
- bug#10477: zap-to-char should allow picking from history, Juri Linkov, 2019/10/29