@c This is part of the Emacs manual.
-@c Copyright (C) 1985-1987, 1993-1995, 1997, 2000-2015 Free Software
+@c Copyright (C) 1985-1987, 1993-1995, 1997, 2000-2016 Free Software
@c Foundation, Inc.
@c See file emacs.texi for copying conditions.
@node Search
with a different string. There are also commands that do the same
thing, but search for patterns instead of fixed strings.
- You can also search multiple files under the control of a tags table
-(@pxref{Tags Search}) or through the Dired @kbd{A} command
+ You can also search multiple files under the control of @code{xref}
+(@pxref{Identifier Search}) or through the Dired @kbd{A} command
(@pxref{Operating on Files}), or ask the @code{grep} program to do it
(@pxref{Grep Searching}).
@kindex M-s ' @r{(Incremental Search)}
@findex isearch-toggle-character-fold
- Generally, search commands in Emacs by default perform character
-folding, thus matching equivalent character sequences. You can
-disable this behavior by customizing the variable
-@code{search-default-regexp-mode} to @code{nil}. @xref{Search
-Customizations}. Within an incremental search, typing @kbd{M-s '}
-(@code{isearch-toggle-character-fold}) toggles character folding, but
-only for that search. (Replace commands have a different default,
-controlled by a separate option; see @ref{Replacement and Lax
+ Generally, search commands in Emacs do not by default perform
+character folding in order to match equivalent character sequences.
+You can enable this behavior by customizing the variable
+@code{search-default-mode} to @code{character-fold-to-regexp}.
+@xref{Search Customizations}. Within an incremental search, typing
+@kbd{M-s '} (@code{isearch-toggle-character-fold}) toggles character
+folding, but only for that search. (Replace commands have a different
+default, controlled by a separate option; see @ref{Replacement and Lax
Matches}.)
Like with case folding, typing an explicit variant of a character,
@cindex default search mode
@cindex search mode, default
The default search mode for the incremental search is specified by
-the variable @code{search-default-regexp-mode}. It can be @code{nil},
+the variable @code{search-default-mode}. It can be @code{nil},
@code{t}, or a function. If it is @code{nil}, the default mode is to
do literal searches without character folding, but with case folding
and lax-whitespace matches as determined by @code{case-fold-search}
and @code{search-whitespace-regexp}, respectively (@pxref{Lax
Search}). If the value is @code{t}, incremental search defaults to
-regexp searches. The default value specifies a function that causes
-the default search mode to perform character folding in addition to
-case folding and lax-whitespace matching.
+regexp searches. The default value specifies a function that only
+performs case folding and lax-whitespace matching.
@vindex search-highlight
The current match of an on-going incremental search is highlighted