GNU bug report logs - #10477
zap-to-char should allow picking from history

Previous Next

Package: emacs;

Reported by: jidanni <at> jidanni.org

Date: Wed, 11 Jan 2012 03:29:01 UTC

Severity: wishlist

Tags: fixed

Fixed in version 27.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Juri Linkov <juri <at> linkov.net>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 10477 <at> debbugs.gnu.org, jidanni <at> jidanni.org
Subject: bug#10477: zap-to-char should allow picking from history
Date: Sun, 27 Oct 2019 23:30:43 +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.




This bug report was last modified 5 years and 210 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.