]> git.eshelyaron.com Git - emacs.git/commit
Support Isearch filter predicates with empty search hits (bug#49534)
authorJuri Linkov <juri@linkov.net>
Tue, 13 Jul 2021 19:25:05 +0000 (22:25 +0300)
committerJuri Linkov <juri@linkov.net>
Tue, 13 Jul 2021 19:25:05 +0000 (22:25 +0300)
commit35a8861619d4a5038ff37aa9fbeb995bc9b861a7
tree386cea6be80d9d35df6aebd8e8403ae3caa4c826
parentb68e7a64ae624f79538d618afa8f90ae73c26b33
Support Isearch filter predicates with empty search hits (bug#49534)

* lisp/isearch.el (isearch-search): Move (= (match-beginning 0) (match-end 0))
and (bobp)/(eobp) outside the call to isearch-filter-predicate.
Use forward-char 1/-1 on empty matches only when going to retry search.
(isearch-lazy-highlight-search):  Remove (= (point) bound),
but leave (= (match-beginning 0) (match-end 0)) since empty matches
make no sense in lazy-highlighting.
lisp/isearch.el