changeset 30621:06d02e3657f0

(describe-mode): Test mini-mode symbol for being bound before testing its value for being nil.
author Gerd Moellmann <gerd@gnu.org>
date Sun, 06 Aug 2000 12:09:31 +0000
parents 1a808437b658
children 7c8bf0638cb3
files lisp/help.el
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/help.el	Sun Aug 06 10:27:52 2000 +0000
+++ b/lisp/help.el	Sun Aug 06 12:09:31 2000 +0000
@@ -357,7 +357,8 @@
 	  ;; 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))