aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--man/mark.texi21
1 files changed, 21 insertions, 0 deletions
diff --git a/man/mark.texi b/man/mark.texi
index 545eca30b8b..c472dffb5a6 100644
--- a/man/mark.texi
+++ b/man/mark.texi
@@ -44,6 +44,7 @@ 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.
47* Marking Objects:: Commands to put region around textual units. 48* Marking Objects:: Commands to put region around textual units.
48* Mark Ring:: Previous mark positions saved so you can go back there. 49* Mark Ring:: Previous mark positions saved so you can go back there.
49* Global Mark Ring:: Previous mark positions in various buffers. 50* Global Mark Ring:: Previous mark positions in various buffers.
@@ -297,11 +298,31 @@ Fill it as text with @kbd{M-x fill-region} (@pxref{Filling}).
297Print hardcopy with @kbd{M-x print-region} (@pxref{Printing}). 298Print hardcopy with @kbd{M-x print-region} (@pxref{Printing}).
298@item 299@item
299Evaluate it as Lisp code with @kbd{M-x eval-region} (@pxref{Lisp Eval}). 300Evaluate it as Lisp code with @kbd{M-x eval-region} (@pxref{Lisp Eval}).
301@item
302Undo changes within it using @kbd{C-u C-x u} (@pxref{Selective Undo}).
300@end itemize 303@end itemize
301 304
302 Most commands that operate on the text in the region have the word 305 Most commands that operate on the text in the region have the word
303@code{region} in their names. 306@code{region} in their names.
304 307
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
305@node Marking Objects 326@node Marking Objects
306@section Commands to Mark Textual Objects 327@section Commands to Mark Textual Objects
307 328