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