Mercurial > hg > xemacs-beta
comparison man/new-users-guide/search.texi @ 444:576fb035e263 r21-2-37
Import from CVS: tag r21-2-37
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:36:19 +0200 |
parents | 3ecd8885ac67 |
children | f43f9ca6c7d9 |
comparison
equal
deleted
inserted
replaced
443:a8296e22da4e | 444:576fb035e263 |
---|---|
10 complete typing the whole string. All searches in Emacs ignore the case | 10 complete typing the whole string. All searches in Emacs ignore the case |
11 of the text they are searching, i.e. if you are searching for "String", | 11 of the text they are searching, i.e. if you are searching for "String", |
12 then "string" will also be one of the selections. If you want a case | 12 then "string" will also be one of the selections. If you want a case |
13 sensitive search select the @b{Case Sensitive Search} from the | 13 sensitive search select the @b{Case Sensitive Search} from the |
14 @b{Option} menu. You can also set the variable @var{case-fold-search} to | 14 @b{Option} menu. You can also set the variable @var{case-fold-search} to |
15 @var{nil} for making searches case-sensitive. For information on setting | 15 @code{nil} for making searches case-sensitive. For information on setting |
16 variables, @xref{Setting Variables}. The two commands for searching for | 16 variables, @xref{Setting Variables}. The two commands for searching for |
17 strings in XEmacs are: | 17 strings in XEmacs are: |
18 | 18 |
19 @table @kbd | 19 @table @kbd |
20 @item C-s | 20 @item C-s |
21 @findex isearch-forward | 21 @findex isearch-forward |
22 @kindex C-s | 22 @kindex C-s |
32 string in the forward direction. The cursor will be on the matching | 32 string in the forward direction. The cursor will be on the matching |
33 string which has been found so far. If you find the correct match just | 33 string which has been found so far. If you find the correct match just |
34 hit @key{RET} or type @kbd{C-f} or @kbd{C-b} to set the cursor's | 34 hit @key{RET} or type @kbd{C-f} or @kbd{C-b} to set the cursor's |
35 position. If you find a matching string "myname" but you were looking | 35 position. If you find a matching string "myname" but you were looking |
36 for a different occurrence of it, use @kbd{C-s} again. If the search is | 36 for a different occurrence of it, use @kbd{C-s} again. If the search is |
37 unable to find the string, it will give you an error message. | 37 unable to find the string, it will give you an error message. |
38 | 38 |
39 @item C-r | 39 @item C-r |
40 @findex isearch-backward | 40 @findex isearch-backward |
41 @kindex C-r | 41 @kindex C-r |
42 This command will perform an incremental search in the backward | 42 This command will perform an incremental search in the backward |
43 direction. It will prompt you for a string name: | 43 direction. It will prompt you for a string name: |
44 | 44 |
54 @end table | 54 @end table |
55 | 55 |
56 If you make a mistake while typing the string names when you use the | 56 If you make a mistake while typing the string names when you use the |
57 above commands, you can use the @key{DEL} key to erase characters. Each | 57 above commands, you can use the @key{DEL} key to erase characters. Each |
58 @key{DEL} will erase the last character. At any time if you want to quit | 58 @key{DEL} will erase the last character. At any time if you want to quit |
59 the search, just type @kbd{C-g}. | 59 the search, just type @kbd{C-g}. |
60 | 60 |
61 To do a non-incremental search i.e. to start the search only after | 61 To do a non-incremental search i.e. to start the search only after |
62 you have typed the whole string you can use the following commands: | 62 you have typed the whole string you can use the following commands: |
63 | 63 |
64 @table @kbd | 64 @table @kbd |
65 @item C-s RET @dfn{string} RET | 65 @item C-s RET @dfn{string} RET |
66 This command will search for the specified string in the forward | 66 This command will search for the specified string in the forward |
67 direction and will give an error message if the string is not found. | 67 direction and will give an error message if the string is not found. |
68 | 68 |
69 @item C-r RET @dfn{string} RET | 69 @item C-r RET @dfn{string} RET |
70 This command will search for the specified string in the backward | 70 This command will search for the specified string in the backward |
71 direction. | 71 direction. |
72 @end table | 72 @end table |
73 | 73 |
74 For information on how Emacs searches for words and regular | 74 For information on how Emacs searches for words and regular |
75 expressions, @xref{Search,,,xemacs,XEmacs User's Manual}. | 75 expressions, @xref{Search,,,xemacs,XEmacs User's Manual}. |
76 | 76 |
77 To replace all occurrences of a string in Emacs, you can use the | 77 To replace all occurrences of a string in Emacs, you can use the |
78 following command: | 78 following command: |
79 @findex replace-string | 79 @findex replace-string |
80 @example | 80 @example |
81 M-x replace-string | 81 M-x replace-string |
82 @end example | 82 @end example |
83 | 83 |
84 @noindent | 84 @noindent |
85 After you type @kbd{M-x replace-string}, you will be prompted for a | 85 After you type @kbd{M-x replace-string}, you will be prompted for a |
86 string name to replace: | 86 string name to replace: |
109 ispell-buffer} to check for spellings in the whole buffer. You can also | 109 ispell-buffer} to check for spellings in the whole buffer. You can also |
110 check the spelling of a word or a region. You can use menus to | 110 check the spelling of a word or a region. You can use menus to |
111 check for spellings: | 111 check for spellings: |
112 | 112 |
113 @noindent | 113 @noindent |
114 Evaluate the expression @code{(load "big-menubar")}. To evaluate this | 114 Evaluate the expression @code{(load "big-menubar")}. To evaluate this |
115 expression you need to hit the @key{META} or the @key{ESC} key twice and | 115 expression you need to hit the @key{META} or the @key{ESC} key twice and |
116 type in the expression in the echo area before hitting @key{RET}. You | 116 type in the expression in the echo area before hitting @key{RET}. You |
117 will get an extensive menubar. Select the @b{Spell Check} menu item from | 117 will get an extensive menubar. Select the @b{Spell Check} menu item from |
118 the @b{Utilities} menu for checking spellings. | 118 the @b{Utilities} menu for checking spellings. |