diff lisp/help.el @ 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 7507f083dcc5
children 2bd60ea8076f
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))