summaryrefslogtreecommitdiff
path: root/lisp/help.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1996-07-24 16:52:33 +0000
committerRichard M. Stallman <rms@gnu.org>1996-07-24 16:52:33 +0000
commit88e48a0c944116855af052a3e091bb4fee483f85 (patch)
treea1699374d7f927663eb0bc4c9c725158f7fca663 /lisp/help.el
parent4277a49f0eb7f6d7606bba3a806f78fb590f2732 (diff)
downloademacs-88e48a0c944116855af052a3e091bb4fee483f85.tar.gz
(describe-mode): Put a formfeed between each two modes.
Print a message at the top explaining that minor modes come first followed by the major mode.
Diffstat (limited to 'lisp/help.el')
-rw-r--r--lisp/help.el7
1 files changed, 6 insertions, 1 deletions
diff --git a/lisp/help.el b/lisp/help.el
index ff1e9c8da1b..a0e195b3436 100644
--- a/lisp/help.el
+++ b/lisp/help.el
@@ -315,6 +315,7 @@ describes the minor mode."
(interactive)
(with-output-to-temp-buffer "*Help*"
(let ((minor-modes minor-mode-alist)
+ (first t)
(locals (buffer-local-variables)))
(while minor-modes
(let* ((minor-mode (car (car minor-modes)))
@@ -334,13 +335,17 @@ describes the minor mode."
0 (match-beginning 0)))))
(while (and indicator (symbolp indicator))
(setq indicator (symbol-value indicator)))
+ (if first
+ (princ "The minor modes are described first,
+followed by the major mode, which is described on the last page.\n\f\n"))
+ (setq first nil)
(princ (format "%s minor mode (%s):\n"
pretty-minor-mode
(if indicator
(format "indicator%s" indicator)
"no indicator")))
(princ (documentation minor-mode))
- (princ "\n\n"))))
+ (princ "\n\f\n"))))
(setq minor-modes (cdr minor-modes))))
(princ mode-name)
(princ " mode:\n")