emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master f2cbc72: Add more sanity checks to help-fns--global


From: Lars Ingebrigtsen
Subject: [Emacs-diffs] master f2cbc72: Add more sanity checks to help-fns--globalized-minor-mode
Date: Tue, 8 Oct 2019 23:13:18 -0400 (EDT)

branch: master
commit f2cbc7214f04d51e9eae2636d68b7052aa5c1a6d
Author: Lars Ingebrigtsen <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>

    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 e9e2818d..06b15a3 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)))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]