From: Philip Kaludercic <philipk@posteo.net>
To: Juri Linkov <juri@linkov.net>
Cc: 60101@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 [thread overview]
Message-ID: <87pmch6h4w.fsf@posteo.net> (raw)
In-Reply-To: <86cz8i11a9.fsf@mail.linkov.net> (Juri Linkov's message of "Sat, 17 Dec 2022 19:16:06 +0200")
Juri Linkov <juri@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.
next prev parent reply other threads:[~2022-12-17 18:04 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-15 19:21 bug#60101: 29.0.60; help-quick should use C-/ for undo Philip Kaludercic
2022-12-15 19:34 ` Juri Linkov
2022-12-16 19:18 ` Philip Kaludercic
2022-12-17 17:16 ` Juri Linkov
2022-12-17 18:04 ` Philip Kaludercic [this message]
2022-12-17 17:10 ` Juri Linkov
2022-12-17 18:03 ` Philip Kaludercic
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=87pmch6h4w.fsf@posteo.net \
--to=philipk@posteo.net \
--cc=60101@debbugs.gnu.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.