mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-16 17:19:41 +00:00
(imenu-choose-buffer-index): Avoid trying to select WINDOW if it is nil.
This commit is contained in:
parent
8d8a349485
commit
4a840d8bf7
@ -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)))
|
||||
|
Loading…
Reference in New Issue
Block a user