@c This is part of the Emacs manual.
@c Copyright (C) 1985, 86, 87, 93, 94, 95, 1997 Free Software Foundation, Inc.
@c See file emacs.texi for copying conditions.
-@node Fixit, Files, Search, Top
+@node Fixit, Keyboard Macros, Search, Top
@chapter Commands for Fixing Typos
@cindex typos, fixing
@cindex mistakes, correcting
@table @kbd
@item M-x flyspell-mode
Enable Flyspell mode, which highlights all misspelled words.
+@item M-x flyspell-progmode
+Enable Flyspell mode for comments and strings only.
@item M-$
Check and correct spelling of the word at point (@code{ispell-word}).
@item M-@key{TAB}
@item M-x ispell-region
Check and correct spelling of each word in the region.
@item M-x ispell-message
-Check and correct spelling of each word in a draft mail message,
+Check and correct spelling of each word in a draft mail message,
excluding cited material.
@item M-x ispell-change-dictionary @key{RET} @var{dict} @key{RET}
Restart the Ispell process, using @var{dict} as the dictionary.
actions. You can also correct the word by editing it manually in any
way you like.
+@findex flyspell-prog-mode
+Flyspell Prog mode works just like ordinary Flyspell mode, except that
+it only checks words in comments and string constants. This feature
+is useful for editing programs. Type @kbd{M-x flyspell-prog-mode} to
+enable or disable this mode in the current buffer.
+
The other Emacs spell-checking features check or look up words when
you give an explicit command to do so. Checking all or part of the
buffer is useful when you have text that was written outside of this
process uses no time except when you do spelling correction.
@vindex ispell-dictionary
- Ispell uses two dictionaries: the standard dictionary and your private
-dictionary. The variable @code{ispell-dictionary} specifies the file
-name of the standard dictionary to use. A value of @code{nil} says to
-use the default dictionary. The command @kbd{M-x
-ispell-change-dictionary} sets this variable and then restarts the
-Ispell subprocess, so that it will use a different dictionary.
+ Ispell uses two dictionaries together for spell checking: the
+standard dictionary and your private dictionary. The variable
+@code{ispell-dictionary} specifies the file name to use for the
+standard dictionary; a value of @code{nil} selects the default
+dictionary. The command @kbd{M-x ispell-change-dictionary} sets this
+variable and then restarts the Ispell subprocess, so that it will use
+a different standard dictionary.
@vindex ispell-complete-word-dict
- The dictionary used by @code{ispell-complete-word} can be
-customized separately by setting the value of the variable
-@code{ispell-complete-word-dict}.
+ Ispell uses a separate dictionary for word completion. The variable
+@code{ispell-complete-word-dict} specifies the file name of this
+dictionary. The completion dictionary must be different because it
+cannot use employ root and affix information. For some languages
+there is a spell checking dictionary but no word completion
+dictionary.
+
+@ignore
+ arch-tag: 3359a443-96ed-448f-9f05-c8111ba8eac0
+@end ignore