emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 7e374b9663: Fix help--analyze-key problem when not called from me


From: Lars Ingebrigtsen
Subject: master 7e374b9663: Fix help--analyze-key problem when not called from menu
Date: Tue, 13 Sep 2022 10:15:03 -0400 (EDT)

branch: master
commit 7e374b96635ce70f574fba351defc765e9a52da9
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    Fix help--analyze-key problem when not called from menu
    
    * lisp/help.el (help--analyze-key): Don't bug out when not called
    from the menu.
---
 lisp/help.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lisp/help.el b/lisp/help.el
index 92b87cf799..a95bbaa4ae 100644
--- a/lisp/help.el
+++ b/lisp/help.el
@@ -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)))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]