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:
parent
967eed7596
commit
f2cbc7214f
1 changed files with 2 additions and 1 deletions
|
@ -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)))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue