Mercurial > emacs
comparison man/mark.texi @ 38411:2fc02d49a9a4
Clarify initial discussion.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sat, 14 Jul 2001 18:19:27 +0000 |
parents | 537f173f694c |
children | 23f63206a867 |
comparison
equal
deleted
inserted
replaced
38410:8d7f5ed7deaa | 38411:2fc02d49a9a4 |
---|---|
12 you set @dfn{the mark} at one end of it, and move point to the other | 12 you set @dfn{the mark} at one end of it, and move point to the other |
13 end. The text between point and the mark is called @dfn{the region}. | 13 end. The text between point and the mark is called @dfn{the region}. |
14 Emacs highlights the region whenever there is one, if you enable | 14 Emacs highlights the region whenever there is one, if you enable |
15 Transient Mark mode (@pxref{Transient Mark}). | 15 Transient Mark mode (@pxref{Transient Mark}). |
16 | 16 |
17 You can move point or the mark to adjust the boundaries of the region. | 17 Certain Emacs commands set the mark; other editing commands do not |
18 It doesn't matter which one is set first chronologically, or which one | 18 affect it, so the mark remains where you set it last. Each Emacs |
19 comes earlier in the text. Once the mark has been set, it remains where | 19 buffer has its own mark, and setting the mark in one buffer has no |
20 you put it until you set it again at another place. Each Emacs buffer | 20 effect on other buffers' marks. When you return to a buffer that had |
21 has its own mark, so that when you return to a buffer that had been | 21 been selected previously, its mark is at the same place as before. |
22 selected previously, it has the same mark it had before. | 22 |
23 The ends of the region are always point and the mark. It doesn't | |
24 matter which of them was put in its current place first, or which one | |
25 comes earlier in the text---the region starts from point or the mark | |
26 (whichever comes first), and ends at point or the mark (whichever | |
27 comes last). Every time you move point, or set the mark in a new | |
28 place, the region changes. | |
23 | 29 |
24 Many commands that insert text, such as @kbd{C-y} (@code{yank}) and | 30 Many commands that insert text, such as @kbd{C-y} (@code{yank}) and |
25 @kbd{M-x insert-buffer}, position point and the mark at opposite ends of | 31 @kbd{M-x insert-buffer}, position point and the mark at opposite ends |
26 the inserted text, so that the region contains the text just inserted. | 32 of the inserted text, so that the region consists of the text just |
33 inserted. | |
27 | 34 |
28 Aside from delimiting the region, the mark is also useful for | 35 Aside from delimiting the region, the mark is also useful for |
29 remembering a spot that you may want to go back to. To make this | 36 remembering a spot that you may want to go back to. To make this |
30 feature more useful, each buffer remembers 16 previous locations of the | 37 feature more useful, each buffer remembers 16 previous locations of the |
31 mark in the @dfn{mark ring}. | 38 mark in the @dfn{mark ring}. |