Variable: isearch-motion-changes-direction

isearch-motion-changes-direction is a customizable variable defined in isearch.el.gz.

Value

nil

Documentation

Whether motion commands during incremental search change search direction.

If nil, the search direction (forward or backward) does not change when motion commands are used during incremental search, except when wrapping. If non-nil, the search direction is forward after M-< (beginning-of-buffer) and C-v (scroll-up-command), and backward after M-> (end-of-buffer) and M-v (scroll-down-command).

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-motion-changes-direction nil
  "Whether motion commands during incremental search change search direction.
If nil, the search direction (forward or backward) does not change when
motion commands are used during incremental search, except when wrapping.
If non-nil, the search direction is forward after \
\\<isearch-mode-map>\\[beginning-of-buffer] and \\[scroll-up-command], and
backward after \\[end-of-buffer] and \\[scroll-down-command]."
  :type '(choice (const :tag "Off" nil)
                 (const :tag "On" t))
  :group 'isearch
  :version "28.1")