diff options
| author | Richard M. Stallman | 2005-02-25 13:51:59 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2005-02-25 13:51:59 +0000 |
| commit | 87c190c7492832ca156a6da628bc07bd2bdc7f64 (patch) | |
| tree | 6ea0f8a5a9582d682bfbfac50a78ab14f837a61d | |
| parent | 41f1d48998f18dacb7a3bc205e640f1294e25bf3 (diff) | |
| download | emacs-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.texi | 80 |
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. | |||
| 85 | button one across a range of text; that puts point where you release the | 85 | button one across a range of text; that puts point where you release the |
| 86 | mouse button, and sets the mark at the other end of that range. Or you | 86 | mouse button, and sets the mark at the other end of that range. Or you |
| 87 | can click mouse button three, which sets the mark at point (like | 87 | can 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 |
| 89 | these 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 |
| 90 | the mark; that gives behavior consistent with other window-driven | 90 | ring in addition to setting the mark; that gives behavior consistent |
| 91 | applications, but if you don't want to modify the kill ring, you must | 91 | with other window-driven applications, but if you don't want to modify |
| 92 | use keyboard commands to set the mark. @xref{Mouse Commands}. | 92 | the 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 |
| 97 | to show you where the mark is located. You have to remember. The usual | 98 | does not show where the mark is located--you have to remember. If you |
| 98 | solution to this problem is to set the mark and then use it soon, before | 99 | enable Transient Mark mode (see below), then the region is highlighted |
| 99 | you forget where it is. Alternatively, you can see where the mark is | 100 | when it is active; you can tell mark is at the other end of the |
| 100 | with the command @kbd{C-x C-x} (@code{exchange-point-and-mark}) which | 101 | highlighted region. But this only applies when the mark is active. |
| 101 | puts the mark where point was and point where the mark was. The extent | 102 | |
| 102 | of 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 |
| 103 | previous position of the mark. In Transient Mark mode, this command | 104 | it soon, before you forget where it is. Alternatively, you can see |
| 104 | also reactivates the mark. | 105 | where the mark is with the command @kbd{C-x C-x} |
| 106 | (@code{exchange-point-and-mark}) which puts the mark where point was | ||
| 107 | and point where the mark was. The extent of the region is unchanged, | ||
| 108 | but the cursor and point are now at the previous position of the mark. | ||
| 109 | In 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 |
| 107 | of point but want to move the other end of the region (where the mark | 112 | of 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}; |
| 117 | type @key{SPC} while holding down @key{CTRL}, what you get on most | 122 | when you type @key{SPC} while holding down @key{CTRL} on a text |
| 118 | ordinary terminals is the character @kbd{C-@@}. This key is actually | 123 | terminal, what you get is the character @kbd{C-@@}. This key is also |
| 119 | bound to @code{set-mark-command}. But unless you are unlucky enough to | 124 | bound to @code{set-mark-command}--so unless you are unlucky enough to |
| 120 | have a terminal where typing @kbd{C-@key{SPC}} does not produce | 125 | have 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}}. |
| 123 | character, 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 | |||
| 182 | region active again by typing @kbd{C-x C-x}. | 186 | region active again by typing @kbd{C-x C-x}. |
| 183 | 187 | ||
| 184 | @item | 188 | @item |
| 189 | If Delete Selection mode is also enabled, some commands delete the | ||
| 190 | region when used while the mark is active. @xref{Graphical Kill}. | ||
| 191 | |||
| 192 | @item | ||
| 185 | Quitting with @kbd{C-g} deactivates the mark. | 193 | Quitting 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}). | |||
| 320 | word, while @kbd{C-M-@@} (@code{mark-sexp}) puts it at the end of the | 328 | word, while @kbd{C-M-@@} (@code{mark-sexp}) puts it at the end of the |
| 321 | next balanced expression (@pxref{Expressions}). These commands handle | 329 | next balanced expression (@pxref{Expressions}). These commands handle |
| 322 | arguments just like @kbd{M-f} and @kbd{C-M-f}. If you repeat these | 330 | arguments just like @kbd{M-f} and @kbd{C-M-f}. If you repeat these |
| 323 | commands, the region is extended. For example, you can type either | 331 | commands, 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 |
| 325 | The region is also extended when the mark is active in Transient Mark | 333 | command also extends the region when the mark is active in Transient |
| 326 | mode, regardless of the last command. | 334 | Mark 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, | |||
| 337 | point. If the prefix argument is @minus{}@var{n}, @kbd{M-h} also | 345 | point. If the prefix argument is @minus{}@var{n}, @kbd{M-h} also |
| 338 | marks @var{n} paragraphs, running back form the one surrounding point. | 346 | marks @var{n} paragraphs, running back form the one surrounding point. |
| 339 | In that last case, point moves forward to the end of that paragraph, | 347 | In that last case, point moves forward to the end of that paragraph, |
| 340 | and the mark goes at the start of the region. The @kbd{M-h} command | 348 | and the mark goes at the start of the region. Repeating the @kbd{M-h} |
| 341 | also supports the extension of the region, similar to @kbd{M-@@} and | 349 | command 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 |
| 345 | mark after, the current (or following) major top-level definition, or | 352 | mark after, the current (or following) major top-level definition, or |
| 346 | defun (@pxref{Moving by Defuns}). (Currently it only marks one defun, | 353 | defun (@pxref{Moving by Defuns}). Repeating @kbd{C-M-h} also extends |
| 347 | but repeating it marks more defuns, like for @kbd{M-@@}.) @kbd{C-x | 354 | the region. |
| 348 | C-p} (@code{mark-page}) puts point before the current page, and mark | 355 | |
| 349 | at 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, |
| 350 | delimiter (to include it in the region), while point goes after the | 357 | and mark at the end (@pxref{Pages}). The mark goes after the |
| 351 | preceding page delimiter (to exclude it). A numeric argument | 358 | terminating page delimiter (to include it in the region), while point |
| 352 | specifies a later page (if positive) or an earlier page (if negative) | 359 | goes after the preceding page delimiter (to exclude it). A numeric |
| 353 | instead of the current page. | 360 | argument specifies a later page (if positive) or an earlier page (if |
| 361 | negative) 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 |
| 356 | buffer as the region, by putting point at the beginning and the mark at | 364 | buffer as the region, by putting point at the beginning and the mark at |