From f2cbc7214f04d51e9eae2636d68b7052aa5c1a6d Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Wed, 9 Oct 2019 05:13:07 +0200 Subject: [PATCH] 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. --- lisp/help-fns.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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))) -- 2.39.5