# HG changeset patch # User Richard M. Stallman # Date 804247522 0 # Node ID d0c82df80d70a933fe71602947f3983924912d02 # Parent 71727759437e5d2542c5978b82d6f055e85801f0 (imenu-choose-buffer-index): Understand that (menu-bar) doesn't specify a window. diff -r 71727759437e -r d0c82df80d70 lisp/imenu.el --- a/lisp/imenu.el Tue Jun 27 06:52:56 1995 +0000 +++ b/lisp/imenu.el Tue Jun 27 10:05:22 1995 +0000 @@ -964,6 +964,7 @@ ;; 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.