1 @node Fixit, Files, Search, Top
2 @chapter Commands for Fixing Typos
4 @cindex mistakes, correcting
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.
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.
17 @node Kill Errors, Transpose, Fixit, Fixit
18 @section Killing Your Mistakes
22 Delete last character (@code{delete-backward-char}).
24 Kill last word (@code{backward-kill-word}).
26 Kill to beginning of sentence (@code{backward-kill-sentence}).
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.
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
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.
54 @node Transpose, Fixing Case, Kill Errors, Fixit
55 @section Transposing Text