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.
This commit is contained in:
Lars Ingebrigtsen 2019-10-09 05:13:07 +02:00
parent 967eed7596
commit f2cbc7214f

View 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)))