From: Lars Ingebrigtsen <larsi@gnus.org>
To: Pierre-Yves Luyten <py@luyten.fr>
Cc: 29141@debbugs.gnu.org
Subject: bug#29141: 25.3; Precise if read-key of prefix key is active
Date: Wed, 18 May 2022 00:12:27 +0200 [thread overview]
Message-ID: <878rqzhkqc.fsf@gnus.org> (raw)
In-Reply-To: <89fdbabe-114f-0509-1993-03c15c9a8170@luyten.fr> (Pierre-Yves Luyten's message of "Fri, 3 Nov 2017 23:30:36 +0100")
Pierre-Yves Luyten <py@luyten.fr> writes:
> Expected behavior
> Since the user needs to learn the core of Emacs, it is necessary to be
> able to present to the user, not only available shortuts, but also the
> name of the current keymap
>
> Behavior
> As far as i know, there is no way to say if a prefix key is active.
> One could parse which shortcuts are active, then deduce which prefix key
> is active, but this would not be very reliable.
(I'm going through old bug reports that unfortunately weren't resolved
at the time.)
I'm not sure I understand what is being requested here. For instance:
(key-binding "\C-c")
=> (keymap (keymap (67108896 . erc-track-switch-buffer) (0 . erc-track-switch-buffer)) mode-specific-command-prefix)
If a key sequence is a prefix key, key-binding will return a keymap, so
you can check that.
As for "the name of the current keymap" -- I'm not sure I understand
that, either. current-local-map will return that, but perhaps something
else is means?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
next prev parent reply other threads:[~2022-05-17 22:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-03 22:30 bug#29141: 25.3; Precise if read-key of prefix key is active Pierre-Yves Luyten
2022-05-17 22:12 ` Lars Ingebrigtsen [this message]
2022-06-15 12:41 ` Lars Ingebrigtsen
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=878rqzhkqc.fsf@gnus.org \
--to=larsi@gnus.org \
--cc=29141@debbugs.gnu.org \
--cc=py@luyten.fr \
/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.