From 4675e266da757dd73b39a87e11c27465dc952970 Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Sun, 6 Aug 2000 12:09:31 +0000 Subject: [PATCH] (describe-mode): Test mini-mode symbol for being bound before testing its value for being nil. --- lisp/help.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)) -- 2.39.2