Function: isearch-filter-visible

isearch-filter-visible is a byte-compiled function defined in isearch.el.gz.

Signature

(isearch-filter-visible BEG END)

Documentation

Return non-nil if text between BEG and END is deemed visible by Isearch.

This function is intended to be used as isearch-filter-predicate. It returns non-nil if the text between BEG and END is visible to Isearch, at least partially, as determined by isearch-range-invisible. If search-invisible is t, which allows Isearch matches inside invisible text, this function will always return non-nil, regardless of what isearch-range-invisible says.

Probably introduced at or before Emacs version 24.4.

Source Code

;; Defined in /usr/src/emacs/lisp/isearch.el.gz
(defun isearch-filter-visible (beg end)
  "Return non-nil if text between BEG and END is deemed visible by Isearch.
This function is intended to be used as `isearch-filter-predicate'.
It returns non-nil if the text between BEG and END is visible to
Isearch, at least partially, as determined by `isearch-range-invisible'.
If `search-invisible' is t, which allows Isearch matches inside
invisible text, this function will always return non-nil, regardless
of what `isearch-range-invisible' says."
  (or (eq search-invisible t)
      (not (isearch-range-invisible beg end))))