Variable: isearch-wrap-pause

isearch-wrap-pause is a customizable variable defined in isearch.el.gz.

Value

t

Documentation

Define the behavior of wrapping when there are no more matches.

When t (by default), signal an error when no more matches are found. Then after repeating the search, wrap with isearch-wrap-function. When no, wrap immediately after reaching the last match. When no-ding, wrap immediately without flashing the screen. When nil, never wrap, just stop at the last match. With the values no and no-ding the search will try to wrap around also on typing a character.

This variable was added, or its default value changed, in Emacs 28.1.

View in manual

Probably introduced at or before Emacs version 28.1.

Source Code

;; Defined in /usr/src/emacs/lisp/isearch.el.gz
(defcustom isearch-wrap-pause t
  "Define the behavior of wrapping when there are no more matches.
When t (by default), signal an error when no more matches are found.
Then after repeating the search, wrap with `isearch-wrap-function'.
When `no', wrap immediately after reaching the last match.
When `no-ding', wrap immediately without flashing the screen.
When nil, never wrap, just stop at the last match.
With the values `no' and `no-ding' the search will try
to wrap around also on typing a character."
  :type '(choice (const :tag "Pause before wrapping" t)
                 (const :tag "No pause before wrapping" no)
                 (const :tag "No pause and no flashing" no-ding)
                 (const :tag "Disable wrapping" nil))
  :version "28.1")