Revert "Fix help--analyze-key problem when not called from menu"

This reverts commit 7e374b9663.

This should not be needed -- perhaps it was triggered by
an ephemeral code change in my running Emacs.
This commit is contained in:
Lars Ingebrigtsen 2022-09-13 18:25:32 +02:00
parent 3713183a3d
commit aed39a518d

View file

@ -725,8 +725,7 @@ 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 (or buffer
(not (consp (event-end event))))
(defn (if buffer
(key-binding key t)
(save-excursion (posn-set-point (event-end event))
(key-binding key t)))))