summaryrefslogtreecommitdiff
path: root/lisp/imenu.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1995-06-27 10:05:22 +0000
committerRichard M. Stallman <rms@gnu.org>1995-06-27 10:05:22 +0000
commit2dd42f4ae7513e6dce840b1b1e17a8494b2df189 (patch)
tree2365d0f3ecdcbad666dbac8d41758d980f1d746e /lisp/imenu.el
parent7c9f0a267ea6ab1bf0a7057cf03a03f69ed66610 (diff)
downloademacs-2dd42f4ae7513e6dce840b1b1e17a8494b2df189.tar.gz
(imenu-choose-buffer-index): Understand that (menu-bar)
doesn't specify a window.
Diffstat (limited to 'lisp/imenu.el')
-rw-r--r--lisp/imenu.el1
1 files changed, 1 insertions, 0 deletions
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.