* Lookup the key-bindings of a function
@ 2008-10-06 10:30 Nordlöw
2008-10-06 11:10 ` Tassilo Horn
2008-10-06 11:21 ` Bernardo Bacic
0 siblings, 2 replies; 6+ messages in thread
From: Nordlöw @ 2008-10-06 10:30 UTC (permalink / raw)
To: help-gnu-emacs
How can I lookup, if present, the key-bindings bound to a function?
Thanks in advance,
Nordlöw
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Lookup the key-bindings of a function
2008-10-06 10:30 Lookup the key-bindings of a function Nordlöw
@ 2008-10-06 11:10 ` Tassilo Horn
2008-10-06 11:21 ` Bernardo Bacic
1 sibling, 0 replies; 6+ messages in thread
From: Tassilo Horn @ 2008-10-06 11:10 UTC (permalink / raw)
To: help-gnu-emacs
Nordlöw <per.nordlow@gmail.com> writes:
Hi!
> How can I lookup, if present, the key-bindings bound to a function?
,----[ C-h k C-h w ]
| C-h w runs the command where-is, which is an interactive compiled Lisp function
| in `help.el'.
|
| It is bound to C-h w, <f1> w, <help> w.
|
| (where-is definition &optional insert)
|
| Print message listing key sequences that invoke the command definition.
| Argument is a command definition, usually a symbol with a function definition.
| If insert (the prefix arg) is non-nil, insert the message in the buffer.
`----
Bye,
Tassilo
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Lookup the key-bindings of a function
2008-10-06 10:30 Lookup the key-bindings of a function Nordlöw
2008-10-06 11:10 ` Tassilo Horn
@ 2008-10-06 11:21 ` Bernardo Bacic
2008-10-06 11:22 ` Bernardo Bacic
[not found] ` <mailman.353.1223292167.25473.help-gnu-emacs@gnu.org>
1 sibling, 2 replies; 6+ messages in thread
From: Bernardo Bacic @ 2008-10-06 11:21 UTC (permalink / raw)
To: help-gnu-emacs
> How can I lookup, if present, the key-bindings bound to a function?
C-h <function-name> usually displays the key bindings
or did you want access this info programmatically?
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Lookup the key-bindings of a function
2008-10-06 11:21 ` Bernardo Bacic
@ 2008-10-06 11:22 ` Bernardo Bacic
[not found] ` <mailman.353.1223292167.25473.help-gnu-emacs@gnu.org>
1 sibling, 0 replies; 6+ messages in thread
From: Bernardo Bacic @ 2008-10-06 11:22 UTC (permalink / raw)
To: help-gnu-emacs
>
>> How can I lookup, if present, the key-bindings bound to a function?
> C-h <function-name> usually displays the key bindings
> or did you want access this info programmatically?
make that C-h f <function-name>
^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <mailman.353.1223292167.25473.help-gnu-emacs@gnu.org>]
* Re: Lookup the key-bindings of a function
[not found] ` <mailman.353.1223292167.25473.help-gnu-emacs@gnu.org>
@ 2008-10-06 11:39 ` Nordlöw
2008-10-06 12:44 ` Tassilo Horn
0 siblings, 1 reply; 6+ messages in thread
From: Nordlöw @ 2008-10-06 11:39 UTC (permalink / raw)
To: help-gnu-emacs
On 6 Okt, 13:22, Bernardo Bacic <bernardo.ba...@pobox.com> wrote:
> >> How can I lookup, if present, the key-bindings bound to a function?
> > C-h <function-name> usually displays the key bindings
> > or did you want access this info programmatically?
>
> make that C-h f <function-name>
Forgot to tell you all: How do I do this programmatically? I want to
automatically create a quick-sheet for the most used functions and the
keybindings.
/Nordlöw
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Lookup the key-bindings of a function
2008-10-06 11:39 ` Nordlöw
@ 2008-10-06 12:44 ` Tassilo Horn
0 siblings, 0 replies; 6+ messages in thread
From: Tassilo Horn @ 2008-10-06 12:44 UTC (permalink / raw)
To: help-gnu-emacs
Nordlöw <per.nordlow@gmail.com> writes:
Hi!
> Forgot to tell you all: How do I do this programmatically?
(where-is-internal 'org-agenda) ;; <== C-x C-e
==> ([3 111 97]) ;; which is `C-c o a'
If you want the key as string `kbd' would accept, use:
(mapcar 'key-description (where-is-internal 'org-agenda))
==> ("C-c o a")
Bye,
Tassilo
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2008-10-06 12:44 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-06 10:30 Lookup the key-bindings of a function Nordlöw
2008-10-06 11:10 ` Tassilo Horn
2008-10-06 11:21 ` Bernardo Bacic
2008-10-06 11:22 ` Bernardo Bacic
[not found] ` <mailman.353.1223292167.25473.help-gnu-emacs@gnu.org>
2008-10-06 11:39 ` Nordlöw
2008-10-06 12:44 ` Tassilo Horn
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).