From: Richard M. Stallman Date: Sun, 4 Jul 1993 18:55:54 +0000 (+0000) Subject: (describe-prefix-bindings): Doc fix. X-Git-Tag: emacs-19.34~11869 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c7cba9cb35840fafba1b4b606398ae20c4166568;p=emacs.git (describe-prefix-bindings): Doc fix. --- diff --git a/lisp/help.el b/lisp/help.el index a88b14945c2..71be8f17a47 100644 --- a/lisp/help.el +++ b/lisp/help.el @@ -210,6 +210,9 @@ describes the minor mode." (recenter 0))) (defun describe-prefix-bindings () + "Describe the bindings of the prefix used to reach this command. +The prefix described consists of all but the last event +of the key sequence that ran this command." (interactive) (let* ((key (this-command-keys)) (prefix (make-vector (1- (length key)) nil)) @@ -219,6 +222,8 @@ describes the minor mode." (aset prefix i (aref key i)) (setq i (1+ i))) (describe-bindings prefix))) +;; Make C-h after a prefix, when not specifically bound, +;; run describe-prefix-bindings. (setq prefix-help-command 'describe-prefix-bindings) (defun view-emacs-news ()