]> git.eshelyaron.com Git - emacs.git/commitdiff
Add more sanity checks to help-fns--globalized-minor-mode
authorLars Ingebrigtsen <larsi@gnus.org>
Wed, 9 Oct 2019 03:13:07 +0000 (05:13 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Wed, 9 Oct 2019 03:13:07 +0000 (05:13 +0200)
* lisp/help-fns.el (help-fns--globalized-minor-mode): FUNCTION can
be a lambda, so protect against that.

lisp/help-fns.el

index e9e2818d98a10bb9c2261aac9e6402e9b3d9b84e..06b15a30f99e2cb83c311abf246ad642a76ee004 100644 (file)
@@ -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)))