aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2006-01-31 18:26:34 +0000
committerRichard M. Stallman2006-01-31 18:26:34 +0000
commit7125ef59edf8964620830c295447623174d73a58 (patch)
tree989776435782b4b0dbfa059afc0eef94866bcddd
parent9f528dedebf267882aa6e096e9e1939d22f364ea (diff)
downloademacs-7125ef59edf8964620830c295447623174d73a58.tar.gz
emacs-7125ef59edf8964620830c295447623174d73a58.zip
Minor clarifications.
(Selective Undo): Node deleted.
-rw-r--r--man/mark.texi33
1 files changed, 8 insertions, 25 deletions
diff --git a/man/mark.texi b/man/mark.texi
index c472dffb5a6..f4308835e96 100644
--- a/man/mark.texi
+++ b/man/mark.texi
@@ -44,7 +44,6 @@ mark in the @dfn{mark ring}.
44 when there is one. 44 when there is one.
45* Momentary Mark:: Enabling Transient Mark mode momentarily. 45* Momentary Mark:: Enabling Transient Mark mode momentarily.
46* Using Region:: Summary of ways to operate on contents of the region. 46* Using Region:: Summary of ways to operate on contents of the region.
47* Selective Undo:: Undoing within a given region.
48* Marking Objects:: Commands to put region around textual units. 47* Marking Objects:: Commands to put region around textual units.
49* Mark Ring:: Previous mark positions saved so you can go back there. 48* Mark Ring:: Previous mark positions saved so you can go back there.
50* Global Mark Ring:: Previous mark positions in various buffers. 49* Global Mark Ring:: Previous mark positions in various buffers.
@@ -88,9 +87,11 @@ button one across a range of text; that puts point where you release the
88mouse button, and sets the mark at the other end of that range. Or you 87mouse button, and sets the mark at the other end of that range. Or you
89can click mouse button three, which sets the mark at point (like 88can click mouse button three, which sets the mark at point (like
90@kbd{C-@key{SPC}}) and then moves point where you clicked (like 89@kbd{C-@key{SPC}}) and then moves point where you clicked (like
91@kbd{Mouse-1}). Both of these methods copy the region into the kill 90@kbd{Mouse-1}).
91
92 Using the mouse to mark a region copies the region into the kill
92ring in addition to setting the mark; that gives behavior consistent 93ring in addition to setting the mark; that gives behavior consistent
93with other window-driven applications, but if you don't want to modify 94with other window-driven applications. If you don't want to modify
94the kill ring, you must use keyboard commands to set the mark. 95the kill ring, you must use keyboard commands to set the mark.
95@xref{Mouse Commands}. 96@xref{Mouse Commands}.
96 97
@@ -299,30 +300,12 @@ Print hardcopy with @kbd{M-x print-region} (@pxref{Printing}).
299@item 300@item
300Evaluate it as Lisp code with @kbd{M-x eval-region} (@pxref{Lisp Eval}). 301Evaluate it as Lisp code with @kbd{M-x eval-region} (@pxref{Lisp Eval}).
301@item 302@item
302Undo changes within it using @kbd{C-u C-x u} (@pxref{Selective Undo}). 303Undo changes within it using @kbd{C-u C-x u} (@pxref{Undo}).
303@end itemize 304@end itemize
304 305
305 Most commands that operate on the text in the region have the word 306 Most commands that operate on the text in the region have the word
306@code{region} in their names. 307@code{region} in their names.
307 308
308@node Selective Undo
309@section Selective Undo
310
311@cindex selective undo
312@kindex C-u C-x u
313 Ordinary undo applies to all changes made in the current buffer. You
314can also perform @dfn{selective undo}, limited to the current region
315(@pxref{Mark}).
316
317 To do this, specify the region you want, then run the @code{undo}
318command with a prefix argument (the value does not matter): @kbd{C-u
319C-x u} or @kbd{C-u C-_}. This undoes the most recent change in the
320region. To undo further changes in the same region, repeat the
321@code{undo} command (no prefix argument is needed). In Transient Mark
322mode (@pxref{Transient Mark}), any use of @code{undo} when there is an
323active region performs selective undo; you do not need a prefix
324argument.
325
326@node Marking Objects 309@node Marking Objects
327@section Commands to Mark Textual Objects 310@section Commands to Mark Textual Objects
328 311
@@ -368,12 +351,12 @@ point. If the prefix argument is @minus{}@var{n}, @kbd{M-h} also
368marks @var{n} paragraphs, running back form the one surrounding point. 351marks @var{n} paragraphs, running back form the one surrounding point.
369In that last case, point moves forward to the end of that paragraph, 352In that last case, point moves forward to the end of that paragraph,
370and the mark goes at the start of the region. Repeating the @kbd{M-h} 353and the mark goes at the start of the region. Repeating the @kbd{M-h}
371command extends the region, just as with @kbd{M-@@} and @kbd{C-M-@@}. 354command extends the region to subsequent paragraphs.
372 355
373 @kbd{C-M-h} (@code{mark-defun}) similarly puts point before, and the 356 @kbd{C-M-h} (@code{mark-defun}) similarly puts point before, and the
374mark after, the current (or following) major top-level definition, or 357mark after, the current (or following) major top-level definition, or
375defun (@pxref{Moving by Defuns}). Repeating @kbd{C-M-h} also extends 358defun (@pxref{Moving by Defuns}). Repeating @kbd{C-M-h} extends
376the region. 359the region to subsequent defuns.
377 360
378 @kbd{C-x C-p} (@code{mark-page}) puts point before the current page, 361 @kbd{C-x C-p} (@code{mark-page}) puts point before the current page,
379and mark at the end (@pxref{Pages}). The mark goes after the 362and mark at the end (@pxref{Pages}). The mark goes after the