aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2005-02-25 13:51:59 +0000
committerRichard M. Stallman2005-02-25 13:51:59 +0000
commit87c190c7492832ca156a6da628bc07bd2bdc7f64 (patch)
tree6ea0f8a5a9582d682bfbfac50a78ab14f837a61d
parent41f1d48998f18dacb7a3bc205e640f1294e25bf3 (diff)
downloademacs-87c190c7492832ca156a6da628bc07bd2bdc7f64.tar.gz
emacs-87c190c7492832ca156a6da628bc07bd2bdc7f64.zip
(Setting Mark): Clarify info about displaying mark.
Clarify explanation of C-@ and C-SPC. (Transient Mark): Mention Delete Selection mode. (Marking Objects): Clean up text about extending the region.
-rw-r--r--man/mark.texi80
1 files changed, 44 insertions, 36 deletions
diff --git a/man/mark.texi b/man/mark.texi
index c37bd7857e0..f609472bca7 100644
--- a/man/mark.texi
+++ b/man/mark.texi
@@ -85,23 +85,28 @@ can move point away, leaving the mark behind.
85button one across a range of text; that puts point where you release the 85button one across a range of text; that puts point where you release the
86mouse button, and sets the mark at the other end of that range. Or you 86mouse button, and sets the mark at the other end of that range. Or you
87can click mouse button three, which sets the mark at point (like 87can click mouse button three, which sets the mark at point (like
88@kbd{C-@key{SPC}}) and then moves point (like @kbd{Mouse-1}). Both of 88@kbd{C-@key{SPC}}) and then moves point where you clicked (like
89these methods copy the region into the kill ring in addition to setting 89@kbd{Mouse-1}). Both of these methods copy the region into the kill
90the mark; that gives behavior consistent with other window-driven 90ring in addition to setting the mark; that gives behavior consistent
91applications, but if you don't want to modify the kill ring, you must 91with other window-driven applications, but if you don't want to modify
92use keyboard commands to set the mark. @xref{Mouse Commands}. 92the kill ring, you must use keyboard commands to set the mark.
93@xref{Mouse Commands}.
93 94
94@kindex C-x C-x 95@kindex C-x C-x
95@findex exchange-point-and-mark 96@findex exchange-point-and-mark
96 Ordinary terminals have only one cursor, so there is no way for Emacs 97 When Emacs was developed, terminals had only one cursor, so Emacs
97to show you where the mark is located. You have to remember. The usual 98does not show where the mark is located--you have to remember. If you
98solution to this problem is to set the mark and then use it soon, before 99enable Transient Mark mode (see below), then the region is highlighted
99you forget where it is. Alternatively, you can see where the mark is 100when it is active; you can tell mark is at the other end of the
100with the command @kbd{C-x C-x} (@code{exchange-point-and-mark}) which 101highlighted region. But this only applies when the mark is active.
101puts the mark where point was and point where the mark was. The extent 102
102of the region is unchanged, but the cursor and point are now at the 103 The usual solution to this problem is to set the mark and then use
103previous position of the mark. In Transient Mark mode, this command 104it soon, before you forget where it is. Alternatively, you can see
104also reactivates the mark. 105where the mark is with the command @kbd{C-x C-x}
106(@code{exchange-point-and-mark}) which puts the mark where point was
107and point where the mark was. The extent of the region is unchanged,
108but the cursor and point are now at the previous position of the mark.
109In Transient Mark mode, this command also reactivates the mark.
105 110
106 @kbd{C-x C-x} is also useful when you are satisfied with the position 111 @kbd{C-x C-x} is also useful when you are satisfied with the position
107of point but want to move the other end of the region (where the mark 112of point but want to move the other end of the region (where the mark
@@ -113,14 +118,13 @@ the new position with point back at its original position.
113@ref{Mark Ring}. 118@ref{Mark Ring}.
114 119
115@kindex C-@@ 120@kindex C-@@
116 There is no such character as @kbd{C-@key{SPC}} in @acronym{ASCII}; when you 121 There is no such character as @kbd{C-@key{SPC}} in @acronym{ASCII};
117type @key{SPC} while holding down @key{CTRL}, what you get on most 122when you type @key{SPC} while holding down @key{CTRL} on a text
118ordinary terminals is the character @kbd{C-@@}. This key is actually 123terminal, what you get is the character @kbd{C-@@}. This key is also
119bound to @code{set-mark-command}. But unless you are unlucky enough to 124bound to @code{set-mark-command}--so unless you are unlucky enough to
120have a terminal where typing @kbd{C-@key{SPC}} does not produce 125have a text terminal where typing @kbd{C-@key{SPC}} does not produce
121@kbd{C-@@}, you might as well think of this character as 126@kbd{C-@@}, you might as well think of this character as
122@kbd{C-@key{SPC}}. Under X, @kbd{C-@key{SPC}} is actually a distinct 127@kbd{C-@key{SPC}}.
123character, but its binding is still @code{set-mark-command}.
124 128
125@node Transient Mark 129@node Transient Mark
126@section Transient Mark Mode 130@section Transient Mark Mode
@@ -182,6 +186,10 @@ on a region will get an error and refuse to operate. You can make the
182region active again by typing @kbd{C-x C-x}. 186region active again by typing @kbd{C-x C-x}.
183 187
184@item 188@item
189If Delete Selection mode is also enabled, some commands delete the
190region when used while the mark is active. @xref{Graphical Kill}.
191
192@item
185Quitting with @kbd{C-g} deactivates the mark. 193Quitting with @kbd{C-g} deactivates the mark.
186 194
187@item 195@item
@@ -320,10 +328,10 @@ Put region around current page (@code{mark-page}).
320word, while @kbd{C-M-@@} (@code{mark-sexp}) puts it at the end of the 328word, while @kbd{C-M-@@} (@code{mark-sexp}) puts it at the end of the
321next balanced expression (@pxref{Expressions}). These commands handle 329next balanced expression (@pxref{Expressions}). These commands handle
322arguments just like @kbd{M-f} and @kbd{C-M-f}. If you repeat these 330arguments just like @kbd{M-f} and @kbd{C-M-f}. If you repeat these
323commands, the region is extended. For example, you can type either 331commands, that extends the region. For example, you can type either
324@kbd{C-u 2 M-@@} or @kbd{M-@@ M-@@} to mark the next two words. 332@kbd{C-u 2 M-@@} or @kbd{M-@@ M-@@} to mark the next two words. This
325The region is also extended when the mark is active in Transient Mark 333command also extends the region when the mark is active in Transient
326mode, regardless of the last command. 334Mark mode, regardless of the last command.
327 335
328@kindex C-x h 336@kindex C-x h
329@findex mark-whole-buffer 337@findex mark-whole-buffer
@@ -337,20 +345,20 @@ paragraph. With prefix argument, if the argument's value is positive,
337point. If the prefix argument is @minus{}@var{n}, @kbd{M-h} also 345point. If the prefix argument is @minus{}@var{n}, @kbd{M-h} also
338marks @var{n} paragraphs, running back form the one surrounding point. 346marks @var{n} paragraphs, running back form the one surrounding point.
339In that last case, point moves forward to the end of that paragraph, 347In that last case, point moves forward to the end of that paragraph,
340and the mark goes at the start of the region. The @kbd{M-h} command 348and the mark goes at the start of the region. Repeating the @kbd{M-h}
341also supports the extension of the region, similar to @kbd{M-@@} and 349command extends the region, just as with @kbd{M-@@} and @kbd{C-M-@@}.
342@kbd{C-M-@@}.
343 350
344 @kbd{C-M-h} (@code{mark-defun}) similarly puts point before, and the 351 @kbd{C-M-h} (@code{mark-defun}) similarly puts point before, and the
345mark after, the current (or following) major top-level definition, or 352mark after, the current (or following) major top-level definition, or
346defun (@pxref{Moving by Defuns}). (Currently it only marks one defun, 353defun (@pxref{Moving by Defuns}). Repeating @kbd{C-M-h} also extends
347but repeating it marks more defuns, like for @kbd{M-@@}.) @kbd{C-x 354the region.
348C-p} (@code{mark-page}) puts point before the current page, and mark 355
349at the end (@pxref{Pages}). The mark goes after the terminating page 356 @kbd{C-x C-p} (@code{mark-page}) puts point before the current page,
350delimiter (to include it in the region), while point goes after the 357and mark at the end (@pxref{Pages}). The mark goes after the
351preceding page delimiter (to exclude it). A numeric argument 358terminating page delimiter (to include it in the region), while point
352specifies a later page (if positive) or an earlier page (if negative) 359goes after the preceding page delimiter (to exclude it). A numeric
353instead of the current page. 360argument specifies a later page (if positive) or an earlier page (if
361negative) instead of the current page.
354 362
355 Finally, @kbd{C-x h} (@code{mark-whole-buffer}) sets up the entire 363 Finally, @kbd{C-x h} (@code{mark-whole-buffer}) sets up the entire
356buffer as the region, by putting point at the beginning and the mark at 364buffer as the region, by putting point at the beginning and the mark at