aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Kangas2025-02-10 14:57:03 +0100
committerStefan Kangas2025-02-10 15:12:19 +0100
commit55ffbeaab1da66abee8a84f79c2cebd2c61f336f (patch)
tree8e6be7a3edd07e263be77cfc24138776309d00df
parente33eb91061d53b31ee4c5557600f13749aa4ffd5 (diff)
downloademacs-55ffbeaab1da66abee8a84f79c2cebd2c61f336f.tar.gz
emacs-55ffbeaab1da66abee8a84f79c2cebd2c61f336f.zip
Don't error on 'C-h f menu-bar-open-mouse RET'
* lisp/help-fns.el (help-fns--insert-menu-bindings): Fix error when passed 'menu-bar-open-mouse'. (Bug#76172)
-rw-r--r--lisp/help-fns.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/help-fns.el b/lisp/help-fns.el
index 9324cf85454..6112df99850 100644
--- a/lisp/help-fns.el
+++ b/lisp/help-fns.el
@@ -649,7 +649,8 @@ the C sources, too."
649 (lambda (entry level) 649 (lambda (entry level)
650 (when (symbolp map) 650 (when (symbolp map)
651 (setq map (symbol-function map))) 651 (setq map (symbol-function map)))
652 (when-let* ((elem (assq entry (cdr map)))) 652 (when-let* ((elem (assq entry (cdr map)))
653 (_ (proper-list-p elem)))
653 (when (> level 0) 654 (when (> level 0)
654 (push sep string)) 655 (push sep string))
655 (if (eq (nth 1 elem) 'menu-item) 656 (if (eq (nth 1 elem) 'menu-item)