# HG changeset patch # User Gerd Moellmann # Date 965563771 0 # Node ID 06d02e3657f0b897a441e93c60a19b9bb91ff2b6 # Parent 1a808437b65848cc2ac918028d02dba7a35ae52e (describe-mode): Test mini-mode symbol for being bound before testing its value for being nil. diff -r 1a808437b658 -r 06d02e3657f0 lisp/help.el --- 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))