aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1993-07-04 18:53:24 +0000
committerRichard M. Stallman1993-07-04 18:53:24 +0000
commit61c6b658a91c62ceb19d26953b3ec33a0042e286 (patch)
tree43b4c7bbb574134b4a4535f1be543ed54123de2b
parente9b2008b9b3c23f4064b73b71c71023801fb6abd (diff)
downloademacs-61c6b658a91c62ceb19d26953b3ec33a0042e286.tar.gz
emacs-61c6b658a91c62ceb19d26953b3ec33a0042e286.zip
(describe-prefix-bindings): New command.
(prefix-help-command): Set it.
-rw-r--r--lisp/help.el14
1 files changed, 13 insertions, 1 deletions
diff --git a/lisp/help.el b/lisp/help.el
index 00dcd3a0469..a88b14945c2 100644
--- a/lisp/help.el
+++ b/lisp/help.el
@@ -159,7 +159,7 @@ If FUNCTION is nil, applies `message' to it, thus printing it."
159If optional MINOR is non-nil (or prefix argument is given if interactive), 159If optional MINOR is non-nil (or prefix argument is given if interactive),
160display documentation of active minor modes as well. 160display documentation of active minor modes as well.
161For this to work correctly for a minor mode, the mode's indicator variable 161For this to work correctly for a minor mode, the mode's indicator variable
162(listed in `minor-mode-alist') must also be a function whose documentation 162\(listed in `minor-mode-alist') must also be a function whose documentation
163describes the minor mode." 163describes the minor mode."
164 (interactive) 164 (interactive)
165 (with-output-to-temp-buffer "*Help*" 165 (with-output-to-temp-buffer "*Help*"
@@ -209,6 +209,18 @@ describes the minor mode."
209 (search-forward "NO WARRANTY") 209 (search-forward "NO WARRANTY")
210 (recenter 0))) 210 (recenter 0)))
211 211
212(defun describe-prefix-bindings ()
213 (interactive)
214 (let* ((key (this-command-keys))
215 (prefix (make-vector (1- (length key)) nil))
216 i)
217 (setq i 0)
218 (while (< i (length prefix))
219 (aset prefix i (aref key i))
220 (setq i (1+ i)))
221 (describe-bindings prefix)))
222(setq prefix-help-command 'describe-prefix-bindings)
223
212(defun view-emacs-news () 224(defun view-emacs-news ()
213 "Display info on recent changes to Emacs." 225 "Display info on recent changes to Emacs."
214 (interactive) 226 (interactive)