annotate doc/emacs/fixit.texi @ 102419:2fd3e5c68dab

(Spelling): Add turn-on-flyspell. (Bug#2517)
author Reiner Steib <Reiner.Steib@gmx.de>
date Thu, 05 Mar 2009 20:52:44 +0000
parents 468788460778
children cb15fed5ca65
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
84240
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
1 @c This is part of the Emacs manual.
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
2 @c Copyright (C) 1985, 1986, 1987, 1993, 1994, 1995, 1997, 2001, 2002,
100974
cb5d2387102c Add 2009 to copyright years.
Glenn Morris <rgm@gnu.org>
parents: 100564
diff changeset
3 @c 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
84240
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
4 @c See file emacs.texi for copying conditions.
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
5 @node Fixit, Keyboard Macros, Search, Top
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
6 @chapter Commands for Fixing Typos
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
7 @cindex typos, fixing
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
8 @cindex mistakes, correcting
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
9
98300
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
10 In this chapter we describe the commands that are especially useful
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
11 when you catch a mistake in your text after you have made it, or
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
12 change your mind while composing text on the fly.
84240
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
13
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
14 The most fundamental command for correcting erroneous editing is the
98300
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
15 undo command @kbd{C-/} (which is also bound to @kbd{C-x u} and
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
16 @kbd{C-_}). This undoes a single command, or a part of a command (as
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
17 in the case of @code{query-replace}), or several consecutive
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
18 self-inserting characters. Consecutive repetitions of @kbd{C-/} undo
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
19 earlier and earlier changes, back to the limit of the undo information
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
20 available.
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
21
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
22 Aside from the commands described here, you can erase text using
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
23 deletion commands such as @key{DEL} (@code{delete-backward-char}).
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
24 These were described earlier in this manual. @xref{Erasing}.
84240
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
25
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
26 @menu
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
27 * Undo:: The Undo commands.
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
28 * Transpose:: Exchanging two characters, words, lines, lists...
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
29 * Fixing Case:: Correcting case of last word entered.
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
30 * Spelling:: Apply spelling checker to a word, or a whole file.
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
31 @end menu
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
32
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
33 @node Undo
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
34 @section Undo
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
35 @cindex undo
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
36 @cindex changes, undoing
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
37
98300
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
38 The @dfn{undo} command reverses recent changes in the buffer's text.
84240
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
39 Each buffer records changes individually, and the undo command always
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
40 applies to the current buffer. You can undo all the changes in a
98300
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
41 buffer for as far as back its records go. Usually, each editing
84240
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
42 command makes a separate entry in the undo records, but some commands
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
43 such as @code{query-replace} divide their changes into multiple
98300
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
44 entries for flexibility in undoing. Consecutive character insertion
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
45 commands are usually grouped together into a single undo record, to
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
46 make undoing less tedious.
84240
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
47
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
48 @table @kbd
98300
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
49 @item C-/
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
50 @itemx C-x u
84240
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
51 @itemx C-_
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
52 Undo one entry in the current buffer's undo records (@code{undo}).
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
53 @end table
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
54
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
55 @kindex C-x u
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
56 @kindex C-_
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
57 @kindex C-/
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
58 @findex undo
98300
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
59 To begin to undo, type @kbd{C-/} (or its aliases, @kbd{C-_} or
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
60 @kbd{C-x u})@footnote{Aside from @kbd{C-/}, the @code{undo} command is
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
61 also bound to @kbd{C-x u} because that is more straightforward for
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
62 beginners to remember: @samp{u} stands for ``undo''. It is also bound
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
63 to @kbd{C-_} because typing @kbd{C-/} on some text-only terminals
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
64 actually enters @kbd{C-_}.}. This undoes the most recent change in
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
65 the buffer, and moves point back to where it was before that change.
84240
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
66
93353
227e854da153 (Undo): Standardize choice of undo key sequence.
Chong Yidong <cyd@stupidchicken.com>
parents: 87903
diff changeset
67 Consecutive repetitions of @kbd{C-/} (or its aliases) undo earlier
98300
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
68 and earlier changes in the current buffer. If all the recorded
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
69 changes have already been undone, the undo command signals an error.
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
70
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
71 @cindex redo
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
72 @findex undo-only
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
73 Any command other than an undo command breaks the sequence of undo
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
74 commands. Starting from that moment, the entire sequence of undo
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
75 commands that you have just performed are themselves placed into the
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
76 undo record, as a single set of changes. Therefore, to re-apply
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
77 changes you have undone, type @kbd{C-f} or any other command that
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
78 harmlessly breaks the sequence of undoing; then type @kbd{C-/} to undo
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
79 the undo command.
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
80
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
81 On the other hand, if you want to resume undoing, without redoing
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
82 previous undo commands, use @kbd{M-x undo-only}. This is like
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
83 @code{undo}, but will not redo changes you have just undone.
84240
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
84
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
85 If you notice that a buffer has been modified accidentally, the
93353
227e854da153 (Undo): Standardize choice of undo key sequence.
Chong Yidong <cyd@stupidchicken.com>
parents: 87903
diff changeset
86 easiest way to recover is to type @kbd{C-/} repeatedly until the stars
98300
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
87 disappear from the front of the mode line (@pxref{Mode Line}).
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
88 Whenever an undo command makes the stars disappear from the mode line,
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
89 it means that the buffer contents are the same as they were when the
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
90 file was last read in or saved. If you do not remember whether you
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
91 changed the buffer deliberately, type @kbd{C-/} once. When you see
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
92 the last change you made undone, you will see whether it was an
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
93 intentional change. If it was an accident, leave it undone. If it
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
94 was deliberate, redo the change as described above.
84240
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
95
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
96 @cindex selective undo
93353
227e854da153 (Undo): Standardize choice of undo key sequence.
Chong Yidong <cyd@stupidchicken.com>
parents: 87903
diff changeset
97 @kindex C-u C-/
227e854da153 (Undo): Standardize choice of undo key sequence.
Chong Yidong <cyd@stupidchicken.com>
parents: 87903
diff changeset
98 When there is an active region, any use of @code{undo} performs
98300
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
99 @dfn{selective undo}: it undoes the most recent change within the
93353
227e854da153 (Undo): Standardize choice of undo key sequence.
Chong Yidong <cyd@stupidchicken.com>
parents: 87903
diff changeset
100 region, instead of the entire buffer. However, when Transient Mark
227e854da153 (Undo): Standardize choice of undo key sequence.
Chong Yidong <cyd@stupidchicken.com>
parents: 87903
diff changeset
101 mode is off (@pxref{Persistent Mark}), @kbd{C-/} always operates on
227e854da153 (Undo): Standardize choice of undo key sequence.
Chong Yidong <cyd@stupidchicken.com>
parents: 87903
diff changeset
102 the entire buffer, ignoring the region. In this case, you can perform
227e854da153 (Undo): Standardize choice of undo key sequence.
Chong Yidong <cyd@stupidchicken.com>
parents: 87903
diff changeset
103 selective undo by supplying a prefix argument to the @code{undo}
98300
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
104 command: @kbd{C-u C-/}. To undo further changes in the same region,
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
105 repeat the @code{undo} command (no prefix argument is needed).
84240
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
106
98300
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
107 Some specialized buffers do not make undo records. Buffers whose
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
108 names start with spaces never do; these buffers are used internally by
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
109 Emacs to hold text that users don't normally look at or edit.
84240
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
110
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
111 @vindex undo-limit
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
112 @vindex undo-strong-limit
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
113 @vindex undo-outer-limit
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
114 @cindex undo limit
98300
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
115 When the undo records for a buffer becomes too large, Emacs discards
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
116 the oldest undo records from time to time (during @dfn{garbage
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
117 collection}). You can specify how much undo records to keep by
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
118 setting the variables @code{undo-limit}, @code{undo-strong-limit}, and
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
119 @code{undo-outer-limit}. Their values are expressed in bytes.
84240
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
120
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
121 The variable @code{undo-limit} sets a soft limit: Emacs keeps undo
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
122 data for enough commands to reach this size, and perhaps exceed it,
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
123 but does not keep data for any earlier commands beyond that. Its
101585
468788460778 (Undo): Update undo limit values.
Chong Yidong <cyd@stupidchicken.com>
parents: 100974
diff changeset
124 default value is 80000. The variable @code{undo-strong-limit} sets a
98300
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
125 stricter limit: any previous command (though not the most recent one)
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
126 that pushes the size past this amount is forgotten. The default value
101585
468788460778 (Undo): Update undo limit values.
Chong Yidong <cyd@stupidchicken.com>
parents: 100974
diff changeset
127 of @code{undo-strong-limit} is 120000.
84240
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
128
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
129 Regardless of the values of those variables, the most recent change
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
130 is never discarded unless it gets bigger than @code{undo-outer-limit}
101585
468788460778 (Undo): Update undo limit values.
Chong Yidong <cyd@stupidchicken.com>
parents: 100974
diff changeset
131 (normally 12,000,000). At that point, Emacs discards the undo data and
84240
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
132 warns you about it. This is the only situation in which you cannot
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
133 undo the last command. If this happens, you can increase the value of
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
134 @code{undo-outer-limit} to make it even less likely to happen in the
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
135 future. But if you didn't expect the command to create such large
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
136 undo data, then it is probably a bug and you should report it.
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
137 @xref{Bugs,, Reporting Bugs}.
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
138
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
139 @node Transpose
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
140 @section Transposing Text
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
141
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
142 @table @kbd
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
143 @item C-t
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
144 Transpose two characters (@code{transpose-chars}).
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
145 @item M-t
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
146 Transpose two words (@code{transpose-words}).
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
147 @item C-M-t
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
148 Transpose two balanced expressions (@code{transpose-sexps}).
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
149 @item C-x C-t
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
150 Transpose two lines (@code{transpose-lines}).
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
151 @end table
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
152
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
153 @kindex C-t
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
154 @findex transpose-chars
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
155 The common error of transposing two characters can be fixed, when they
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
156 are adjacent, with the @kbd{C-t} command (@code{transpose-chars}). Normally,
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
157 @kbd{C-t} transposes the two characters on either side of point. When
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
158 given at the end of a line, rather than transposing the last character of
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
159 the line with the newline, which would be useless, @kbd{C-t} transposes the
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
160 last two characters on the line. So, if you catch your transposition error
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
161 right away, you can fix it with just a @kbd{C-t}. If you don't catch it so
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
162 fast, you must move the cursor back between the two transposed
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
163 characters before you type @kbd{C-t}. If you transposed a space with
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
164 the last character of the word before it, the word motion commands are
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
165 a good way of getting there. Otherwise, a reverse search (@kbd{C-r})
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
166 is often the best way. @xref{Search}.
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
167
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
168 @kindex C-x C-t
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
169 @findex transpose-lines
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
170 @kindex M-t
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
171 @findex transpose-words
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
172 @c Don't index C-M-t and transpose-sexps here, they are indexed in
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
173 @c programs.texi, in the "List Commands" node.
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
174 @c @kindex C-M-t
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
175 @c @findex transpose-sexps
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
176 @kbd{M-t} transposes the word before point with the word after point
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
177 (@code{transpose-words}). It moves point forward over a word,
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
178 dragging the word preceding or containing point forward as well. The
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
179 punctuation characters between the words do not move. For example,
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
180 @w{@samp{FOO, BAR}} transposes into @w{@samp{BAR, FOO}} rather than
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
181 @samp{@w{BAR FOO,}}.
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
182
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
183 @kbd{C-M-t} (@code{transpose-sexps}) is a similar command for
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
184 transposing two expressions (@pxref{Expressions}), and @kbd{C-x C-t}
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
185 (@code{transpose-lines}) exchanges lines. They work like @kbd{M-t}
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
186 except as regards what units of text they transpose.
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
187
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
188 A numeric argument to a transpose command serves as a repeat count: it
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
189 tells the transpose command to move the character (word, expression, line)
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
190 before or containing point across several other characters (words,
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
191 expressions, lines). For example, @kbd{C-u 3 C-t} moves the character before
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
192 point forward across three other characters. It would change
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
193 @samp{f@point{}oobar} into @samp{oobf@point{}ar}. This is equivalent to
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
194 repeating @kbd{C-t} three times. @kbd{C-u - 4 M-t} moves the word
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
195 before point backward across four words. @kbd{C-u - C-M-t} would cancel
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
196 the effect of plain @kbd{C-M-t}.@refill
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
197
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
198 A numeric argument of zero is assigned a special meaning (because
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
199 otherwise a command with a repeat count of zero would do nothing): to
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
200 transpose the character (word, expression, line) ending after point
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
201 with the one ending after the mark.
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
202
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
203 @node Fixing Case
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
204 @section Case Conversion
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
205
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
206 @table @kbd
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
207 @item M-- M-l
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
208 Convert last word to lower case. Note @kbd{Meta--} is Meta-minus.
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
209 @item M-- M-u
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
210 Convert last word to all upper case.
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
211 @item M-- M-c
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
212 Convert last word to lower case with capital initial.
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
213 @end table
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
214
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
215 @kindex M-@t{-} M-l
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
216 @kindex M-@t{-} M-u
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
217 @kindex M-@t{-} M-c
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
218 A very common error is to type words in the wrong case. Because of this,
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
219 the word case-conversion commands @kbd{M-l}, @kbd{M-u} and @kbd{M-c} have a
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
220 special feature when used with a negative argument: they do not move the
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
221 cursor. As soon as you see you have mistyped the last word, you can simply
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
222 case-convert it and go on typing. @xref{Case}.@refill
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
223
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
224 @node Spelling
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
225 @section Checking and Correcting Spelling
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
226 @cindex spelling, checking and correcting
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
227 @cindex checking spelling
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
228 @cindex correcting spelling
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
229
98300
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
230 This section describes the commands to check the spelling of a
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
231 single word or of a portion of a buffer. These commands only work if
100564
540caeb6e181 * fixit.texi: Mention hunspell
Agustin Martin <agustin.martin@hispalinux.es>
parents: 98300
diff changeset
232 the spelling checker program Aspell, Ispell or Hunspell is installed.
540caeb6e181 * fixit.texi: Mention hunspell
Agustin Martin <agustin.martin@hispalinux.es>
parents: 98300
diff changeset
233 Aspell, Ispell or Hunspell are not part of Emacs, but one or the other
540caeb6e181 * fixit.texi: Mention hunspell
Agustin Martin <agustin.martin@hispalinux.es>
parents: 98300
diff changeset
234 is usually installed in GNU/Linux and other free operating systems.
84240
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
235 @ifnottex
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
236 @xref{Top, Aspell,, aspell, The Aspell Manual}.
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
237 @end ifnottex
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
238
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
239 @table @kbd
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
240 @item M-$
98300
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
241 Check and correct spelling of the active region or the word at point
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
242 (@code{ispell-word}).
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
243 @item M-x ispell
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
244 Check and correct spelling in the active region or the entire buffer.
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
245 @item M-x ispell-buffer
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
246 Check and correct spelling in the buffer.
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
247 @item M-x ispell-region
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
248 Check and correct spelling in the region.
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
249 @item M-x ispell-message
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
250 Check and correct spelling in a draft mail message, excluding cited
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
251 material.
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
252 @item M-x ispell-change-dictionary @key{RET} @var{dict} @key{RET}
100564
540caeb6e181 * fixit.texi: Mention hunspell
Agustin Martin <agustin.martin@hispalinux.es>
parents: 98300
diff changeset
253 Restart the Aspell/Ispell/Hunspell process, using @var{dict} as the dictionary.
98300
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
254 @item M-x ispell-kill-ispell
100564
540caeb6e181 * fixit.texi: Mention hunspell
Agustin Martin <agustin.martin@hispalinux.es>
parents: 98300
diff changeset
255 Kill the Aspell/Ispell/Hunspell subprocess.
84240
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
256 @item M-@key{TAB}
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
257 @itemx @key{ESC} @key{TAB}
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
258 Complete the word before point based on the spelling dictionary
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
259 (@code{ispell-complete-word}).
98300
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
260 @item M-x flyspell-mode
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
261 Enable Flyspell mode, which highlights all misspelled words.
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
262 @item M-x flyspell-prog-mode
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
263 Enable Flyspell mode for comments and strings only.
84240
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
264 @end table
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
265
98300
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
266 @kindex M-$
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
267 @findex ispell-word
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
268 To check the spelling of the word around or before point, and
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
269 optionally correct it as well, type @kbd{M-$} (@code{ispell-word}).
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
270 If a region is active, @kbd{M-$} checks the spelling of all words
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
271 within the region. @xref{Mark}. (When Transient Mark mode is off,
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
272 @kbd{M-$} always acts on the word around or before point, ignoring the
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
273 region. @xref{Persistent Mark}.)
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
274
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
275 @findex ispell
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
276 @findex ispell-buffer
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
277 @findex ispell-region
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
278 @cindex spell-checking the active region
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
279 Similarly, the command @kbd{M-x ispell} performs spell-checking in
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
280 the region if one is active, or in the entire buffer otherwise. The
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
281 commands @kbd{M-x ispell-buffer} and @kbd{M-x ispell-region}
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
282 explicitly perform spell-checking on the entire buffer or the region
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
283 respectively. To check spelling in an email message you are writing,
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
284 use @kbd{M-x ispell-message}; that command checks the whole buffer,
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
285 except for material that is indented or appears to be cited from other
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
286 messages. @xref{Sending Mail}.
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
287
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
288 When one of these commands encounters what appears to be an
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
289 incorrect word, it asks you what to do. It usually displays a list of
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
290 numbered ``near-misses''---words that are close to the incorrect word.
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
291 Then you must type a single-character response. Here are the valid
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
292 responses:
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
293
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
294 @table @kbd
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
295 @item @var{digit}
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
296 Replace the word, just this time, with one of the displayed
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
297 near-misses. Each near-miss is listed with a digit; type that digit
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
298 to select it.
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
299
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
300 @item @key{SPC}
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
301 Skip this word---continue to consider it incorrect, but don't change it
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
302 here.
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
303
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
304 @item r @var{new} @key{RET}
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
305 Replace the word, just this time, with @var{new}. (The replacement
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
306 string will be rescanned for more spelling errors.)
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
307
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
308 @item R @var{new} @key{RET}
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
309 Replace the word with @var{new}, and do a @code{query-replace} so you
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
310 can replace it elsewhere in the buffer if you wish. (The replacements
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
311 will be rescanned for more spelling errors.)
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
312
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
313 @item a
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
314 Accept the incorrect word---treat it as correct, but only in this
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
315 editing session.
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
316
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
317 @item A
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
318 Accept the incorrect word---treat it as correct, but only in this
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
319 editing session and for this buffer.
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
320
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
321 @item i
100564
540caeb6e181 * fixit.texi: Mention hunspell
Agustin Martin <agustin.martin@hispalinux.es>
parents: 98300
diff changeset
322 Insert this word in your private dictionary file so that Aspell or Ispell
540caeb6e181 * fixit.texi: Mention hunspell
Agustin Martin <agustin.martin@hispalinux.es>
parents: 98300
diff changeset
323 or Hunspell will consider it correct from now on, even in future sessions.
98300
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
324
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
325 @item m
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
326 Like @kbd{i}, but you can also specify dictionary completion
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
327 information.
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
328
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
329 @item u
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
330 Insert the lower-case version of this word in your private dic@-tion@-ary
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
331 file.
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
332
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
333 @item l @var{word} @key{RET}
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
334 Look in the dictionary for words that match @var{word}. These words
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
335 become the new list of ``near-misses''; you can select one of them as
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
336 the replacement by typing a digit. You can use @samp{*} in @var{word} as a
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
337 wildcard.
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
338
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
339 @item C-g
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
340 @itemx X
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
341 Quit interactive spell checking, leaving point at the word that was
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
342 being checked. You can restart checking again afterward with @kbd{C-u
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
343 M-$}.
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
344
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
345 @item x
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
346 Quit interactive spell checking and move point back to where it was
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
347 when you started spell checking.
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
348
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
349 @item q
100564
540caeb6e181 * fixit.texi: Mention hunspell
Agustin Martin <agustin.martin@hispalinux.es>
parents: 98300
diff changeset
350 Quit interactive spell checking and kill the Aspell/Ispell/Hunspell
540caeb6e181 * fixit.texi: Mention hunspell
Agustin Martin <agustin.martin@hispalinux.es>
parents: 98300
diff changeset
351 subprocess.
98300
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
352
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
353 @item ?
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
354 Show the list of options.
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
355 @end table
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
356
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
357 @findex ispell-complete-word
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
358 In Text mode and related modes, the command @kbd{M-@key{TAB}}
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
359 (@code{ispell-complete-word}) shows a list of completions based on
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
360 spelling correction. Insert the beginning of a word, and then type
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
361 @kbd{M-@key{TAB}}; the command displays a completion list window. (If
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
362 your window manager intercepts @kbd{M-@key{TAB}}, type @kbd{@key{ESC}
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
363 @key{TAB}} or @kbd{C-M-i}.) To choose one of the completions listed,
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
364 click @kbd{Mouse-2} or @kbd{Mouse-1} fast on it, or move the cursor
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
365 there in the completions window and type @key{RET}. @xref{Text Mode}.
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
366
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
367 @cindex @code{ispell} program
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
368 @findex ispell-kill-ispell
100564
540caeb6e181 * fixit.texi: Mention hunspell
Agustin Martin <agustin.martin@hispalinux.es>
parents: 98300
diff changeset
369 Once started, the Aspell or Ispell or Hunspell subprocess continues
540caeb6e181 * fixit.texi: Mention hunspell
Agustin Martin <agustin.martin@hispalinux.es>
parents: 98300
diff changeset
370 to run, waiting for something to do, so that subsequent spell checking
98300
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
371 commands complete more quickly. If you want to get rid of the
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
372 process, use @kbd{M-x ispell-kill-ispell}. This is not usually
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
373 necessary, since the process uses no time except when you do spelling
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
374 correction.
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
375
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
376 @vindex ispell-dictionary
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
377 @vindex ispell-complete-word-dict
100564
540caeb6e181 * fixit.texi: Mention hunspell
Agustin Martin <agustin.martin@hispalinux.es>
parents: 98300
diff changeset
378 Ispell, Aspell and Hunspell use two dictionaries together for spell checking:
98300
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
379 the standard dictionary and your private dictionary. The variable
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
380 @code{ispell-dictionary} specifies the file name to use for the
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
381 standard dictionary; a value of @code{nil} selects the default
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
382 dictionary. The command @kbd{M-x ispell-change-dictionary} sets this
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
383 variable and then restarts the subprocess, so that it will use a
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
384 different standard dictionary. A separate dictionary is used for word
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
385 completion. The variable @code{ispell-complete-word-dict} specifies
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
386 the file name of this dictionary. The completion dictionary must be
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
387 different because it cannot use root and affix information. For some
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
388 languages, there is a spell checking dictionary but no word completion
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
389 dictionary.
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
390
84240
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
391 @cindex Flyspell mode
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
392 @findex flyspell-mode
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
393 Flyspell mode is a fully-automatic way to check spelling as you edit
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
394 in Emacs. It operates by checking words as you change or insert them.
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
395 When it finds a word that it does not recognize, it highlights that
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
396 word. This does not interfere with your editing, but when you see the
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
397 highlighted word, you can move to it and fix it. Type @kbd{M-x
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
398 flyspell-mode} to enable or disable this mode in the current buffer.
102419
2fd3e5c68dab (Spelling): Add turn-on-flyspell. (Bug#2517)
Reiner Steib <Reiner.Steib@gmx.de>
parents: 101585
diff changeset
399 @findex turn-on-flyspell
2fd3e5c68dab (Spelling): Add turn-on-flyspell. (Bug#2517)
Reiner Steib <Reiner.Steib@gmx.de>
parents: 101585
diff changeset
400 To enable @code{flyspell-mode} in all text mode buffers, add
2fd3e5c68dab (Spelling): Add turn-on-flyspell. (Bug#2517)
Reiner Steib <Reiner.Steib@gmx.de>
parents: 101585
diff changeset
401 @code{turn-on-flyspell} to @code{text-mode-hook}.
2fd3e5c68dab (Spelling): Add turn-on-flyspell. (Bug#2517)
Reiner Steib <Reiner.Steib@gmx.de>
parents: 101585
diff changeset
402
84240
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
403
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
404 When Flyspell mode highlights a word as misspelled, you can click on
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
405 it with @kbd{Mouse-2} to display a menu of possible corrections and
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
406 actions. You can also correct the word by editing it manually in any
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
407 way you like.
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
408
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
409 @findex flyspell-prog-mode
98300
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
410 Flyspell Prog mode works just like ordinary Flyspell mode, except
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
411 that it only checks words in comments and string constants. This
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
412 feature is useful for editing programs. Type @kbd{M-x
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
413 flyspell-prog-mode} to enable or disable this mode in the current
551ea2c3daca (Fixit): Favor C-/ keybinding for undo throughout. Link to Erasing
Chong Yidong <cyd@stupidchicken.com>
parents: 93353
diff changeset
414 buffer.
84240
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
415
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
416 @ignore
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
417 arch-tag: 3359a443-96ed-448f-9f05-c8111ba8eac0
b0cb05ad0b94 Move here from ../../man
Glenn Morris <rgm@gnu.org>
parents:
diff changeset
418 @end ignore