diff options
| author | Richard M. Stallman | 1995-06-27 10:05:22 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1995-06-27 10:05:22 +0000 |
| commit | 4cde72b44e467b2911e7f4d588c76f2f41947fe5 (patch) | |
| tree | ef4aad60cad74245ee4a17d5d28a32bfc2b22f2b | |
| parent | 8fd68088e946c1fb1cd63f371a91a9a160f9c23b (diff) | |
| download | emacs-4cde72b44e467b2911e7f4d588c76f2f41947fe5.tar.gz emacs-4cde72b44e467b2911e7f4d588c76f2f41947fe5.zip | |
(imenu-choose-buffer-index): Understand that (menu-bar)
doesn't specify a window.
| -rw-r--r-- | lisp/imenu.el | 1 |
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)." | |||
| 964 | ;; If selected by mouse, see to that the window where the mouse is | 964 | ;; If selected by mouse, see to that the window where the mouse is |
| 965 | ;; really is selected. | 965 | ;; really is selected. |
| 966 | (and mouse-triggered | 966 | (and mouse-triggered |
| 967 | (not (equal last-nonmenu-event '(menu-bar))) | ||
| 967 | (let ((window (posn-window (event-start last-nonmenu-event)))) | 968 | (let ((window (posn-window (event-start last-nonmenu-event)))) |
| 968 | (or (framep window) (select-window window)))) | 969 | (or (framep window) (select-window window)))) |
| 969 | ;; Create a list for this buffer only when needed. | 970 | ;; Create a list for this buffer only when needed. |