Variable: search-exit-option

search-exit-option is a customizable variable defined in isearch.el.gz.

Value

t

Documentation

Defines what control characters do in incremental search.

If t, random control and meta characters terminate the search and are then executed normally. If edit, edit the search string instead of exiting. If append, the characters which you type that are not interpreted by the incremental search are simply appended to the search string. If nil, run the command without exiting Isearch.

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

View in manual

Source Code

;; Defined in /usr/src/emacs/lisp/isearch.el.gz
(defcustom search-exit-option t
  "Defines what control characters do in incremental search.
If t, random control and meta characters terminate the search
and are then executed normally.
If `edit', edit the search string instead of exiting.
If `append', the characters which you type that are not interpreted by
the incremental search are simply appended to the search string.
If nil, run the command without exiting Isearch."
  :type '(choice (const :tag "Terminate incremental search" t)
                 (const :tag "Edit the search string" edit)
                 (const :tag "Append control characters to the search string" append)
                 (const :tag "Don't terminate incremental search" nil))
  :version "27.1")