aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2024-03-21 21:43:38 -0400
committerStefan Monnier2024-03-21 21:44:04 -0400
commit60c9702972f3cef9e6dbbce5eaad8cc90ea7f8e8 (patch)
tree012d467a0c28f026306eccf44f4c6f179e53cc7b
parenta1f8702e8345254e6898d35e554bdc06ab09c3ca (diff)
downloademacs-60c9702972f3cef9e6dbbce5eaad8cc90ea7f8e8.tar.gz
emacs-60c9702972f3cef9e6dbbce5eaad8cc90ea7f8e8.zip
* lisp/help.el (help--analyze-key): Use `help-fns-function-name`
-rw-r--r--lisp/help.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/help.el b/lisp/help.el
index 4171d0c57c7..bafe6032942 100644
--- a/lisp/help.el
+++ b/lisp/help.el
@@ -926,7 +926,9 @@ in the selected window."
926 (let ((key-desc (help-key-description key untranslated))) 926 (let ((key-desc (help-key-description key untranslated)))
927 (if (help--binding-undefined-p defn) 927 (if (help--binding-undefined-p defn)
928 (format "%s%s is undefined" key-desc mouse-msg) 928 (format "%s%s is undefined" key-desc mouse-msg)
929 (format "%s%s runs the command %S" key-desc mouse-msg defn))) 929 (format "%s%s runs the command %s" key-desc mouse-msg
930 (if (symbolp defn) (prin1-to-string defn)
931 (help-fns-function-name defn)))))
930 defn event mouse-msg))) 932 defn event mouse-msg)))
931 933
932(defun help--filter-info-list (info-list i) 934(defun help--filter-info-list (info-list i)