Mercurial > emacs
changeset 20848:4c3e62fe8898
(describe-bindings): New command (formerly in keymap.c).
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Thu, 05 Feb 1998 03:26:45 +0000 |
parents | b06dd0c28977 |
children | 3b2f72ed135c |
files | lisp/help.el |
diffstat | 1 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/help.el Thu Feb 05 03:25:11 1998 +0000 +++ b/lisp/help.el Thu Feb 05 03:26:45 1998 +0000 @@ -683,6 +683,15 @@ (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.