summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1998-02-05 03:26:45 +0000
committerRichard M. Stallman <rms@gnu.org>1998-02-05 03:26:45 +0000
commit7d149550594bd42dbd7eceda985242f1506a84b5 (patch)
tree2a7fc0f4bcd192b7eaeea4cb22860951b99d4a23
parentf134248a80a312a82b8a854379f66205df0c3655 (diff)
downloademacs-7d149550594bd42dbd7eceda985242f1506a84b5.tar.gz
(describe-bindings): New command (formerly in keymap.c).
-rw-r--r--lisp/help.el9
1 files changed, 9 insertions, 0 deletions
diff --git a/lisp/help.el b/lisp/help.el
index 2ab2c9cb0a1..12b88344894 100644
--- a/lisp/help.el
+++ b/lisp/help.el
@@ -683,6 +683,15 @@ Returns the documentation as a string, also."
(buffer-string))))
(message "You did not specify a variable")))
+(defun describe-bindings (&optional prefix)
+ "Show a list of all defined keys, and their definitions.
+We put that list in a buffer, and display the buffer.
+
+The optional argument PREFIX, if non-nil, should be a key sequence;
+then we display only bindings that start with that prefix."
+ (interactive "p")
+ (describe-bindings-internal nil prefix))
+
(defun where-is (definition &optional insert)
"Print message listing key sequences that invoke specified command.
Argument is a command definition, usually a symbol with a function definition.