aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2015-11-29 18:31:09 +0200
committerEli Zaretskii2015-11-29 18:31:09 +0200
commite67fa7e322583723287ee1aa14aae486bc1d06a3 (patch)
tree5d71860789104d5d51e90f92f5e4ef4a3da1ae0d
parentff21f455b71d9c566b8526e770632bac6c682f5d (diff)
downloademacs-e67fa7e322583723287ee1aa14aae486bc1d06a3.tar.gz
emacs-e67fa7e322583723287ee1aa14aae486bc1d06a3.zip
Fix confusion wrt character folding in the Emacs manual
* doc/emacs/search.texi (Nonincremental Search, Regexp Search): Document that invoking search-forward/backward and re-search-forward/backward supports only case folding, but not the rest of the lax-search features. Reported by Mike Kupfer <m.kupfer@acm.org>.
-rw-r--r--doc/emacs/search.texi24
1 files changed, 16 insertions, 8 deletions
diff --git a/doc/emacs/search.texi b/doc/emacs/search.texi
index c947091fbab..bcf1beaa355 100644
--- a/doc/emacs/search.texi
+++ b/doc/emacs/search.texi
@@ -541,14 +541,19 @@ This enters the minibuffer to read the search string; terminate the
541string with @key{RET}, and then the search takes place. If the string 541string with @key{RET}, and then the search takes place. If the string
542is not found, the search command signals an error. 542is not found, the search command signals an error.
543 543
544@findex search-forward
545@findex search-backward
546 When you type @kbd{C-s @key{RET}}, the @kbd{C-s} invokes incremental 544 When you type @kbd{C-s @key{RET}}, the @kbd{C-s} invokes incremental
547search as usual. That command is specially programmed to invoke the 545search as usual. That command is specially programmed to invoke the
548command for nonincremental search, @code{search-forward}, if the 546command for nonincremental search, if the string you specify is empty.
549string you specify is empty. (Such an empty argument would otherwise 547(Such an empty argument would otherwise be useless.) @kbd{C-r
550be useless.) @kbd{C-r @key{RET}} does likewise, invoking the command 548@key{RET}} does likewise, invoking the nonincremental
551@code{search-backward}. 549backward-searching command.
550
551@findex search-forward
552@findex search-backward
553 You can also use two simpler commands, @kbd{M-x search-forward} and
554@kbd{M-x search-backward}. These commands look for the literal
555strings you specify, and don't support any of the lax-search features
556(@pxref{Lax Search}) except case folding.
552 557
553@node Word Search 558@node Word Search
554@section Word Search 559@section Word Search
@@ -729,7 +734,10 @@ starting position. These search methods are not mirror images.
729 Nonincremental search for a regexp is done with the commands 734 Nonincremental search for a regexp is done with the commands
730@code{re-search-forward} and @code{re-search-backward}. You can 735@code{re-search-forward} and @code{re-search-backward}. You can
731invoke these with @kbd{M-x}, or by way of incremental regexp search 736invoke these with @kbd{M-x}, or by way of incremental regexp search
732with @kbd{C-M-s @key{RET}} and @kbd{C-M-r @key{RET}}. 737with @kbd{C-M-s @key{RET}} and @kbd{C-M-r @key{RET}}. When you invoke
738these commands with @kbd{M-x}, they search for the exact regexp you
739specify, and thus don't support any lax-search features (@pxref{Lax
740Search}) except case folding.
733 741
734 If you use the incremental regexp search commands with a prefix 742 If you use the incremental regexp search commands with a prefix
735argument, they perform ordinary string search, like 743argument, they perform ordinary string search, like
@@ -1240,7 +1248,7 @@ character sequences}.
1240 1248
1241@kindex M-s ' @r{(Incremental Search)} 1249@kindex M-s ' @r{(Incremental Search)}
1242@findex isearch-toggle-character-fold 1250@findex isearch-toggle-character-fold
1243 Searches in Emacs by default perform character folding, thus 1251 Search commands in Emacs by default perform character folding, thus
1244matching equivalent character sequences. You can disable this 1252matching equivalent character sequences. You can disable this
1245behavior by customizing the variable @code{search-default-regexp-mode} 1253behavior by customizing the variable @code{search-default-regexp-mode}
1246to @code{nil}. @xref{Search Customizations}. Within an incremental 1254to @code{nil}. @xref{Search Customizations}. Within an incremental