]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/help.el (help--analyze-key): Use `help-fns-function-name`
authorStefan Monnier <monnier@iro.umontreal.ca>
Fri, 22 Mar 2024 01:43:38 +0000 (21:43 -0400)
committerEshel Yaron <me@eshelyaron.com>
Sun, 24 Mar 2024 14:20:05 +0000 (15:20 +0100)
(cherry picked from commit 60c9702972f3cef9e6dbbce5eaad8cc90ea7f8e8)

lisp/help.el

index 037c887eedb35cd67b5479332ad27853dc517618..1610707e7b9e607908755a2dfb90c303cd71422c 100644 (file)
@@ -930,7 +930,9 @@ in the selected window."
      (let ((key-desc (help-key-description key untranslated)))
        (if (help--binding-undefined-p defn)
            (format "%s%s is undefined" key-desc mouse-msg)
-         (format "%s%s runs the command %S" key-desc mouse-msg defn)))
+         (format "%s%s runs the command %s" key-desc mouse-msg
+                 (if (symbolp defn) (prin1-to-string defn)
+                   (help-fns-function-name defn)))))
      defn event mouse-msg)))
 
 (defun help--filter-info-list (info-list i)