diff options
| author | Chong Yidong | 2008-03-28 19:03:46 +0000 |
|---|---|---|
| committer | Chong Yidong | 2008-03-28 19:03:46 +0000 |
| commit | a7cdd618bf731c10494282c3f912465ff22ab717 (patch) | |
| tree | 9e5b2ea816e5abc45592bfd6d59e1be273e49876 /doc | |
| parent | b6e38d7ab4f5dfae75f1614dae1e5964edfa24d1 (diff) | |
| download | emacs-a7cdd618bf731c10494282c3f912465ff22ab717.tar.gz emacs-a7cdd618bf731c10494282c3f912465ff22ab717.zip | |
(Undo): Standardize choice of undo key sequence.
(Undo, Spelling): Describe Transient Mark mode as the default.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/emacs/fixit.texi | 63 |
1 files changed, 33 insertions, 30 deletions
diff --git a/doc/emacs/fixit.texi b/doc/emacs/fixit.texi index f26b756fbb6..a6bd52b1bc4 100644 --- a/doc/emacs/fixit.texi +++ b/doc/emacs/fixit.texi | |||
| @@ -52,17 +52,17 @@ Undo one entry in the current buffer's undo records (@code{undo}). | |||
| 52 | @kindex C-_ | 52 | @kindex C-_ |
| 53 | @kindex C-/ | 53 | @kindex C-/ |
| 54 | @findex undo | 54 | @findex undo |
| 55 | To begin to undo, type the command @kbd{C-x u} (or its aliases, | 55 | To begin to undo, type the command @kbd{C-/} (or its aliases, |
| 56 | @kbd{C-_} or @kbd{C-/}). This undoes the most recent change in the | 56 | @kbd{C-_} or @kbd{C-x u}). This undoes the most recent change in the |
| 57 | buffer, and moves point back to where it was before that change. | 57 | buffer, and moves point back to where it was before that change. |
| 58 | 58 | ||
| 59 | Consecutive repetitions of @kbd{C-x u} (or its aliases) undo earlier | 59 | Consecutive repetitions of @kbd{C-/} (or its aliases) undo earlier |
| 60 | and earlier changes in the current buffer, back to the limit of the | 60 | and earlier changes in the current buffer, back to the limit of the |
| 61 | current buffer's undo records. If all the recorded changes have | 61 | current buffer's undo records. If all the recorded changes have |
| 62 | already been undone, the undo command just signals an error. | 62 | already been undone, the undo command just signals an error. |
| 63 | 63 | ||
| 64 | If you notice that a buffer has been modified accidentally, the | 64 | If you notice that a buffer has been modified accidentally, the |
| 65 | easiest way to recover is to type @kbd{C-_} repeatedly until the stars | 65 | easiest way to recover is to type @kbd{C-/} repeatedly until the stars |
| 66 | disappear from the front of the mode line. At this time, all the | 66 | disappear from the front of the mode line. At this time, all the |
| 67 | modifications you made have been canceled. Whenever an undo command | 67 | modifications you made have been canceled. Whenever an undo command |
| 68 | makes the stars disappear from the mode line, it means that the buffer | 68 | makes the stars disappear from the mode line, it means that the buffer |
| @@ -70,7 +70,7 @@ contents are the same as they were when the file was last read in or | |||
| 70 | saved. | 70 | saved. |
| 71 | 71 | ||
| 72 | If you do not remember whether you changed the buffer deliberately, | 72 | If you do not remember whether you changed the buffer deliberately, |
| 73 | type @kbd{C-_} once. When you see the last change you made undone, you | 73 | type @kbd{C-/} once. When you see the last change you made undone, you |
| 74 | will see whether it was an intentional change. If it was an accident, | 74 | will see whether it was an intentional change. If it was an accident, |
| 75 | leave it undone. If it was deliberate, redo the change as described | 75 | leave it undone. If it was deliberate, redo the change as described |
| 76 | below. | 76 | below. |
| @@ -86,18 +86,16 @@ undo commands, use @kbd{M-x undo-only}. This is like @code{undo}, but | |||
| 86 | will not redo changes you have just undone. | 86 | will not redo changes you have just undone. |
| 87 | 87 | ||
| 88 | @cindex selective undo | 88 | @cindex selective undo |
| 89 | @kindex C-u C-x u | 89 | @kindex C-u C-/ |
| 90 | Ordinary undo applies to all changes made in the current buffer. You | 90 | When there is an active region, any use of @code{undo} performs |
| 91 | can also perform @dfn{selective undo}, limited to the region. | 91 | @dfn{selective undo}, undoing the most recent change within the |
| 92 | 92 | region, instead of the entire buffer. However, when Transient Mark | |
| 93 | To do this, specify the region you want, then run the @code{undo} | 93 | mode is off (@pxref{Persistent Mark}), @kbd{C-/} always operates on |
| 94 | command with a prefix argument (the value does not matter): @kbd{C-u | 94 | the entire buffer, ignoring the region. In this case, you can perform |
| 95 | C-x u} or @kbd{C-u C-_}. This undoes the most recent change in the | 95 | selective undo by supplying a prefix argument to the @code{undo} |
| 96 | region. To undo further changes in the same region, repeat the | 96 | command: @kbd{C-u C-/} or @kbd{C-u C-x u}. To undo further changes in |
| 97 | @code{undo} command (no prefix argument is needed). In Transient Mark | 97 | the same region, repeat the @code{undo} command (no prefix argument is |
| 98 | mode (@pxref{Transient Mark}), any use of @code{undo} when there is an | 98 | needed). |
| 99 | active region performs selective undo; you do not need a prefix | ||
| 100 | argument. | ||
| 101 | 99 | ||
| 102 | Some specialized buffers do not make undo records. Buffers | 100 | Some specialized buffers do not make undo records. Buffers |
| 103 | whose names start with spaces never do; these buffers are used | 101 | whose names start with spaces never do; these buffers are used |
| @@ -324,25 +322,30 @@ you give an explicit command to do so. | |||
| 324 | @findex ispell-word | 322 | @findex ispell-word |
| 325 | To check the spelling of the word around or before point, and | 323 | To check the spelling of the word around or before point, and |
| 326 | optionally correct it as well, use the command @kbd{M-$} | 324 | optionally correct it as well, use the command @kbd{M-$} |
| 327 | (@code{ispell-word}). If the word is not correct, the command offers | 325 | (@code{ispell-word}). If the word is not correct, Emacs offers you |
| 328 | you various alternatives for what to do about it. When the mark is | 326 | various alternatives for what to do about it. If a region is active, |
| 329 | active in Transient Mark mode, this command operates on the active | 327 | @kbd{M-$} checks the spelling of all words within the region |
| 330 | region like @code{ispell-region}. | 328 | (@pxref{Mark}). (However, when Transient Mark mode is off, @kbd{M-$} |
| 329 | always acts on the word around or before point, ignoring the region. | ||
| 330 | @xref{Persistent Mark}.) | ||
| 331 | |||
| 332 | @findex ispell | ||
| 333 | @cindex spell-checking the active region | ||
| 334 | The @kbd{M-x ispell} command performs spell-checking on the entire | ||
| 335 | buffer if no region is active, or on region if one is active. (When | ||
| 336 | Transient Mark mode is off, it always acts on the entire buffer, | ||
| 337 | ignoring the region.) | ||
| 331 | 338 | ||
| 332 | @findex ispell-buffer | 339 | @findex ispell-buffer |
| 333 | @findex ispell-region | 340 | @findex ispell-region |
| 334 | To check the entire current buffer, use @kbd{M-x ispell-buffer}. Use | 341 | The commands @kbd{M-x ispell-buffer} and @kbd{M-x ispell-region} |
| 335 | @kbd{M-x ispell-region} to check just the current region. To check | 342 | explicitly perform spell-checking on the entire buffer or the region |
| 336 | spelling in an email message you are writing, use @kbd{M-x | 343 | respectively. |
| 344 | |||
| 345 | To check spelling in an email message you are writing, use @kbd{M-x | ||
| 337 | ispell-message}; that command checks the whole buffer, except for | 346 | ispell-message}; that command checks the whole buffer, except for |
| 338 | material that is indented or appears to be cited from other messages. | 347 | material that is indented or appears to be cited from other messages. |
| 339 | 348 | ||
| 340 | @findex ispell | ||
| 341 | @cindex spell-checking the active region | ||
| 342 | The @kbd{M-x ispell} command spell-checks the active region if the | ||
| 343 | Transient Mark mode is on (@pxref{Transient Mark}), otherwise it | ||
| 344 | spell-checks the current buffer. | ||
| 345 | |||
| 346 | Each time these commands encounter an incorrect word, they ask you | 349 | Each time these commands encounter an incorrect word, they ask you |
| 347 | what to do. They display a list of alternatives, usually including | 350 | what to do. They display a list of alternatives, usually including |
| 348 | several ``near-misses''---words that are close to the word being | 351 | several ``near-misses''---words that are close to the word being |