aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Yidong2009-05-28 16:48:05 +0000
committerChong Yidong2009-05-28 16:48:05 +0000
commit0fcca8ee23e37508b788189cdbfda2ebabcb8900 (patch)
tree0bcff0e30bd22afc85421aac8e4fdb1f1d128d76
parentee1b1917a6ef6756ebb4e38a3b6a13aa5709c70a (diff)
downloademacs-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/ChangeLog6
-rw-r--r--doc/emacs/mark.texi82
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 @@
12009-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
12009-05-16 Ari Roponen <ari.roponen@gmail.com> (tiny change) 72009-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 @@
12current buffer. To specify the text for such a command to operate on, 12current buffer. To specify the text for such a command to operate on,
13you set @dfn{the mark} at one end of it, and move point to the other 13you set @dfn{the mark} at one end of it, and move point to the other
14end. The text between point and the mark is called @dfn{the region}. 14end. The text between point and the mark is called @dfn{the region}.
15 15The region always extends between point and the mark, no matter which
16 If the mark is active, the region always extends between point and 16one comes earlier in the text; each time you move point, the region
17the mark, no matter which one comes earlier in the text; each time you 17changes.
18move point, the region changes. Whenever the mark is active, Emacs 18
19highlights the region. You can customize the appearance of this 19 When the mark is @dfn{active}, Emacs indicates the extent of the
20highlighting by changing the @code{region} face (@pxref{Face 20region by highlighting the text within it, using the @code{region}
21Customization}). 21face (@pxref{Face Customization}). After certain non-motion commands,
22 22including any command that changes the text in the buffer, Emacs
23 The region persists only until you use it. The mark is 23automatically @dfn{deactivates} the mark; this turns off the
24automatically @dfn{deactivated} after certain non-motion commands, 24highlighting. You can also explicitly deactivate the mark at any
25including any command that changes the text in the buffer. You can 25time, by typing @kbd{C-g} (@pxref{Quitting}).
26also 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
226but operate on the text in the region if the region is active. For 224operate on the text in the region if the mark is active. For example,
227example, @kbd{M-$} (@code{ispell-word}) normally checks the spelling 225@kbd{M-$} (@code{ispell-word}) normally checks the spelling of the
228of the word at point, but it checks the text in the region if the 226word at point, but it checks the text in the region if the region is
229region is active (@pxref{Spelling}). Normally, such commands use 227active (@pxref{Spelling}). Normally, such commands use their default
230their default behavior if the region is empty (i.e., if mark and point 228behavior if the region is empty (i.e., if mark and point are at the
231are at the same position). If you want them to operate on the empty 229same position). If you want them to operate on the empty region,
232region, change the variable @code{use-empty-active-region} to 230change 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
239text while the region is active causes the selected text to be deleted 236text while the mark is active causes the selected text to be deleted
240first. This also deactivates the mark. Many graphical applications 237first. This also deactivates the mark. Many graphical applications
241follow this convention, but Emacs does not. To toggle Delete 238follow this convention, but Emacs does not. To toggle Delete
242Selection mode on or off, type @kbd{M-x delete-selection-mode}. 239Selection 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
370disappears once you use it or explicitly deactivate the mark. This 367most non-motion commands (including all commands that change the text
371behavior is called Transient Mark mode@footnote{It is also sometimes 368in the buffer). This behavior is called Transient Mark
372called @dfn{Zmacs mode}, because the Zmacs editor on the MIT Lisp 369mode@footnote{It is also sometimes called @dfn{Zmacs mode}, because
373Machine handled the mark in a similar way.}. 370the Zmacs editor on the MIT Lisp Machine handled the mark in a similar
371way.}.
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
377mode of operation, which was the default prior to Emacs 23. When 374mode of operation, which was the default prior to Emacs 23. When
378Transient Mark mode is off, the mark is persistent: it is @emph{never} 375Transient Mark mode is off, the mark is @emph{never} deactivated, but
379deactivated, but can be set to different locations using commands such 376it can be set to different locations using commands such as
380as @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
381buffer, there is always a region in that buffer. Emacs will not 378would be a nuisance. As a special exception, the region is
382highlight the region, because that would be a nuisance. As a special 379temporarily highlighted if you set it with the mouse (@pxref{Setting
383exception, the region is temporarily highlighted after it is set with 380Mark}), or with shift-selection (@pxref{Shift Selection}).
384the 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}.
387This command toggles the mode; you can use the same command to turn 384This command toggles the mode; you can use the same command to turn
388Transient Mark mode on again. You can also turn off Transient Mark 385Transient 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
415Some commands that ordinarily operate on the region, if one exists, 412Some commands, which ordinarily operate on the region when the mark is
416act instead on the entire buffer. For instance, @kbd{C-x u} normally 413active, instead act on the entire buffer. For instance, @kbd{C-x u}
417reverses changes within the region if one exists; when Transient Mark 414normally reverses changes within the region if the mark is active;
418mode is off, it acts on the entire buffer. However, you can type 415when 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 416However, you can type @kbd{C-u C-x u} to make it operate on the
420commands that act this way are identified in their own documentation. 417region. @xref{Undo}. Other commands that act this way are identified
418in 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