Mercurial > emacs
comparison man/regs.texi @ 88155:d7ddb3e565de
sync with trunk
author | Henrik Enberg <henrik.enberg@telia.com> |
---|---|
date | Mon, 16 Jan 2006 00:03:54 +0000 |
parents | df6767370b43 |
children |
comparison
equal
deleted
inserted
replaced
88154:8ce476d3ba36 | 88155:d7ddb3e565de |
---|---|
1 @c This is part of the Emacs manual. | 1 @c This is part of the Emacs manual. |
2 @c Copyright (C) 1985, 86, 87, 93, 94, 95, 1997 Free Software Foundation, Inc. | 2 @c Copyright (C) 1985, 1986, 1987, 1993, 1994, 1995, 1997, 2002, 2003, |
3 @c 2004, 2005 Free Software Foundation, Inc. | |
3 @c See file emacs.texi for copying conditions. | 4 @c See file emacs.texi for copying conditions. |
4 @node Registers, Display, Rectangles, Top | 5 @node Registers, Display, CUA Bindings, Top |
5 @chapter Registers | 6 @chapter Registers |
6 @cindex registers | 7 @cindex registers |
7 | 8 |
8 Emacs @dfn{registers} are compartments where you can save text, | 9 Emacs @dfn{registers} are compartments where you can save text, |
9 rectangles, positions, and other things for later use. Once you save | 10 rectangles, positions, and other things for later use. Once you save |
10 text or a rectangle in a register, you can copy it into the buffer | 11 text or a rectangle in a register, you can copy it into the buffer |
11 once, or many times; you can move point to a position saved in a | 12 once, or many times; you can move point to a position saved in a |
12 register once, or many times. | 13 register once, or many times. |
13 | 14 |
14 @findex view-register | 15 @findex view-register |
15 Each register has a name, which consists of a single character. | 16 Each register has a name, which consists of a single character. A |
16 A register can | 17 register can store a number, a piece of text, a rectangle, a position, |
17 store a piece of text, a rectangle, a position, a window configuration, | 18 a window configuration, or a file name, but only one thing at any |
18 or a file name, but only one thing at any given time. Whatever you | 19 given time. Whatever you store in a register remains there until you |
19 store in a register remains there until you store something else in that | 20 store something else in that register. To see what a register @var{r} |
20 register. To see what a register @var{r} contains, use @kbd{M-x | 21 contains, use @kbd{M-x view-register}. |
21 view-register}. | |
22 | 22 |
23 @table @kbd | 23 @table @kbd |
24 @item M-x view-register @key{RET} @var{r} | 24 @item M-x view-register @key{RET} @var{r} |
25 Display a description of what register @var{r} contains. | 25 Display a description of what register @var{r} contains. |
26 @end table | 26 @end table |
28 @menu | 28 @menu |
29 * Position: RegPos. Saving positions in registers. | 29 * Position: RegPos. Saving positions in registers. |
30 * Text: RegText. Saving text in registers. | 30 * Text: RegText. Saving text in registers. |
31 * Rectangle: RegRect. Saving rectangles in registers. | 31 * Rectangle: RegRect. Saving rectangles in registers. |
32 * Configurations: RegConfig. Saving window configurations in registers. | 32 * Configurations: RegConfig. Saving window configurations in registers. |
33 * Numbers: RegNumbers. Numbers in registers. | |
33 * Files: RegFiles. File names in registers. | 34 * Files: RegFiles. File names in registers. |
34 * Numbers: RegNumbers. Numbers in registers. | |
35 * Bookmarks:: Bookmarks are like registers, but persistent. | 35 * Bookmarks:: Bookmarks are like registers, but persistent. |
36 @end menu | 36 @end menu |
37 | 37 |
38 @node RegPos | 38 @node RegPos |
39 @section Saving Positions in Registers | 39 @section Saving Positions in Registers |
183 @item C-u @var{number} C-x r + @var{r} | 183 @item C-u @var{number} C-x r + @var{r} |
184 @kindex C-x r + | 184 @kindex C-x r + |
185 @findex increment-register | 185 @findex increment-register |
186 Increment the number in register @var{r} by @var{number} | 186 Increment the number in register @var{r} by @var{number} |
187 (@code{increment-register}). | 187 (@code{increment-register}). |
188 @item C-x r g @var{r} | 188 @item C-x r i @var{r} |
189 Insert the number from register @var{r} into the buffer. | 189 Insert the number from register @var{r} into the buffer. |
190 @end table | 190 @end table |
191 | 191 |
192 @kbd{C-x r g} is the same command used to insert any other sort of | 192 @kbd{C-x r i} is the same command used to insert any other sort of |
193 register contents into the buffer. @kbd{C-x r +} with no numeric | 193 register contents into the buffer. @kbd{C-x r +} with no numeric |
194 argument increments the register value by 1; @kbd{C-x r n} with no | 194 argument increments the register value by 1; @kbd{C-x r n} with no |
195 numeric argument stores zero in the register. | 195 numeric argument stores zero in the register. |
196 | 196 |
197 @node RegFiles | 197 @node RegFiles |
317 @item M-x bookmark-insert @key{RET} @var{bookmark} @key{RET} | 317 @item M-x bookmark-insert @key{RET} @var{bookmark} @key{RET} |
318 @findex bookmark-insert | 318 @findex bookmark-insert |
319 Insert in the buffer the @emph{contents} of the file that bookmark | 319 Insert in the buffer the @emph{contents} of the file that bookmark |
320 @var{bookmark} points to. | 320 @var{bookmark} points to. |
321 @end table | 321 @end table |
322 | |
323 @ignore | |
324 arch-tag: b00af991-ebc3-4b3a-8e82-a3ac81ff2e64 | |
325 @end ignore |