diff options
| author | Chong Yidong | 2009-05-28 16:48:05 +0000 |
|---|---|---|
| committer | Chong Yidong | 2009-05-28 16:48:05 +0000 |
| commit | 0fcca8ee23e37508b788189cdbfda2ebabcb8900 (patch) | |
| tree | 0bcff0e30bd22afc85421aac8e4fdb1f1d128d76 | |
| parent | ee1b1917a6ef6756ebb4e38a3b6a13aa5709c70a (diff) | |
| download | emacs-0fcca8ee23e37508b788189cdbfda2ebabcb8900.tar.gz emacs-0fcca8ee23e37508b788189cdbfda2ebabcb8900.zip | |
* mark.texi (Mark): Clarify introduction.
(Using Region, Persistent Mark): Use "active mark" instead of "active
region".
| -rw-r--r-- | doc/emacs/ChangeLog | 6 | ||||
| -rw-r--r-- | doc/emacs/mark.texi | 82 |
2 files changed, 46 insertions, 42 deletions
diff --git a/doc/emacs/ChangeLog b/doc/emacs/ChangeLog index 597f285db0a..6bb459c2338 100644 --- a/doc/emacs/ChangeLog +++ b/doc/emacs/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2009-05-28 Chong Yidong <cyd@stupidchicken.com> | ||
| 2 | |||
| 3 | * mark.texi (Mark): Clarify introduction. | ||
| 4 | (Using Region, Persistent Mark): Use "active mark" instead of "active | ||
| 5 | region". | ||
| 6 | |||
| 1 | 2009-05-16 Ari Roponen <ari.roponen@gmail.com> (tiny change) | 7 | 2009-05-16 Ari Roponen <ari.roponen@gmail.com> (tiny change) |
| 2 | 8 | ||
| 3 | * mule.texi (Select Input Method): Fix typo. | 9 | * mule.texi (Select Input Method): Fix typo. |
diff --git a/doc/emacs/mark.texi b/doc/emacs/mark.texi index 3f72d7da64a..4d1664773ef 100644 --- a/doc/emacs/mark.texi +++ b/doc/emacs/mark.texi | |||
| @@ -12,19 +12,17 @@ | |||
| 12 | current buffer. To specify the text for such a command to operate on, | 12 | current buffer. To specify the text for such a command to operate on, |
| 13 | you set @dfn{the mark} at one end of it, and move point to the other | 13 | you set @dfn{the mark} at one end of it, and move point to the other |
| 14 | end. The text between point and the mark is called @dfn{the region}. | 14 | end. The text between point and the mark is called @dfn{the region}. |
| 15 | 15 | The region always extends between point and the mark, no matter which | |
| 16 | If the mark is active, the region always extends between point and | 16 | one comes earlier in the text; each time you move point, the region |
| 17 | the mark, no matter which one comes earlier in the text; each time you | 17 | changes. |
| 18 | move point, the region changes. Whenever the mark is active, Emacs | 18 | |
| 19 | highlights the region. You can customize the appearance of this | 19 | When the mark is @dfn{active}, Emacs indicates the extent of the |
| 20 | highlighting by changing the @code{region} face (@pxref{Face | 20 | region by highlighting the text within it, using the @code{region} |
| 21 | Customization}). | 21 | face (@pxref{Face Customization}). After certain non-motion commands, |
| 22 | 22 | including any command that changes the text in the buffer, Emacs | |
| 23 | The region persists only until you use it. The mark is | 23 | automatically @dfn{deactivates} the mark; this turns off the |
| 24 | automatically @dfn{deactivated} after certain non-motion commands, | 24 | highlighting. You can also explicitly deactivate the mark at any |
| 25 | including any command that changes the text in the buffer. You can | 25 | time, by typing @kbd{C-g} (@pxref{Quitting}). |
| 26 | also explicitly deactivate the mark at any time, by typing @kbd{C-g} | ||
| 27 | (@pxref{Quitting}). | ||
| 28 | 26 | ||
| 29 | @vindex highlight-nonselected-windows | 27 | @vindex highlight-nonselected-windows |
| 30 | Setting the mark in one buffer has no effect on the marks in other | 28 | Setting the mark in one buffer has no effect on the marks in other |
| @@ -222,21 +220,20 @@ Save it in a buffer or a file (@pxref{Accumulating Text}). | |||
| 222 | Most commands that operate on the text in the region have the word | 220 | Most commands that operate on the text in the region have the word |
| 223 | @code{region} in their names. | 221 | @code{region} in their names. |
| 224 | 222 | ||
| 225 | Some commands have a default behavior when the region is inactive, | 223 | Some commands have a default behavior when the mark is inactive, but |
| 226 | but operate on the text in the region if the region is active. For | 224 | operate on the text in the region if the mark is active. For example, |
| 227 | example, @kbd{M-$} (@code{ispell-word}) normally checks the spelling | 225 | @kbd{M-$} (@code{ispell-word}) normally checks the spelling of the |
| 228 | of the word at point, but it checks the text in the region if the | 226 | word at point, but it checks the text in the region if the region is |
| 229 | region is active (@pxref{Spelling}). Normally, such commands use | 227 | active (@pxref{Spelling}). Normally, such commands use their default |
| 230 | their default behavior if the region is empty (i.e., if mark and point | 228 | behavior if the region is empty (i.e., if mark and point are at the |
| 231 | are at the same position). If you want them to operate on the empty | 229 | same position). If you want them to operate on the empty region, |
| 232 | region, change the variable @code{use-empty-active-region} to | 230 | change the variable @code{use-empty-active-region} to @code{t}. |
| 233 | @code{t}. | ||
| 234 | 231 | ||
| 235 | @cindex Delete Selection mode | 232 | @cindex Delete Selection mode |
| 236 | @cindex mode, Delete Selection | 233 | @cindex mode, Delete Selection |
| 237 | @findex delete-selection-mode | 234 | @findex delete-selection-mode |
| 238 | If you enable Delete Selection mode, a minor mode, then inserting | 235 | If you enable Delete Selection mode, a minor mode, then inserting |
| 239 | text while the region is active causes the selected text to be deleted | 236 | text while the mark is active causes the selected text to be deleted |
| 240 | first. This also deactivates the mark. Many graphical applications | 237 | first. This also deactivates the mark. Many graphical applications |
| 241 | follow this convention, but Emacs does not. To toggle Delete | 238 | follow this convention, but Emacs does not. To toggle Delete |
| 242 | Selection mode on or off, type @kbd{M-x delete-selection-mode}. | 239 | Selection mode on or off, type @kbd{M-x delete-selection-mode}. |
| @@ -366,23 +363,23 @@ commands. | |||
| 366 | @cindex region highlighting | 363 | @cindex region highlighting |
| 367 | @cindex Zmacs mode | 364 | @cindex Zmacs mode |
| 368 | 365 | ||
| 369 | By default, the region is highlighted whenever it exists, and | 366 | By default, the mark is activated by setting it, and deactivated by |
| 370 | disappears once you use it or explicitly deactivate the mark. This | 367 | most non-motion commands (including all commands that change the text |
| 371 | behavior is called Transient Mark mode@footnote{It is also sometimes | 368 | in the buffer). This behavior is called Transient Mark |
| 372 | called @dfn{Zmacs mode}, because the Zmacs editor on the MIT Lisp | 369 | mode@footnote{It is also sometimes called @dfn{Zmacs mode}, because |
| 373 | Machine handled the mark in a similar way.}. | 370 | the Zmacs editor on the MIT Lisp Machine handled the mark in a similar |
| 371 | way.}. | ||
| 374 | 372 | ||
| 375 | @findex transient-mark-mode | ||
| 376 | Turning off Transient Mark mode switches Emacs to an alternative | 373 | Turning off Transient Mark mode switches Emacs to an alternative |
| 377 | mode of operation, which was the default prior to Emacs 23. When | 374 | mode of operation, which was the default prior to Emacs 23. When |
| 378 | Transient Mark mode is off, the mark is persistent: it is @emph{never} | 375 | Transient Mark mode is off, the mark is @emph{never} deactivated, but |
| 379 | deactivated, but can be set to different locations using commands such | 376 | it can be set to different locations using commands such as |
| 380 | as @kbd{C-@key{SPC}}. After the first time you set the mark in a | 377 | @kbd{C-@key{SPC}}. Emacs does not highlight the region, because that |
| 381 | buffer, there is always a region in that buffer. Emacs will not | 378 | would be a nuisance. As a special exception, the region is |
| 382 | highlight the region, because that would be a nuisance. As a special | 379 | temporarily highlighted if you set it with the mouse (@pxref{Setting |
| 383 | exception, the region is temporarily highlighted after it is set with | 380 | Mark}), or with shift-selection (@pxref{Shift Selection}). |
| 384 | the mouse. | ||
| 385 | 381 | ||
| 382 | @findex transient-mark-mode | ||
| 386 | To turn off Transient Mark mode, type @kbd{M-x transient-mark-mode}. | 383 | To turn off Transient Mark mode, type @kbd{M-x transient-mark-mode}. |
| 387 | This command toggles the mode; you can use the same command to turn | 384 | This command toggles the mode; you can use the same command to turn |
| 388 | Transient Mark mode on again. You can also turn off Transient Mark | 385 | Transient Mark mode on again. You can also turn off Transient Mark |
| @@ -412,12 +409,13 @@ Many commands that move point long distances, like @kbd{M-<} and | |||
| 412 | @kbd{C-s}, first set the mark where point was. | 409 | @kbd{C-s}, first set the mark where point was. |
| 413 | 410 | ||
| 414 | @item | 411 | @item |
| 415 | Some commands that ordinarily operate on the region, if one exists, | 412 | Some commands, which ordinarily operate on the region when the mark is |
| 416 | act instead on the entire buffer. For instance, @kbd{C-x u} normally | 413 | active, instead act on the entire buffer. For instance, @kbd{C-x u} |
| 417 | reverses changes within the region if one exists; when Transient Mark | 414 | normally reverses changes within the region if the mark is active; |
| 418 | mode is off, it acts on the entire buffer. However, you can type | 415 | when Transient Mark mode is off, it acts on the entire buffer. |
| 419 | @kbd{C-u C-x u} to make it operate on the region. @xref{Undo}. Other | 416 | However, you can type @kbd{C-u C-x u} to make it operate on the |
| 420 | commands that act this way are identified in their own documentation. | 417 | region. @xref{Undo}. Other commands that act this way are identified |
| 418 | in their own documentation. | ||
| 421 | @end itemize | 419 | @end itemize |
| 422 | 420 | ||
| 423 | While Transient Mark mode is off, you can activate it temporarily | 421 | While Transient Mark mode is off, you can activate it temporarily |