changeset 12396:d0c82df80d70

(imenu-choose-buffer-index): Understand that (menu-bar) doesn't specify a window.
author Richard M. Stallman <rms@gnu.org>
date Tue, 27 Jun 1995 10:05:22 +0000
parents 71727759437e
children fcc312993a33
files lisp/imenu.el
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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.