comparison man/new-users-guide/region.texi @ 290:c9fe270a4101 r21-0b43

Import from CVS: tag r21-0b43
author cvs
date Mon, 13 Aug 2007 10:36:47 +0200
parents 376386a54a3c
children 54f7aa390f4f
comparison
equal deleted inserted replaced
289:6e6992ccc4b6 290:c9fe270a4101
64 This command will push the mark at the end of the buffer without 64 This command will push the mark at the end of the buffer without
65 changing the position of your cursor. 65 changing the position of your cursor.
66 @end table 66 @end table
67 @noindent 67 @noindent
68 You can also give arguments to @kbd{C-<} or @kbd{C->}. @xref{The Mark 68 You can also give arguments to @kbd{C-<} or @kbd{C->}. @xref{The Mark
69 and the Region,,,,XEmacs User's Manual}, for more information. 69 and the Region,,,xemacs,XEmacs User's Manual}, for more information.
70 70
71 @comment node-name, next, previous, up 71 @comment node-name, next, previous, up
72 @node Mouse, Region Operation, Selecting Text, Select and Move 72 @node Mouse, Region Operation, Selecting Text, Select and Move
73 @section Selecting Text with Mouse 73 @section Selecting Text with Mouse
74 @cindex mouse selection 74 @cindex mouse selection
80 at the text you know what you have selected so far. To select a word 80 at the text you know what you have selected so far. To select a word
81 just double-click with the left-mouse-button on the word. To select a 81 just double-click with the left-mouse-button on the word. To select a
82 whole line triple-click anywhere on the line with the 82 whole line triple-click anywhere on the line with the
83 left-mouse-button. You can also use the @b{Copy} item from the @b{Edit} 83 left-mouse-button. You can also use the @b{Copy} item from the @b{Edit}
84 menu on the menu-bar to select text. This kind of selection is called 84 menu on the menu-bar to select text. This kind of selection is called
85 @b{Clipboard} selection, @xref{X Clipboard Selection,,,,XEmacs User's 85 @b{Clipboard} selection, @xref{X Clipboard Selection,,,xemacs,XEmacs User's
86 Manual}, for more information. To select an arbitrary region, follow 86 Manual}, for more information. To select an arbitrary region, follow
87 these steps: 87 these steps:
88 88
89 @enumerate 89 @enumerate
90 @item 90 @item
98 @item 98 @item
99 Release the left mouse button. 99 Release the left mouse button.
100 @end enumerate 100 @end enumerate
101 The selected region of text is highlighted. 101 The selected region of text is highlighted.
102 102
103 @xref{Selecting Text with the Mouse,,,,XEmacs User's Manual}, for 103 @xref{Selecting Text with the Mouse,,,xemacs,XEmacs User's Manual}, for
104 more information regarding the Mouse and additional mouse operations. 104 more information regarding the Mouse and additional mouse operations.
105 105
106 @comment node-name, next, previous, up 106 @comment node-name, next, previous, up
107 @node Region Operation, Moving Text, Mouse, Select and Move 107 @node Region Operation, Moving Text, Mouse, Select and Move
108 @section Operating on the Region 108 @section Operating on the Region
120 Kill the text with @kbd{C-w}. For example if you want to kill a 120 Kill the text with @kbd{C-w}. For example if you want to kill a
121 paragraph, position the cursor to the beginning of the paragraph and 121 paragraph, position the cursor to the beginning of the paragraph and
122 type @kbd{C-SPC}. Then go to the end of the paragraph and type 122 type @kbd{C-SPC}. Then go to the end of the paragraph and type
123 @kbd{C-w}. The entire paragraph will be deleted. You can also select the 123 @kbd{C-w}. The entire paragraph will be deleted. You can also select the
124 text with a mouse and type @kbd{C-w} to kill the entire 124 text with a mouse and type @kbd{C-w} to kill the entire
125 region. @xref{Killing,,,,XEmacs User's Manual}, for more information. 125 region. @xref{Killing,,,xemacs,XEmacs User's Manual}, for more information.
126 126
127 @item 127 @item
128 Save the text in a buffer or a file (@pxref{Accumulating Text,,,,XEmacs 128 Save the text in a buffer or a file (@pxref{Accumulating
129 Manual}). 129 Text,,,xemacs,XEmacs User's Manual}).
130 @item 130 @item
131 You can convert the case of the text with @kbd{C-x C-l} or @kbd{C-x C-u} 131 You can convert the case of the text with @kbd{C-x C-l} or @kbd{C-x C-u}
132 If you type @kbd{C-x C-u} the selected text will become all 132 If you type @kbd{C-x C-u} the selected text will become all
133 upper-case. If you type @kbd{C-x C-l} the selected text will become all 133 upper-case. If you type @kbd{C-x C-l} the selected text will become all
134 lower-case. 134 lower-case.
135 @item 135 @item
136 Print hardcopy with @kbd{M-x print-region}. @xref{Hardcopy,,,,XEmacs 136 Print hardcopy with @kbd{M-x
137 Manual}, for more information. This command will print a hardcopy of only 137 print-region}. @xref{Hardcopy,,,xemacs,XEmacs User's Manual}, for more
138 the selected text. 138 information. This command will print a hardcopy of only the selected
139 text.
139 @item 140 @item
140 Indent it with @kbd{C-x @key{TAB}} or @kbd{C-M-\} 141 Indent it with @kbd{C-x @key{TAB}} or @kbd{C-M-\}
141 @xref{Indentation,,,,XEmacs User's Manual}, for more information. 142 @xref{Indentation,,,xemacs,XEmacs User's Manual}, for more information.
142 @end itemize 143 @end itemize
143 144
144 145
145 @comment node-name, next, previous, up 146 @comment node-name, next, previous, up
146 @node Moving Text, Accumulating text, Region Operation, Select and Move 147 @node Moving Text, Accumulating text, Region Operation, Select and Move
222 This command will prompt you for a filename and append the region to 223 This command will prompt you for a filename and append the region to
223 the end of the contents of the specified file. 224 the end of the contents of the specified file.
224 @end table 225 @end table
225 226
226 @noindent 227 @noindent
227 @xref{Accumulating Text,,,,XEmacs User's Manual}, for more 228 @xref{Accumulating Text,,,xemacs,XEmacs User's Manual}, for more
228 information regarding this topic. 229 information regarding this topic.
229 230
230 You can also use @dfn{rectangle commands} for operating on rectangular 231 You can also use @dfn{rectangle commands} for operating on rectangular
231 areas of text. @xref{Rectangles,,,,XEmacs User's Manual}, for more 232 areas of text. @xref{Rectangles,,,xemacs,XEmacs User's Manual}, for more
232 information regarding rectangle commands. 233 information regarding rectangle commands.
233 234
234 Emacs also provides @dfn{registers} which serve as temporary storage for 235 Emacs also provides @dfn{registers} which serve as temporary storage for
235 text or positions. Each register has a one character name and they can 236 text or positions. Each register has a one character name and they can
236 store @dfn{regions}, a @dfn{rectangle}, or a @dfn{mark} i.e. a cursor 237 store @dfn{regions}, a @dfn{rectangle}, or a @dfn{mark} i.e. a cursor
237 position. Whatever you store in register stays there until you store 238 position. Whatever you store in register stays there until you store
238 something else in that register. To find out about commands which 239 something else in that register. To find out about commands which
239 manipulate registers @xref{Registers,,,,XEmacs User's Manual}. 240 manipulate registers @xref{Registers,,,xemacs,XEmacs User's Manual}.
240 241
241 242
242 243
243 244
244 245
245 246
246 247
247 248
248 249
249 250
250 251
251 252
252 253
253 254
254 255
255 256
256 257
257 258