Commit 4cde72b4 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(imenu-choose-buffer-index): Understand that (menu-bar)

doesn't specify a window.
parent 8fd68088
......@@ -964,6 +964,7 @@ The returned value is on the form (INDEX-NAME . INDEX-POSITION)."
;; If selected by mouse, see to that the window where the mouse is
;; really is selected.
(and mouse-triggered
(not (equal last-nonmenu-event '(menu-bar)))
(let ((window (posn-window (event-start last-nonmenu-event))))
(or (framep window) (select-window window))))
;; Create a list for this buffer only when needed.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment