emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Simple isearch concerns


From: Juri Linkov
Subject: Re: Simple isearch concerns
Date: Thu, 08 Apr 2021 22:08:21 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu)

> Indeed, updated patch attached.
>
> diff --git a/lisp/isearch.el b/lisp/isearch.el
> index a828c569aa..2e76e08f54 100644
> --- a/lisp/isearch.el
> +++ b/lisp/isearch.el
> @@ -3040,6 +3040,10 @@ See more for options in `search-exit-option'."
>             (goto-char isearch-pre-move-point))
>           (isearch-search-and-update)))
>       (setq isearch-pre-move-point nil))
> +  ;; Terminate the search if point has moved to another buffer.
> +  (unless (eq isearch--current-buffer (current-buffer))
> +    (when (buffer-live-p isearch--current-buffer)
> +      (with-current-buffer isearch--current-buffer (isearch-exit))))

Thanks, now pushed.  Let's hope it doesn't break some other modes.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]