diff options
author | Richard M. Stallman <rms@gnu.org> | 1995-07-21 12:40:55 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1995-07-21 12:40:55 +0000 |
commit | 9e0e7034d0a1b30b3c81e853bfe572179b0683fe (patch) | |
tree | 8f3ee8cba86b1a7f8de13b0b73c78700d6c17219 /lisp | |
parent | 04800eea9921fe4e67f8024d50081355347abb28 (diff) | |
download | emacs-9e0e7034d0a1b30b3c81e853bfe572179b0683fe.tar.gz |
(imenu-choose-buffer-index): Avoid trying to select WINDOW if it is nil.
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/imenu.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/imenu.el b/lisp/imenu.el index 3fedade04e7..715dcde3773 100644 --- a/lisp/imenu.el +++ b/lisp/imenu.el @@ -966,7 +966,7 @@ The returned value is on the form (INDEX-NAME . INDEX-POSITION)." (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)))) + (or (framep window) (null window) (select-window window)))) ;; Create a list for this buffer only when needed. (while (eq result t) (setq index-alist (if alist alist (imenu--make-index-alist))) |