From c4235eb26db27df63982083455f355ac9b46d70f Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Tue, 13 Sep 2022 18:32:30 +0200 Subject: [PATCH] Make help-fns--generalized-variable more resilient * lisp/help-fns.el (help-fns--generalized-variable): Don't bug out when a key binding isn't a symbol. --- 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 d5b576de285..a3d4e002b6f 100644 --- a/lisp/help-fns.el +++ b/lisp/help-fns.el @@ -1159,7 +1159,8 @@ Returns a list of the form (REAL-FUNCTION DEF ALIASED REAL-DEF)." (add-hook 'help-fns-describe-function-functions #'help-fns--compiler-macro 100) (defun help-fns--generalized-variable (function) - (when (and (get function 'gv-expander) + (when (and (symbolp function) + (get function 'gv-expander) ;; Don't mention obsolete generalized variables. (not (get function 'byte-obsolete-generalized-variable))) (insert (format-message " `%s' is also a " function) -- 2.39.2