]> git.eshelyaron.com Git - emacs.git/commit
Display the number of invisible matches for isearch-lazy-count (bug#40808)
authorJuri Linkov <juri@linkov.net>
Fri, 8 Jul 2022 17:47:11 +0000 (20:47 +0300)
committerJuri Linkov <juri@linkov.net>
Fri, 8 Jul 2022 17:47:11 +0000 (20:47 +0300)
commit3cfac1fe073815bdbba96e3a35a1c15626022c07
tree6e78c7c8c9bca68e1efced581b91bf2c6f88d99a
parentef559dcd2ab3ec6e1f714180cbdf3b4e0965c13d
Display the number of invisible matches for isearch-lazy-count (bug#40808)

* lisp/isearch.el (lazy-count-invisible-format): New variable.
(isearch-mode): Set isearch-lazy-count-invisible to nil.
(isearch-lazy-count-format): Use lazy-count-invisible-format and
isearch-lazy-count-invisible.
(isearch-range-invisible): Handle the value 'can-be-opened' of
'search-invisible' and don't open overlays for it, just check
if these overlays can be opened.
(isearch-lazy-count-invisible): New variable.
(isearch-lazy-highlight-new-loop): Set isearch-lazy-count-invisible to nil.
(isearch-lazy-highlight-search): Let-bind search-invisible either to t
for non-nil isearch-lazy-count, or to 'can-be-opened'.
(isearch-lazy-highlight-match): Don't highlight matches intended
to be counted only, not highlighted.
(isearch-lazy-highlight-buffer-update): Separately count invisible
matches by isearch-lazy-count-invisible.

* lisp/info.el (Info-isearch-filter): Check if search-invisible is t.
lisp/info.el
lisp/isearch.el