File: isearch.el.html
Instructions
For programmed use of isearch-mode, e.g. calling isearch-forward(var)/isearch-forward(fun),
isearch-mode behaves modally and does not return until the search
is completed. It uses a recursive-edit to behave this way.
The key bindings active within isearch-mode are defined below in
isearch-mode-map. Also see minibuffer-local-isearch-map
for bindings active during isearch-edit-string.
isearch-mode should work even if you switch windows with the mouse, in which case isearch-mode is terminated automatically before the switch.
The search ring and completion commands automatically put you in the minibuffer to edit the string. This gives you a chance to modify the search string before executing the search. There are three commands to terminate the editing: C-s and C-r exit the minibuffer and search forward and reverse respectively, while C-m exits and searches in the last search direction.
Exiting immediately from isearch uses isearch-edit-string instead
of nonincremental-search, if search-nonincremental-instead is non-nil.
The name of this option should probably be changed if we decide to
keep the behavior. No point in forcing nonincremental search until
the last possible moment.
Defined variables (68)
isearch-allow-motion | Whether to allow movement between isearch matches by cursor motion commands. |
isearch-allow-prefix | Whether prefix arguments are allowed during incremental search. |
isearch-allow-scroll | Whether scrolling is allowed during incremental search. |
isearch-barrier | Recorded minimum/maximal point for the current search. |
isearch-cmds | Stack of search status elements. |
isearch-filter-predicate | Predicate to filter hits of Isearch and replace commands. |
isearch-fold-quotes-mode | Non-nil if Isearch-Fold-Quotes mode is enabled. |
isearch-fold-quotes-mode-hook | Hook run after entering or leaving ‘isearch-fold-quotes-mode’. |
isearch-forward-thing-at-point | A list of symbols to try to get the "thing" at point. |
isearch-help-map | Keymap for characters following the Help key for Isearch mode. |
isearch-hide-immediately | If non-nil, re-hide an invisible match right away. |
isearch-lax-whitespace | If non-nil, a space will match a sequence of whitespace chars. |
isearch-lazy-count | Show match numbers in the search prompt. |
isearch-lazy-highlight | Controls the lazy-highlighting during incremental search. |
isearch-menu-bar-commands | List of commands that can open a menu during Isearch. |
isearch-menu-bar-map | Menu for ‘isearch-mode’. |
isearch-message-function | Function to call to display the search prompt. |
isearch-message-properties | Text properties that are added to the isearch prompt. |
isearch-mode-end-hook | Function(s) to call after terminating an incremental search. |
isearch-mode-end-hook-quit | Non-nil while running ‘isearch-mode-end-hook’ if the user quits the search. |
isearch-mode-hook | Function(s) to call after starting up an incremental search. |
isearch-mode-map | Keymap for ‘isearch-mode’. |
isearch-motion-changes-direction | Whether motion commands during incremental search change search direction. |
isearch-mouse-commands | List of mouse commands that are allowed during Isearch. |
isearch-new-regexp-function | Holds the next ‘isearch-regexp-function’ inside ‘with-isearch-suspended’. |
isearch-new-word | Holds the next ‘isearch-regexp-function’ inside ‘with-isearch-suspended’. |
isearch-push-state-function | Function to save a function restoring the mode-specific Isearch state |
isearch-regexp-function | Regexp-based search mode for words/symbols. |
isearch-regexp-lax-whitespace | If non-nil, a space will match a sequence of whitespace chars. |
isearch-repeat-on-direction-change | Whether a direction change should move to another match. |
isearch-resume-in-command-history | If non-nil, ‘isearch-resume’ commands are added to the command history. |
isearch-search-fun-function | Non-default value overrides the behavior of ‘isearch-search-fun-default’. |
isearch-tool-bar-old-map | Variable holding the old local value of ‘tool-bar-map’, if any. |
isearch-update-post-hook | Function(s) to call after isearch has found matches in the buffer. |
isearch-word | Regexp-based search mode for words/symbols. |
isearch-wrap-function | Function to call to wrap the search when search is failed. |
isearch-wrap-pause | Define the behavior of wrapping when there are no more matches. |
isearch-yank-on-move | Motion keys yank text to the search string while you move the cursor. |
lazy-count-invisible-format | Format of the number of invisible matches for the prompt. |
lazy-count-prefix-format | Format of the current/total number of matches for the prompt prefix. |
lazy-count-suffix-format | Format of the current/total number of matches for the prompt suffix. |
lazy-count-update-hook | Hook run after new lazy count results are computed. |
lazy-highlight-buffer | Controls the lazy-highlighting of the full buffer. |
lazy-highlight-buffer-max-at-a-time | Maximum matches to highlight at a time (for ‘lazy-highlight-buffer’). |
lazy-highlight-cleanup | Controls whether to remove extra highlighting after a search. |
lazy-highlight-initial-delay | Seconds to wait before beginning to lazily highlight all matches. |
lazy-highlight-interval | Seconds between lazily highlighting successive matches. |
lazy-highlight-max-at-a-time | Maximum matches to highlight at a time (for ‘lazy-highlight’). |
lazy-highlight-no-delay-length | For search strings at least this long, lazy highlight starts immediately. |
minibuffer-lazy-count-format | Format of the total number of matches for the prompt prefix. |
minibuffer-local-isearch-map | Keymap for editing Isearch strings in the minibuffer. |
regexp-search-ring | List of regular expression search string sequences. |
regexp-search-ring-max | Maximum length of regexp search ring before oldest elements are thrown away. |
regexp-search-ring-yank-pointer | Index in ‘regexp-search-ring’ of last string reused. |
search-default-mode | Default mode to use when starting isearch. |
search-exit-option | Defines what control characters do in incremental search. |
search-highlight | Non-nil means incremental search highlights the current match. |
search-highlight-submatches | Whether to highlight regexp subexpressions of the current regexp match. |
search-invisible | If t incremental search/query-replace can match hidden text. |
search-nonincremental-instead | If non-nil, do a nonincremental search instead of exiting immediately. |
search-ring | List of search string sequences. |
search-ring-max | Maximum length of search ring before oldest elements are thrown away. |
search-ring-update | Non-nil if advancing or retreating in the search ring should cause search. |
search-ring-yank-pointer | Index in ‘search-ring’ of last string reused. |
search-slow-speed | Highest terminal speed at which to use "slow" style incremental search. |
search-slow-window-lines | Number of lines in slow search display windows. |
search-upper-case | If non-nil, upper case chars disable case fold searching. |
search-whitespace-regexp | If non-nil, regular expression to match a sequence of whitespace chars. |
Defined functions (164)
Defined faces (5)
isearch | Face for highlighting Isearch matches. |
isearch-fail | Face for highlighting failed part in Isearch echo-area message. |
isearch-group-1 | Face for highlighting Isearch the odd group matches. |
isearch-group-2 | Face for highlighting Isearch the even group matches. |
lazy-highlight | Face for lazy highlighting of matches other than the current one. |