changeset 14832:4d511dd9bfce

(describe-mode): Handle minor mode w/o mode line indicator.
author Richard M. Stallman <rms@gnu.org>
date Mon, 18 Mar 1996 06:44:10 +0000
parents df37dc2b9bfb
children f36ca038d81e
files lisp/help.el
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/help.el	Mon Mar 18 03:26:17 1996 +0000
+++ b/lisp/help.el	Mon Mar 18 06:44:10 1996 +0000
@@ -334,8 +334,11 @@
 				      0 (match-beginning 0)))))
 		(while (and indicator (symbolp indicator))
 		  (setq indicator (symbol-value indicator)))
-		(princ (format "%s minor mode (indicator%s):\n"
-			       pretty-minor-mode indicator))
+		(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"))))
 	(setq minor-modes (cdr minor-modes))))