diff options
| author | Eli Zaretskii | 2001-02-05 17:10:33 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2001-02-05 17:10:33 +0000 |
| commit | 4a1b539b8f18ae0be1eb19eed07547ffbf3b8c44 (patch) | |
| tree | 837c669d44eec6418004ef28455097d24f071b73 | |
| parent | 193fba87704c1ee420ca832dd2143c6cac62774d (diff) | |
| download | emacs-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.texi | 37 |
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 | |||
| 59 | search. At each step, the buffer text that matches the search string is | 59 | search. At each step, the buffer text that matches the search string is |
| 60 | highlighted, if the terminal can do that; at each step, the current search | 60 | highlighted, if the terminal can do that; at each step, the current search |
| 61 | string is updated in the echo area. Multilingual text can be input by | 61 | string is updated in the echo area. Multilingual text can be input by |
| 62 | toggling input methods with @kbd{C-\} or @kbd{C-^}. | 62 | toggling 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 |
| 65 | characters with @key{DEL}. Each @key{DEL} cancels the last character of | 65 | characters 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. | |||
| 112 | case-sensitive. If you delete the upper-case character from the search | 112 | case-sensitive. If you delete the upper-case character from the search |
| 113 | string, it ceases to have this effect. @xref{Search Case}. | 113 | string, 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 | ||
| 118 | current buffer when you start the search, that input method is used to | ||
| 119 | read the characters while you type the search string. Emacs indicates | ||
| 120 | that 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 | ||
| 129 | where @var{im} is the mnemonic of the active input method. You can | ||
| 130 | toggle (enable or disable) the input method while you type the search | ||
| 131 | string with @kbd{C-\} (@code{isearch-toggle-input-method}). You can | ||
| 132 | turn on a certain (non-default) input method with @kbd{C-^} | ||
| 133 | (@code{isearch-toggle-specified-input-method}), which prompts for the | ||
| 134 | name of the input method. Note that the input method you turn on | ||
| 135 | during 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 |
| 117 | a failing reverse search with @kbd{C-r} starts again from the end. This | 139 | a 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} |
| 656 | matches any character whose syntax is not @var{c}. | 678 | matches 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} | ||
| 684 | matches any character that belongs to the category @var{c}. For | ||
| 685 | example, @samp{\cc} matches Chinese characters, @samp{\cg} matches | ||
| 686 | Greek characters, etc. For the description of the known categories, | ||
| 687 | type @kbd{M-x describe-categories @key{RET}}. | ||
| 688 | |||
| 689 | @item \C@var{c} | ||
| 690 | matches 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 |