Variable: isearch-filter-predicate

isearch-filter-predicate is a variable defined in isearch.el.gz.

Value

isearch-filter-visible

Documentation

Predicate to filter hits of Isearch and replace commands.

Isearch hits that don't satisfy the predicate will be skipped. The value should be a function of two arguments; it will be called with the positions of the start and the end of the text matched by Isearch and replace commands. If this function returns nil, Isearch and replace commands will continue searching without stopping at resp. replacing this match. This function is expected to be careful not to clobber the match data.

If you use add-function to modify this variable, you can use the isearch-message-prefix advice property to specify the prefix string displayed in the search message.

Source Code

;; Defined in /usr/src/emacs/lisp/isearch.el.gz
(defvar isearch-filter-predicate #'isearch-filter-visible
  "Predicate to filter hits of Isearch and replace commands.
Isearch hits that don't satisfy the predicate will be skipped.
The value should be a function of two arguments; it will be
called with the positions of the start and the end of the text
matched by Isearch and replace commands.  If this function
returns nil, Isearch and replace commands will continue searching
without stopping at resp. replacing this match.
This function is expected to be careful not to clobber the match data.

If you use `add-function' to modify this variable, you can use the
`isearch-message-prefix' advice property to specify the prefix string
displayed in the search message.")