1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-30 12:21:25 -08:00

(isearch-other-meta-char): Don't switch windows to exit

if that would switch to an inactive minibuffer.
This commit is contained in:
Richard M. Stallman 1997-08-04 05:09:49 +00:00
parent 8e710301e0
commit 4fd017e78e

View file

@ -1149,7 +1149,9 @@ and the meta character is unread so that it applies to editing the string."
;; is in isearch mode. So end the search in that buffer.
(if (and (listp main-event)
(setq window (posn-window (event-start main-event)))
(windowp window))
(windowp window)
(or (> (minibuffer-depth) 0)
(not (window-minibuffer-p window))))
(save-excursion
(set-buffer (window-buffer window))
(isearch-done)