diff options
| author | Eli Zaretskii | 2015-11-29 18:31:09 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2015-11-29 18:31:09 +0200 |
| commit | e67fa7e322583723287ee1aa14aae486bc1d06a3 (patch) | |
| tree | 5d71860789104d5d51e90f92f5e4ef4a3da1ae0d | |
| parent | ff21f455b71d9c566b8526e770632bac6c682f5d (diff) | |
| download | emacs-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.texi | 24 |
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 | |||
| 541 | string with @key{RET}, and then the search takes place. If the string | 541 | string with @key{RET}, and then the search takes place. If the string |
| 542 | is not found, the search command signals an error. | 542 | is 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 |
| 547 | search as usual. That command is specially programmed to invoke the | 545 | search as usual. That command is specially programmed to invoke the |
| 548 | command for nonincremental search, @code{search-forward}, if the | 546 | command for nonincremental search, if the string you specify is empty. |
| 549 | string you specify is empty. (Such an empty argument would otherwise | 547 | (Such an empty argument would otherwise be useless.) @kbd{C-r |
| 550 | be useless.) @kbd{C-r @key{RET}} does likewise, invoking the command | 548 | @key{RET}} does likewise, invoking the nonincremental |
| 551 | @code{search-backward}. | 549 | backward-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 | ||
| 555 | strings 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 |
| 731 | invoke these with @kbd{M-x}, or by way of incremental regexp search | 736 | invoke these with @kbd{M-x}, or by way of incremental regexp search |
| 732 | with @kbd{C-M-s @key{RET}} and @kbd{C-M-r @key{RET}}. | 737 | with @kbd{C-M-s @key{RET}} and @kbd{C-M-r @key{RET}}. When you invoke |
| 738 | these commands with @kbd{M-x}, they search for the exact regexp you | ||
| 739 | specify, and thus don't support any lax-search features (@pxref{Lax | ||
| 740 | Search}) 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 |
| 735 | argument, they perform ordinary string search, like | 743 | argument, 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 |
| 1244 | matching equivalent character sequences. You can disable this | 1252 | matching equivalent character sequences. You can disable this |
| 1245 | behavior by customizing the variable @code{search-default-regexp-mode} | 1253 | behavior by customizing the variable @code{search-default-regexp-mode} |
| 1246 | to @code{nil}. @xref{Search Customizations}. Within an incremental | 1254 | to @code{nil}. @xref{Search Customizations}. Within an incremental |