diff options
| author | Richard M. Stallman | 2006-01-31 18:26:34 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2006-01-31 18:26:34 +0000 |
| commit | 7125ef59edf8964620830c295447623174d73a58 (patch) | |
| tree | 989776435782b4b0dbfa059afc0eef94866bcddd | |
| parent | 9f528dedebf267882aa6e096e9e1939d22f364ea (diff) | |
| download | emacs-7125ef59edf8964620830c295447623174d73a58.tar.gz emacs-7125ef59edf8964620830c295447623174d73a58.zip | |
Minor clarifications.
(Selective Undo): Node deleted.
| -rw-r--r-- | man/mark.texi | 33 |
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 | |||
| 88 | mouse button, and sets the mark at the other end of that range. Or you | 87 | mouse button, and sets the mark at the other end of that range. Or you |
| 89 | can click mouse button three, which sets the mark at point (like | 88 | can 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 | ||
| 92 | ring in addition to setting the mark; that gives behavior consistent | 93 | ring in addition to setting the mark; that gives behavior consistent |
| 93 | with other window-driven applications, but if you don't want to modify | 94 | with other window-driven applications. If you don't want to modify |
| 94 | the kill ring, you must use keyboard commands to set the mark. | 95 | the 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 |
| 300 | Evaluate it as Lisp code with @kbd{M-x eval-region} (@pxref{Lisp Eval}). | 301 | Evaluate it as Lisp code with @kbd{M-x eval-region} (@pxref{Lisp Eval}). |
| 301 | @item | 302 | @item |
| 302 | Undo changes within it using @kbd{C-u C-x u} (@pxref{Selective Undo}). | 303 | Undo 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 | ||
| 314 | can 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} | ||
| 318 | command with a prefix argument (the value does not matter): @kbd{C-u | ||
| 319 | C-x u} or @kbd{C-u C-_}. This undoes the most recent change in the | ||
| 320 | region. To undo further changes in the same region, repeat the | ||
| 321 | @code{undo} command (no prefix argument is needed). In Transient Mark | ||
| 322 | mode (@pxref{Transient Mark}), any use of @code{undo} when there is an | ||
| 323 | active region performs selective undo; you do not need a prefix | ||
| 324 | argument. | ||
| 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 | |||
| 368 | marks @var{n} paragraphs, running back form the one surrounding point. | 351 | marks @var{n} paragraphs, running back form the one surrounding point. |
| 369 | In that last case, point moves forward to the end of that paragraph, | 352 | In that last case, point moves forward to the end of that paragraph, |
| 370 | and the mark goes at the start of the region. Repeating the @kbd{M-h} | 353 | and the mark goes at the start of the region. Repeating the @kbd{M-h} |
| 371 | command extends the region, just as with @kbd{M-@@} and @kbd{C-M-@@}. | 354 | command 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 |
| 374 | mark after, the current (or following) major top-level definition, or | 357 | mark after, the current (or following) major top-level definition, or |
| 375 | defun (@pxref{Moving by Defuns}). Repeating @kbd{C-M-h} also extends | 358 | defun (@pxref{Moving by Defuns}). Repeating @kbd{C-M-h} extends |
| 376 | the region. | 359 | the 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, |
| 379 | and mark at the end (@pxref{Pages}). The mark goes after the | 362 | and mark at the end (@pxref{Pages}). The mark goes after the |