aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/replace.el
diff options
context:
space:
mode:
authorJuri Linkov2023-11-20 19:57:57 +0200
committerJuri Linkov2023-11-20 19:57:57 +0200
commit9d292262f55cd016a1a59f4d4ef31446bb2ba9c6 (patch)
treef7def64147b0769a09687741c4df871e8d1a5a2f /lisp/replace.el
parent5024ee1ad18904bc0a0e7a8f740164157649af5e (diff)
downloademacs-9d292262f55cd016a1a59f4d4ef31446bb2ba9c6.tar.gz
emacs-9d292262f55cd016a1a59f4d4ef31446bb2ba9c6.zip
Improve invisibility handling in isearch-lazy-highlight (bug#40808)
* lisp/isearch.el (isearch-lazy-highlight-invisible): New variable. (isearch-lazy-highlight-new-loop, isearch-lazy-highlight-search) (isearch-lazy-highlight-match, isearch-lazy-highlight-buffer-update): Use it. * lisp/replace.el (replace-highlight): Let-bind isearch-invisible to search-invisible. * test/lisp/isearch-tests.el (isearch--test-invisible): New test.
Diffstat (limited to 'lisp/replace.el')
-rw-r--r--lisp/replace.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/replace.el b/lisp/replace.el
index ac677db2feb..ff7ca1145b8 100644
--- a/lisp/replace.el
+++ b/lisp/replace.el
@@ -2755,6 +2755,7 @@ to a regexp that is actually used for the search.")
2755 (isearch-regexp-lax-whitespace 2755 (isearch-regexp-lax-whitespace
2756 replace-regexp-lax-whitespace) 2756 replace-regexp-lax-whitespace)
2757 (isearch-case-fold-search case-fold) 2757 (isearch-case-fold-search case-fold)
2758 (isearch-invisible search-invisible)
2758 (isearch-forward (not backward)) 2759 (isearch-forward (not backward))
2759 (isearch-other-end match-beg) 2760 (isearch-other-end match-beg)
2760 (isearch-error nil) 2761 (isearch-error nil)