aboutsummaryrefslogtreecommitdiffstats
path: root/doc/lispref
diff options
context:
space:
mode:
authorStefan Kangas2019-08-24 01:02:04 +0200
committerStefan Kangas2020-02-04 02:04:20 +0100
commit557b790e0a3fcb2cd4196a3119da3e92647f8def (patch)
treef2b6aaf62ae10fea500af2c09296eab5f5a1ab37 /doc/lispref
parentf9504ffba2e2604338c243dd77c877bbb8162e4a (diff)
downloademacs-557b790e0a3fcb2cd4196a3119da3e92647f8def.tar.gz
emacs-557b790e0a3fcb2cd4196a3119da3e92647f8def.zip
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/lispref')
-rw-r--r--doc/lispref/keymaps.texi7
1 files changed, 5 insertions, 2 deletions
diff --git a/doc/lispref/keymaps.texi b/doc/lispref/keymaps.texi
index 259efea3248..4d513132e9f 100644
--- a/doc/lispref/keymaps.texi
+++ b/doc/lispref/keymaps.texi
@@ -1846,8 +1846,11 @@ local map.
1846@cindex scanning keymaps 1846@cindex scanning keymaps
1847@cindex keymaps, scanning 1847@cindex keymaps, scanning
1848 1848
1849 This section describes functions used to scan all the current keymaps 1849 This section describes functions used to scan all the current
1850for the sake of printing help information. 1850keymaps for the sake of printing help information. To display the
1851bindings in a particular keymap, you can use the
1852@code{describe-keymap} command (@pxref{Misc Help, , Other Help
1853Commands, emacs, The GNU Emacs Manual})
1851 1854
1852@defun accessible-keymaps keymap &optional prefix 1855@defun accessible-keymaps keymap &optional prefix
1853This function returns a list of all the keymaps that can be reached (via 1856This function returns a list of all the keymaps that can be reached (via