* RE: Built-In Keybindingr associated with functions keys F2, F3, etc [not found] ` <<83y2jwghr0.fsf@gnu.org> @ 2020-10-24 16:49 ` Drew Adams 2020-10-24 17:28 ` Christopher Dimech 0 siblings, 1 reply; 6+ messages in thread From: Drew Adams @ 2020-10-24 16:49 UTC (permalink / raw) To: Eli Zaretskii, help-gnu-emacs > > > 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 ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: RE: Built-In Keybindingr associated with functions keys F2, F3, etc 2020-10-24 16:49 ` Built-In Keybindingr associated with functions keys F2, F3, etc Drew Adams @ 2020-10-24 17:28 ` Christopher Dimech 0 siblings, 0 replies; 6+ messages in thread From: Christopher Dimech @ 2020-10-24 17:28 UTC (permalink / raw) To: Drew Adams; +Cc: help-gnu-emacs The most useful one I found was "C-h b". > Sent: Saturday, October 24, 2020 at 6:49 PM > 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 > > > > > 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 > > ^ permalink raw reply [flat|nested] 6+ messages in thread
* Built-In Keybindingr associated with functions keys F2, F3, etc @ 2020-10-23 19:42 Christopher Dimech 2020-10-23 22:13 ` Tassilo Horn 0 siblings, 1 reply; 6+ messages in thread From: Christopher Dimech @ 2020-10-23 19:42 UTC (permalink / raw) To: Help Gnu Emacs 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)? Regards Christopher ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Built-In Keybindingr associated with functions keys F2, F3, etc 2020-10-23 19:42 Christopher Dimech @ 2020-10-23 22:13 ` Tassilo Horn 2020-10-23 22:49 ` Drew Adams 0 siblings, 1 reply; 6+ messages in thread From: Tassilo Horn @ 2020-10-23 22:13 UTC (permalink / raw) To: Christopher Dimech; +Cc: Help Gnu Emacs Christopher Dimech <dimech@gmx.com> writes: > 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)? You can usually get that information for any prefix key by typing `<prefix> C-h'. So for example `<f2> C-h' shows: --8<---------------cut here---------------start------------->8--- `2C-mode' Minor Mode Bindings Starting With <f2>: key binding --- ------- <f2> RET 2C-newline <f2> 1 2C-merge <f2> d 2C-dissociate <f2> o 2C-associated-buffer <f2> { 2C-shrink-window-horizontally <f2> | 2C-toggle-autoscroll <f2> } 2C-enlarge-window-horizontally \f Global Bindings Starting With <f2>: key binding --- ------- <f2> 2 2C-two-columns <f2> b 2C-associate-buffer <f2> s 2C-split <f2> <f2> 2C-two-columns --8<---------------cut here---------------end--------------->8--- HTH, Tassilo ^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: Built-In Keybindingr associated with functions keys F2, F3, etc 2020-10-23 22:13 ` Tassilo Horn @ 2020-10-23 22:49 ` Drew Adams 2020-10-24 8:17 ` Eli Zaretskii 0 siblings, 1 reply; 6+ messages in thread From: Drew Adams @ 2020-10-23 22:49 UTC (permalink / raw) To: Tassilo Horn, Christopher Dimech; +Cc: Help Gnu Emacs > 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.) <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>. `C-h b' shows those keys, however. And `C-h k <f1>' shows you that it's a prefix command by waiting for you to type another key, to complete the key sequence. The others I listed are bound to simple commands. They're not prefix keys. `C-h k' tells you about each one. ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Built-In Keybindingr associated with functions keys F2, F3, etc 2020-10-23 22:49 ` Drew Adams @ 2020-10-24 8:17 ` Eli Zaretskii 0 siblings, 0 replies; 6+ messages in thread From: Eli Zaretskii @ 2020-10-24 8:17 UTC (permalink / raw) To: help-gnu-emacs > Date: Fri, 23 Oct 2020 15:49:41 -0700 (PDT) > From: Drew Adams <drew.adams@oracle.com> > Cc: Help Gnu Emacs <help-gnu-emacs@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. > <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. > The others I listed are bound to simple commands. They're not > prefix keys. `C-h k' tells you about each one. Yes. So either C-h k or <KEY> C-h will do. ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2020-10-24 17:28 UTC | newest] Thread overview: 6+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- [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 ` Built-In Keybindingr associated with functions keys F2, F3, etc Drew Adams 2020-10-24 17:28 ` 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
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).