From 4cde72b44e467b2911e7f4d588c76f2f41947fe5 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Tue, 27 Jun 1995 10:05:22 +0000 Subject: [PATCH] (imenu-choose-buffer-index): Understand that (menu-bar) doesn't specify a window. --- lisp/imenu.el | 1 + 1 file changed, 1 insertion(+) diff --git a/lisp/imenu.el b/lisp/imenu.el index 315e2caf599..3fedade04e7 100644 --- a/lisp/imenu.el +++ b/lisp/imenu.el @@ -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. -- 2.39.2