Variable: isearch-regexp-function

isearch-regexp-function is a variable defined in isearch.el.gz.

Value

nil

Documentation

Regexp-based search mode for words/symbols.

If non-nil, a function to convert a search string to a regexp used by regexp search functions.

The function should accept 1 or 2 arguments: the original string to convert, and a flag, whose non-nil value means the match doesn't have to start or end on a word boundary. The function should return the corresponding regexp, a string.

The symbol property isearch-message-prefix put on this function specifies the prefix string displayed in the search message.

Existing functions you could use as values are word-search-regexp, isearch-symbol-regexp, and char-fold-to-regexp.

This variable is set and changed during isearch. To change the default behavior used for searches, see search-default-mode instead.

Aliases

isearch-word (obsolete since 25.1)

Source Code

;; Defined in /usr/src/emacs/lisp/isearch.el.gz
(defvar isearch-regexp-function nil
  "Regexp-based search mode for words/symbols.
If non-nil, a function to convert a search string to a regexp
used by regexp search functions.

The function should accept 1 or 2 arguments: the original string
to convert, and a flag, whose non-nil value means the match
doesn't have to start or end on a word boundary.  The function
should return the corresponding regexp, a string.

The symbol property `isearch-message-prefix' put on this function
specifies the prefix string displayed in the search message.

Existing functions you could use as values are `word-search-regexp',
`isearch-symbol-regexp', and `char-fold-to-regexp'.

This variable is set and changed during isearch.  To change the
default behavior used for searches, see `search-default-mode'
instead.")