aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2001-02-05 17:10:33 +0000
committerEli Zaretskii2001-02-05 17:10:33 +0000
commit4a1b539b8f18ae0be1eb19eed07547ffbf3b8c44 (patch)
tree837c669d44eec6418004ef28455097d24f071b73
parent193fba87704c1ee420ca832dd2143c6cac62774d (diff)
downloademacs-4a1b539b8f18ae0be1eb19eed07547ffbf3b8c44.tar.gz
emacs-4a1b539b8f18ae0be1eb19eed07547ffbf3b8c44.zip
(Incremental Search): Document C-\ and C-^.
(Regexps): Document the \cx and \Cx, and the describe-categories command.
-rw-r--r--man/search.texi37
1 files changed, 36 insertions, 1 deletions
diff --git a/man/search.texi b/man/search.texi
index 587baf94ef0..a11ee7bc4d7 100644
--- a/man/search.texi
+++ b/man/search.texi
@@ -59,7 +59,7 @@ cursor is after the first @samp{FOO} after the place where you started the
59search. At each step, the buffer text that matches the search string is 59search. At each step, the buffer text that matches the search string is
60highlighted, if the terminal can do that; at each step, the current search 60highlighted, if the terminal can do that; at each step, the current search
61string is updated in the echo area. Multilingual text can be input by 61string is updated in the echo area. Multilingual text can be input by
62toggling input methods with @kbd{C-\} or @kbd{C-^}. 62toggling input methods with @kbd{C-\} or @kbd{C-^}, see below.
63 63
64 If you make a mistake in typing the search string, you can cancel 64 If you make a mistake in typing the search string, you can cancel
65characters with @key{DEL}. Each @key{DEL} cancels the last character of 65characters with @key{DEL}. Each @key{DEL} cancels the last character of
@@ -112,6 +112,28 @@ entirely, returning point to where it was when the search started.
112case-sensitive. If you delete the upper-case character from the search 112case-sensitive. If you delete the upper-case character from the search
113string, it ceases to have this effect. @xref{Search Case}. 113string, it ceases to have this effect. @xref{Search Case}.
114 114
115@cindex searching for non-ASCII characters
116@cindex input method, during incremental search
117 If an input method (@pxref{Input Methods}) is turned on in the
118current buffer when you start the search, that input method is used to
119read the characters while you type the search string. Emacs indicates
120that by including the input method mnemonic in its prompt, like this:
121
122@example
123 I-search [@var{im}]:
124@end example
125
126@noindent
127@findex isearch-toggle-input-method
128@findex isearch-toggle-specified-input-method
129where @var{im} is the mnemonic of the active input method. You can
130toggle (enable or disable) the input method while you type the search
131string with @kbd{C-\} (@code{isearch-toggle-input-method}). You can
132turn on a certain (non-default) input method with @kbd{C-^}
133(@code{isearch-toggle-specified-input-method}), which prompts for the
134name of the input method. Note that the input method you turn on
135during incremental search is turned on in the current buffer as well.
136
115 If a search is failing and you ask to repeat it by typing another 137 If a search is failing and you ask to repeat it by typing another
116@kbd{C-s}, it starts again from the beginning of the buffer. Repeating 138@kbd{C-s}, it starts again from the beginning of the buffer. Repeating
117a failing reverse search with @kbd{C-r} starts again from the end. This 139a failing reverse search with @kbd{C-r} starts again from the end. This
@@ -654,6 +676,19 @@ either @samp{-} or a space character.
654 676
655@item \S@var{c} 677@item \S@var{c}
656matches any character whose syntax is not @var{c}. 678matches any character whose syntax is not @var{c}.
679
680@cindex categories of characters
681@cindex characters which belong to a specific language
682@findex describe-categories
683@item \c@var{c}
684matches any character that belongs to the category @var{c}. For
685example, @samp{\cc} matches Chinese characters, @samp{\cg} matches
686Greek characters, etc. For the description of the known categories,
687type @kbd{M-x describe-categories @key{RET}}.
688
689@item \C@var{c}
690matches any character that does @emph{not} belong to category
691@var{c}.
657@end table 692@end table
658 693
659 The constructs that pertain to words and syntax are controlled by the 694 The constructs that pertain to words and syntax are controlled by the