From: Gerd Moellmann Date: Sun, 6 Aug 2000 12:09:31 +0000 (+0000) Subject: (describe-mode): Test mini-mode symbol for being X-Git-Tag: emacs-pretest-21.0.90~2469 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=4675e266da757dd73b39a87e11c27465dc952970;p=emacs.git (describe-mode): Test mini-mode symbol for being bound before testing its value for being nil. --- diff --git a/lisp/help.el b/lisp/help.el index c3dfc518aaf..2950ffd5929 100644 --- a/lisp/help.el +++ b/lisp/help.el @@ -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))