1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-29 08:31:35 -08:00

Revert part of recent commit 85544f8ef5 (bug#40808)

* lisp/isearch.el (isearch-lazy-highlight-search): Remove recent fix of
lazy-highlighting of hidden matches.  In emacs-27 leave only the fix for
lazy-counting of hidden matches when isearch-lazy-count is non-nil.

; Do not merge to master.
This commit is contained in:
Juri Linkov 2020-05-04 01:31:44 +03:00
parent f9fa726ced
commit f5cb5bb828

View file

@ -3866,10 +3866,9 @@ Attempt to do the search exactly the way the pending Isearch would."
(isearch-regexp-lax-whitespace
isearch-lazy-highlight-regexp-lax-whitespace)
(isearch-forward isearch-lazy-highlight-forward)
;; Don't match invisible text unless it can be opened
;; or when counting matches and user can visit hidden matches
(search-invisible (or (eq search-invisible 'open)
(and isearch-lazy-count search-invisible)))
;; Match invisible text only when counting matches
;; and user can visit invisible matches
(search-invisible (and isearch-lazy-count search-invisible t))
(retry t)
(success nil))
;; Use a loop like in `isearch-search'.