Commit 4675e266 authored by Gerd Moellmann's avatar Gerd Moellmann
Browse files

(describe-mode): Test mini-mode symbol for being

bound before testing its value for being nil.
parent 28146d2b
......@@ -357,7 +357,8 @@ For minor modes, see following pages.\n\n"))
;; Document a minor mode if it is listed in minor-mode-alist,
;; bound locally in this buffer, non-nil, and has a function
;; definition.
(if (and (symbol-value minor-mode)
(if (and (boundp minor-mode)
(symbol-value minor-mode)
(fboundp minor-mode))
(let ((pretty-minor-mode minor-mode))
(if (string-match "-mode$" (symbol-name minor-mode))
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