Mercurial > emacs
changeset 12635:f12b1374fb5b
(imenu-choose-buffer-index): Avoid trying to select WINDOW if it is nil.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Fri, 21 Jul 1995 12:40:55 +0000 |
parents | eec80ea06395 |
children | 97ce4bb9a235 |
files | lisp/imenu.el |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/imenu.el Fri Jul 21 08:31:15 1995 +0000 +++ b/lisp/imenu.el Fri Jul 21 12:40:55 1995 +0000 @@ -966,7 +966,7 @@ (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)))