From a8ad43aa290bffa435821f31ddbec8d283d1d859 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Thu, 5 Feb 1998 03:26:45 +0000 Subject: [PATCH] (describe-bindings): New command (formerly in keymap.c). --- lisp/help.el | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lisp/help.el b/lisp/help.el index 2ab2c9cb0a..12b8834489 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. -- 2.20.1