Function: isearch-lazy-highlight-search

isearch-lazy-highlight-search is a byte-compiled function defined in isearch.el.gz.

Signature

(isearch-lazy-highlight-search STRING BOUND)

Documentation

Search ahead for the next or previous match, for lazy highlighting.

Attempt to do the search exactly the way the pending Isearch would.

This function has :around advice: evil--without-search-wrap.

Source Code

;; Defined in /usr/src/emacs/lisp/isearch.el.gz
(defun isearch-lazy-highlight-search (string bound)
  "Search ahead for the next or previous match, for lazy highlighting.
Attempt to do the search exactly the way the pending Isearch would."
  (condition-case nil
      (let ((case-fold-search isearch-lazy-highlight-case-fold-search)
	    (isearch-regexp isearch-lazy-highlight-regexp)
	    (isearch-regexp-function isearch-lazy-highlight-regexp-function)
	    (isearch-lax-whitespace
	     isearch-lazy-highlight-lax-whitespace)
	    (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)))
	    (retry t)
	    (success nil))
	;; Use a loop like in `isearch-search'.
	(while retry
	  (setq success (isearch-search-string string bound t))
	  ;; Clear RETRY unless the search predicate says
	  ;; to skip this search hit.
	  (if (or (not success)
		  (= (match-beginning 0) (match-end 0))
		  (funcall isearch-filter-predicate
			   (match-beginning 0) (match-end 0)))
	      (setq retry nil)))
	success)
    (error nil)))