From: Drew Adams <drew.adams@oracle.com>
To: Eli Zaretskii <eliz@gnu.org>, help-gnu-emacs@gnu.org
Subject: RE: Built-In Keybindingr associated with functions keys F2, F3, etc
Date: Sat, 24 Oct 2020 09:49:58 -0700 (PDT) [thread overview]
Message-ID: <64eeccd1-1971-477d-8f3a-75ce4c421b4a@default> (raw)
In-Reply-To: <<83y2jwghr0.fsf@gnu.org>>
> > > You can usually get that information for any prefix key by typing
> > > `<prefix> C-h'. So for example `<f2> C-h' shows:...
> >
> > (But <f1>, <f3>, <f4>, <f10>, <f11> are not,
> > by default, prefix keys.)
>
> Why does that matter, for the issue at hand? This is a kind of rigor
> that should have no place in this discussion. Tassilo is factually
> correct: the way he pointed out _is_ the way of asking Emacs about key
> sequences that start with a given key.
(FWIW, your hostility is what "has no place in
the discussion." Lighten up a little, please.)
I simply pointed out that what the OP asked about
isn't completely answered by the (otherwise fine)
answer that you can use C-h after a prefix key.
If Tassilo hadn't mentioned using C-h after a
prefix key, then I would have. That's a general,
if partial, answer to the OP's question, and a
very good one.
My post tried to respond directly to the question
about F2, F3, etc.:
There are 48 bindings starting with <f1>.
Is there a list somewhere on Built-In Emacs
Keybindings associated with the other functions
keys (F2, F3, etc)?
> > <f1> is bound to `help-command', which is a
> > prefix command, and `C-h f help-command' tells
> > you its definition is a keymap. But `<f1> C-h'
> > doesn't tell you about keys with prefix <f1>.
>
> It does here.
I should have said that it doesn't tell you about
ALL of the keys with prefix <f1>. And it doesn't
tell you the same thing that C-h following a
prefix key tells you: the _commands_ that are
bound to the keys.
(That's not its purpose. It tells you what kinds
of things you can do with C-h, which is fine.)
For example, `<f1> C-h' doesn't tell you about
these six keys following <f1>: C-h, C-\, ?, <f1>,
q, and `4 i'.
To be clear, I'm not saying it should or needs to.
But if someone is asking for a _list of all_ the
keys you can use after <f1>, `<f1> C-h' doesn't do
that.
[4 of the 6 unlisted keys are bound to commands
that are also bound to other keys that `<f1> C-h'
_does_ tell you about. So it tells you how to do
those things. But it doesn't tell you all of the
keys that let you do them. And it doesn't tell
you which commands are involved and provide links
to their `C-h f' help. And it misses the keys
for `help-quit' and `info-other-window'.]
Another difference: The help you see from `<f1>
C-h' is hard-coded. If someone or some library
adds key bindings to keymap `help-map' then you
won't see them listed by `<f1> C-h'. (If the
usual behavior of C-h following a prefix key
were followed, then you would see them listed.)
___
To add a bit to my answer: if you use library
help-fns+.el then you can use `C-h M-k help-map'
to see all of that keymap's key bindings (in the
same format used by `C-h b', or C-h following a
prefix key).
https://www.emacswiki.org/emacs/download/help-fns%2b.el
next parent reply other threads:[~2020-10-24 16:49 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <<trinity-92d3fa12-3682-47fd-9f07-718fb0aecdad-1603482123573@3c-app-mailcom-bs08>
[not found] ` <<877drga8wf.fsf@gnu.org>
[not found] ` <<54bdb735-681a-4429-b6f8-0ab9f1c366b0@default>
[not found] ` <<83y2jwghr0.fsf@gnu.org>
2020-10-24 16:49 ` Drew Adams [this message]
2020-10-24 17:28 ` RE: Built-In Keybindingr associated with functions keys F2, F3, etc Christopher Dimech
2020-10-23 19:42 Christopher Dimech
2020-10-23 22:13 ` Tassilo Horn
2020-10-23 22:49 ` Drew Adams
2020-10-24 8:17 ` Eli Zaretskii
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=64eeccd1-1971-477d-8f3a-75ce4c421b4a@default \
--to=drew.adams@oracle.com \
--cc=eliz@gnu.org \
--cc=help-gnu-emacs@gnu.org \
/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.