SXEmacs v22.1.16 is released!
[sxemacs] / info / sxemacs / fixit.texi
1 @node Fixit, Files, Search, Top
2 @chapter Commands for Fixing Typos
3 @cindex typos
4 @cindex mistakes, correcting
5
6   This chapter describes commands that are especially useful when you
7 catch a mistake in your text just after you have made it, or when you
8 change your mind while composing text on line.
9
10 @menu
11 * Kill Errors:: Commands to kill a batch of recently entered text.
12 * Transpose::   Exchanging two characters, words, lines, lists...
13 * Fixing Case:: Correcting case of last word entered.
14 * Spelling::    Apply spelling checker to a word, or a whole file.
15 @end menu
16
17 @node Kill Errors, Transpose, Fixit, Fixit
18 @section Killing Your Mistakes
19
20 @table @kbd
21 @item @key{DEL}
22 Delete last character (@code{delete-backward-char}).
23 @item M-@key{DEL}
24 Kill last word (@code{backward-kill-word}).
25 @item C-x @key{DEL}
26 Kill to beginning of sentence (@code{backward-kill-sentence}).
27 @end table
28
29 @kindex DEL
30 @findex delete-backward-char
31   The @key{DEL} character (@code{delete-backward-char}) is the most
32 important correction command.  When used among graphic (self-inserting)
33 characters, it can be thought of as canceling the last character typed.
34
35 @kindex M-DEL
36 @kindex C-x DEL
37 @findex backward-kill-word
38 @findex backward-kill-sentence
39   When your mistake is longer than a couple of characters, it might be more
40 convenient to use @kbd{M-@key{DEL}} or @kbd{C-x @key{DEL}}.
41 @kbd{M-@key{DEL}} kills back to the start of the last word, and @kbd{C-x
42 @key{DEL}} kills back to the start of the last sentence.  @kbd{C-x
43 @key{DEL}} is particularly useful when you are thinking of what to write as
44 you type it, in case you change your mind about phrasing.
45 @kbd{M-@key{DEL}} and @kbd{C-x @key{DEL}} save the killed text for
46 @kbd{C-y} and @kbd{M-y} to retrieve.  @xref{Yanking}.@refill
47
48   @kbd{M-@key{DEL}} is often useful even when you have typed only a few
49 characters wrong, if you know you are confused in your typing and aren't
50 sure exactly what you typed.  At such a time, you cannot correct with
51 @key{DEL} except by looking at the screen to see what you did.  It requires
52 less thought to kill the whole word and start over.
53
54 @node Transpose, Fixing Case, Kill Errors, Fixit
55 @section Transposing Text