diff options
| author | Eli Zaretskii | 2015-11-30 19:30:29 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2015-11-30 19:30:29 +0200 |
| commit | 3e9ac80e015a377016d113633ddc5f928cff883c (patch) | |
| tree | a16446895ed3a97186f8b08cefb7bee2be0c39f0 /doc | |
| parent | 10870c85445a48641b4f9cea91f8fbc7587eecde (diff) | |
| download | emacs-3e9ac80e015a377016d113633ddc5f928cff883c.tar.gz emacs-3e9ac80e015a377016d113633ddc5f928cff883c.zip | |
Yet another doc improvement for search commands
* doc/emacs/search.texi (Word Search, Symbol Search)
(Regexp Search): Document commands that don't support lax
whitespace matching or character folding.
(Nonincremental Search): Mention the search commands that can be
invoked from the menu bar.
* lisp/isearch.el (isearch-define-mode-toggle-word)
(isearch-define-mode-toggle-symbol)
(isearch-define-mode-toggle-character-fold): Note in the doc
string that turning these on exits the regexp mode.
(isearch-forward-regexp, isearch-forward-word)
(isearch-forward-symbol, isearch-backward-regexp)
(word-search-backward, word-search-forward)
(word-search-backward-lax, word-search-forward-lax): State in the
doc string which commands don't support character folding and/or
lax-whitespace matching.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/emacs/search.texi | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/doc/emacs/search.texi b/doc/emacs/search.texi index 88ec68c43ec..81b4f87462e 100644 --- a/doc/emacs/search.texi +++ b/doc/emacs/search.texi | |||
| @@ -548,6 +548,9 @@ command for nonincremental search, if the string you specify is empty. | |||
| 548 | @key{RET}} does likewise, invoking the nonincremental | 548 | @key{RET}} does likewise, invoking the nonincremental |
| 549 | backward-searching command. | 549 | backward-searching command. |
| 550 | 550 | ||
| 551 | Nonincremental search can also be invoked form the menu bar's | ||
| 552 | @samp{Edit->Search} menu. | ||
| 553 | |||
| 551 | @findex search-forward | 554 | @findex search-forward |
| 552 | @findex search-backward | 555 | @findex search-backward |
| 553 | You can also use two simpler commands, @kbd{M-x search-forward} and | 556 | You can also use two simpler commands, @kbd{M-x search-forward} and |
| @@ -607,6 +610,9 @@ so that the matching can proceed incrementally as you type. This | |||
| 607 | additional laxity does not apply to the lazy highlight | 610 | additional laxity does not apply to the lazy highlight |
| 608 | (@pxref{Incremental Search}), which always matches whole words. | 611 | (@pxref{Incremental Search}), which always matches whole words. |
| 609 | 612 | ||
| 613 | The word search commands don't perform character folding and cannot | ||
| 614 | support lax whitespace matching (@pxref{Lax Search}). | ||
| 615 | |||
| 610 | @kindex M-s M-w | 616 | @kindex M-s M-w |
| 611 | @findex eww-search-word | 617 | @findex eww-search-word |
| 612 | @vindex eww-search-prefix | 618 | @vindex eww-search-prefix |
| @@ -663,6 +669,9 @@ search. In nonincremental symbol searches, the beginning and end of | |||
| 663 | the search string are required to match the beginning and end of a | 669 | the search string are required to match the beginning and end of a |
| 664 | symbol, respectively. | 670 | symbol, respectively. |
| 665 | 671 | ||
| 672 | The symbol search commands don't perform character folding and | ||
| 673 | cannot support lax whitespace matching (@pxref{Lax Search}). | ||
| 674 | |||
| 666 | @node Regexp Search | 675 | @node Regexp Search |
| 667 | @section Regular Expression Search | 676 | @section Regular Expression Search |
| 668 | @cindex regexp search | 677 | @cindex regexp search |
| @@ -709,13 +718,19 @@ regexps saved in the search ring is determined by the value of | |||
| 709 | @code{regexp-search-ring-max}, 16 by default. | 718 | @code{regexp-search-ring-max}, 16 by default. |
| 710 | 719 | ||
| 711 | Unlike ordinary incremental search, incremental regexp search | 720 | Unlike ordinary incremental search, incremental regexp search |
| 712 | do not use lax space matching by default. To toggle this feature | 721 | does not use lax space matching by default. To toggle this feature |
| 713 | use @kbd{M-s @key{SPC}} (@code{isearch-toggle-lax-whitespace}). | 722 | use @kbd{M-s @key{SPC}} (@code{isearch-toggle-lax-whitespace}). |
| 714 | Then any @key{SPC} typed in incremental regexp search will match | 723 | Then any @key{SPC} typed in incremental regexp search will match |
| 715 | any sequence of one or more whitespace characters. The variable | 724 | any sequence of one or more whitespace characters. The variable |
| 716 | @code{search-whitespace-regexp} specifies the regexp for the lax | 725 | @code{search-whitespace-regexp} specifies the regexp for the lax |
| 717 | space matching. @xref{Special Isearch}. | 726 | space matching. @xref{Special Isearch}. |
| 718 | 727 | ||
| 728 | Also unlike ordinary incremental search, incremental regexp search | ||
| 729 | cannot use character folding (@pxref{Lax Search}). (If you toggle | ||
| 730 | character folding during incremental regexp search with @kbd{M-s '}, | ||
| 731 | the search becomes a non-regexp search and the search pattern you | ||
| 732 | typed is interpreted as a literal string.) | ||
| 733 | |||
| 719 | In some cases, adding characters to the regexp in an incremental | 734 | In some cases, adding characters to the regexp in an incremental |
| 720 | regexp search can make the cursor move back and start again. For | 735 | regexp search can make the cursor move back and start again. For |
| 721 | example, if you have searched for @samp{foo} and you add @samp{\|bar}, | 736 | example, if you have searched for @samp{foo} and you add @samp{\|bar}, |