aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorChong Yidong2008-03-28 19:03:46 +0000
committerChong Yidong2008-03-28 19:03:46 +0000
commita7cdd618bf731c10494282c3f912465ff22ab717 (patch)
tree9e5b2ea816e5abc45592bfd6d59e1be273e49876 /doc
parentb6e38d7ab4f5dfae75f1614dae1e5964edfa24d1 (diff)
downloademacs-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.texi63
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
57buffer, and moves point back to where it was before that change. 57buffer, 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
60and earlier changes in the current buffer, back to the limit of the 60and earlier changes in the current buffer, back to the limit of the
61current buffer's undo records. If all the recorded changes have 61current buffer's undo records. If all the recorded changes have
62already been undone, the undo command just signals an error. 62already 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
65easiest way to recover is to type @kbd{C-_} repeatedly until the stars 65easiest way to recover is to type @kbd{C-/} repeatedly until the stars
66disappear from the front of the mode line. At this time, all the 66disappear from the front of the mode line. At this time, all the
67modifications you made have been canceled. Whenever an undo command 67modifications you made have been canceled. Whenever an undo command
68makes the stars disappear from the mode line, it means that the buffer 68makes 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
70saved. 70saved.
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,
73type @kbd{C-_} once. When you see the last change you made undone, you 73type @kbd{C-/} once. When you see the last change you made undone, you
74will see whether it was an intentional change. If it was an accident, 74will see whether it was an intentional change. If it was an accident,
75leave it undone. If it was deliberate, redo the change as described 75leave it undone. If it was deliberate, redo the change as described
76below. 76below.
@@ -86,18 +86,16 @@ undo commands, use @kbd{M-x undo-only}. This is like @code{undo}, but
86will not redo changes you have just undone. 86will 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
91can also perform @dfn{selective undo}, limited to the region. 91@dfn{selective undo}, undoing the most recent change within the
92 92region, instead of the entire buffer. However, when Transient Mark
93 To do this, specify the region you want, then run the @code{undo} 93mode is off (@pxref{Persistent Mark}), @kbd{C-/} always operates on
94command with a prefix argument (the value does not matter): @kbd{C-u 94the entire buffer, ignoring the region. In this case, you can perform
95C-x u} or @kbd{C-u C-_}. This undoes the most recent change in the 95selective undo by supplying a prefix argument to the @code{undo}
96region. To undo further changes in the same region, repeat the 96command: @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 97the same region, repeat the @code{undo} command (no prefix argument is
98mode (@pxref{Transient Mark}), any use of @code{undo} when there is an 98needed).
99active region performs selective undo; you do not need a prefix
100argument.
101 99
102 Some specialized buffers do not make undo records. Buffers 100 Some specialized buffers do not make undo records. Buffers
103whose names start with spaces never do; these buffers are used 101whose 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
326optionally correct it as well, use the command @kbd{M-$} 324optionally 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
328you various alternatives for what to do about it. When the mark is 326various alternatives for what to do about it. If a region is active,
329active in Transient Mark mode, this command operates on the active 327@kbd{M-$} checks the spelling of all words within the region
330region like @code{ispell-region}. 328(@pxref{Mark}). (However, when Transient Mark mode is off, @kbd{M-$}
329always 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
335buffer if no region is active, or on region if one is active. (When
336Transient Mark mode is off, it always acts on the entire buffer,
337ignoring 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 342explicitly perform spell-checking on the entire buffer or the region
336spelling in an email message you are writing, use @kbd{M-x 343respectively.
344
345 To check spelling in an email message you are writing, use @kbd{M-x
337ispell-message}; that command checks the whole buffer, except for 346ispell-message}; that command checks the whole buffer, except for
338material that is indented or appears to be cited from other messages. 347material 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
343Transient Mark mode is on (@pxref{Transient Mark}), otherwise it
344spell-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
347what to do. They display a list of alternatives, usually including 350what to do. They display a list of alternatives, usually including
348several ``near-misses''---words that are close to the word being 351several ``near-misses''---words that are close to the word being