Variable: isearch-repeat-on-direction-change

isearch-repeat-on-direction-change is a customizable variable defined in isearch.el.gz.

Value

nil

Documentation

Whether a direction change should move to another match.

When nil, the default, a direction change moves point to the other end of the current search match. When t, a direction change moves to another search match, if there is one.

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-repeat-on-direction-change nil
  "Whether a direction change should move to another match.
When nil, the default, a direction change moves point to the other
end of the current search match.
When t, a direction change moves to another search match, if there
is one."
  :type '(choice (const :tag "Remain on the same match" nil)
                 (const :tag "Move to another match" t))
  :version "28.1")