From: Lars Ingebrigtsen Date: Wed, 9 Oct 2019 03:13:07 +0000 (+0200) Subject: Add more sanity checks to help-fns--globalized-minor-mode X-Git-Tag: emacs-27.0.90~1208 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f2cbc7214f04d51e9eae2636d68b7052aa5c1a6d;p=emacs.git Add more sanity checks to help-fns--globalized-minor-mode * lisp/help-fns.el (help-fns--globalized-minor-mode): FUNCTION can be a lambda, so protect against that. --- diff --git a/lisp/help-fns.el b/lisp/help-fns.el index e9e2818d98a..06b15a30f99 100644 --- a/lisp/help-fns.el +++ b/lisp/help-fns.el @@ -559,7 +559,8 @@ suitable file is found, return nil." (add-hook 'help-fns-describe-function-functions #'help-fns--globalized-minor-mode) (defun help-fns--globalized-minor-mode (function) - (when (get function 'globalized-minor-mode) + (when (and (symbolp function) + (get function 'globalized-minor-mode)) (help-fns--customize-variable function " the global mode variable.") (terpri)))