comparison lisp/help.el @ 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 456ed25a8605
children 6566e48896f4
comparison
equal deleted inserted replaced
20847:b06dd0c28977 20848:4c3e62fe8898
681 (set-buffer standard-output) 681 (set-buffer standard-output)
682 ;; Return the text we displayed. 682 ;; Return the text we displayed.
683 (buffer-string)))) 683 (buffer-string))))
684 (message "You did not specify a variable"))) 684 (message "You did not specify a variable")))
685 685
686 (defun describe-bindings (&optional prefix)
687 "Show a list of all defined keys, and their definitions.
688 We put that list in a buffer, and display the buffer.
689
690 The optional argument PREFIX, if non-nil, should be a key sequence;
691 then we display only bindings that start with that prefix."
692 (interactive "p")
693 (describe-bindings-internal nil prefix))
694
686 (defun where-is (definition &optional insert) 695 (defun where-is (definition &optional insert)
687 "Print message listing key sequences that invoke specified command. 696 "Print message listing key sequences that invoke specified command.
688 Argument is a command definition, usually a symbol with a function definition. 697 Argument is a command definition, usually a symbol with a function definition.
689 If INSERT (the prefix arg) is non-nil, insert the message in the buffer." 698 If INSERT (the prefix arg) is non-nil, insert the message in the buffer."
690 (interactive 699 (interactive