aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorEli Zaretskii2015-11-30 19:30:29 +0200
committerEli Zaretskii2015-11-30 19:30:29 +0200
commit3e9ac80e015a377016d113633ddc5f928cff883c (patch)
treea16446895ed3a97186f8b08cefb7bee2be0c39f0 /doc
parent10870c85445a48641b4f9cea91f8fbc7587eecde (diff)
downloademacs-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.texi17
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
549backward-searching command. 549backward-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
607additional laxity does not apply to the lazy highlight 610additional 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
614support 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
663the search string are required to match the beginning and end of a 669the search string are required to match the beginning and end of a
664symbol, respectively. 670symbol, respectively.
665 671
672 The symbol search commands don't perform character folding and
673cannot 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
712do not use lax space matching by default. To toggle this feature 721does not use lax space matching by default. To toggle this feature
713use @kbd{M-s @key{SPC}} (@code{isearch-toggle-lax-whitespace}). 722use @kbd{M-s @key{SPC}} (@code{isearch-toggle-lax-whitespace}).
714Then any @key{SPC} typed in incremental regexp search will match 723Then any @key{SPC} typed in incremental regexp search will match
715any sequence of one or more whitespace characters. The variable 724any 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
717space matching. @xref{Special Isearch}. 726space matching. @xref{Special Isearch}.
718 727
728 Also unlike ordinary incremental search, incremental regexp search
729cannot use character folding (@pxref{Lax Search}). (If you toggle
730character folding during incremental regexp search with @kbd{M-s '},
731the search becomes a non-regexp search and the search pattern you
732typed 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
720regexp search can make the cursor move back and start again. For 735regexp search can make the cursor move back and start again. For
721example, if you have searched for @samp{foo} and you add @samp{\|bar}, 736example, if you have searched for @samp{foo} and you add @samp{\|bar},