Function: isearch-exit
isearch-exit is an interactive and byte-compiled function defined in
isearch.el.gz.
Signature
(isearch-exit)
Documentation
Exit search normally.
However, if this is the first command after starting incremental
search and search-nonincremental-instead is non-nil, do a
nonincremental search instead via isearch-edit-string.
Probably introduced at or before Emacs version 28.1.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/isearch.el.gz
;; Commands active while inside of the isearch minor mode.
(defun isearch-exit ()
"Exit search normally.
However, if this is the first command after starting incremental
search and `search-nonincremental-instead' is non-nil, do a
nonincremental search instead via `isearch-edit-string'."
(interactive)
(if (and search-nonincremental-instead
(= 0 (length isearch-string)))
(let ((isearch-nonincremental t))
(isearch-edit-string)) ;; this calls isearch-done as well
(isearch-done))
(isearch-clean-overlays))