Commit 2ef581f3 authored by Richard M. Stallman's avatar Richard M. Stallman

(describe-mode): Handle minor mode w/o mode line indicator.

parent 32e2bcb8
......@@ -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))))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment