]> git.eshelyaron.com Git - emacs.git/commitdiff
(describe-mode): Handle minor mode w/o mode line indicator.
authorRichard M. Stallman <rms@gnu.org>
Mon, 18 Mar 1996 06:44:10 +0000 (06:44 +0000)
committerRichard M. Stallman <rms@gnu.org>
Mon, 18 Mar 1996 06:44:10 +0000 (06:44 +0000)
lisp/help.el

index ff1a4013c7b16bea12939148092e4eb7e4d5688f..ff1e9c8da1bae973cd99bf9fbcf0a66cc7cc1470 100644 (file)
@@ -334,8 +334,11 @@ describes the minor mode."
                                      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))))