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.
This commit is contained in:
parent
48c562fb74
commit
7e374b9663
1 changed files with 2 additions and 1 deletions
|
@ -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)))))
|
||||
|
|
Loading…
Add table
Reference in a new issue