summaryrefslogtreecommitdiff
path: root/doc/emacs
diff options
context:
space:
mode:
authorStefan Kangas <stefankangas@gmail.com>2019-08-24 01:02:04 +0200
committerStefan Kangas <stefankangas@gmail.com>2020-02-04 02:04:20 +0100
commit557b790e0a3fcb2cd4196a3119da3e92647f8def (patch)
treef2b6aaf62ae10fea500af2c09296eab5f5a1ab37 /doc/emacs
parentf9504ffba2e2604338c243dd77c877bbb8162e4a (diff)
downloademacs-557b790e0a3fcb2cd4196a3119da3e92647f8def.tar.gz
Add new help command describe-keymap
* lisp/help-fns.el (describe-keymap): New command to show key bindings for a given keymap. (Bug#30660) * doc/emacs/help.texi (Misc Help): Document the new command. * doc/lispref/keymaps.texi (Scanning Keymaps): Add a cross-reference to the above documentation. * etc/NEWS: Announce the new command. * test/lisp/help-fns-tests.el (help-fns-test-describe-keymap/symbol) (help-fns-test-describe-keymap/value) (help-fns-test-describe-keymap/not-keymap) (help-fns-test-describe-keymap/let-bound) (help-fns-test-describe-keymap/dynamically-bound-no-file): New tests. Co-authored-by: Drew Adams <drew.adams@oracle.com>
Diffstat (limited to 'doc/emacs')
-rw-r--r--doc/emacs/help.texi5
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/emacs/help.texi b/doc/emacs/help.texi
index fce6720b934..49c53c5cbc0 100644
--- a/doc/emacs/help.texi
+++ b/doc/emacs/help.texi
@@ -601,6 +601,11 @@ is @key{ESC}, because @kbd{@key{ESC} C-h} is actually @kbd{C-M-h},
which marks a defun. However, @w{@kbd{@key{ESC} @key{F1}}} and
@w{@kbd{@key{ESC} ?}} work fine.)
+@findex describe-keymap
+Finally, @kbd{M-x describe-keymap} prompts for the name of a keymap,
+with completion, and displays a listing of all key bindings in that
+keymap.
+
@node Help Files
@section Help Files