GNU bug report logs - #60101
29.0.60; help-quick should use C-/ for undo

Previous Next

Package: emacs;

Reported by: Philip Kaludercic <philipk <at> posteo.net>

Date: Thu, 15 Dec 2022 19:22:01 UTC

Severity: normal

Found in version 29.0.60

Full log


View this message in rfc822 format

From: Philip Kaludercic <philipk <at> posteo.net>
To: Juri Linkov <juri <at> linkov.net>
Cc: 60101 <at> debbugs.gnu.org
Subject: bug#60101: 29.0.60; help-quick should use C-/ for undo
Date: Sat, 17 Dec 2022 18:04:47 +0000
Juri Linkov <juri <at> linkov.net> writes:

>>> In lisp/bindings.el its preferred binding is defined by this line:
>>>
>>>   (put 'undo :advertised-binding [?\C-x ?u])
>>
>> That is good, but it only solves the problem by providing the means.
>> The other issue is figuring out how the advertised binding can
>> automatically be set to whatever is preferred on the current system.  Is
>> there a way to find out what keyboard layout is being used, or at least
>> what modifiers have to be pressed for a key to be input?
>
> If a key would be unbound on a tty, this could help to exclude it
> from the preferred keybindings.  For example, if C-/ was unbound
> depending on a tty type, then this would fall back to 'C-x u':
>
>   (put 'undo :advertised-binding '([?\C-/] [?\C-x ?u]))
>
> But otherwise, could you formulate a clear criteria for excluding
> some keys from the set of preferred keys?  Do you know how to
> query the current keyboard layout, or to find the preferred modifiers?

No, I don't know.  What I had in mind was a sort of ordering to find the
key with the fewest modifiers, depending on the keyboard layout.




This bug report was last modified 2 years and 243 days ago.

Previous Next


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