]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix help--analyze-key problem when not called from menu
authorLars Ingebrigtsen <larsi@gnus.org>
Tue, 13 Sep 2022 14:14:37 +0000 (16:14 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Tue, 13 Sep 2022 14:14:57 +0000 (16:14 +0200)
* lisp/help.el (help--analyze-key): Don't bug out when not called
from the menu.

lisp/help.el

index 92b87cf7999a28177208cd8e15c946e1591e296f..a95bbaa4ae25fe47d41d4fa22e1418a4255d5199 100644 (file)
@@ -725,7 +725,8 @@ in the selected window."
          ;; is selected from the context menu that should describe KEY
          ;; at the position of mouse click that opened the context menu.
          ;; When no mouse was involved, don't use `posn-set-point'.
-         (defn (if buffer
+         (defn (if (or buffer
+                       (not (consp (event-end event))))
                    (key-binding key t)
                  (save-excursion (posn-set-point (event-end event))
                                  (key-binding key t)))))