Up: Spelling Correction   [Contents][Index]


4.5.1 Auto Spell Mode

Auto Spell Mode checks the spelling of each word as it is typed. When an unknown word is typed the user is notified and allowed to take a number of actions to correct the word.

Command: Auto Spell Mode

This command turns Spell mode on or off in the current buffer.

command: Auto Check Word Spelling stuff (bound to word delimiters in Spell mode)]
Hemlock Variable: Check Word Spelling Beep (initial value t)
Hemlock Variable: Correct Unique Spelling Immediately (initial value t)

This command checks the spelling of the word before the point, doing nothing if the word is in the dictionary. If the word is misspelled but has a known correction previously supplied by the user, then this command corrects the spelling. If there is no correction, then this displays a message in the echo area indicating the word is unknown. An unknown word detected by this command may be corrected using the Correct Last Misspelled Word command. This command executes in addition to others bound to the same key; for example, if Fill mode is on, any of its commands bound to the same keys as this command also run.

If Check Word Spelling Beep is true, then this command will beep when an unknown word is found. If Correct Unique Spelling Immediately is true, then this command will immediately attempt to correct any unknown word, automatically making the correction if there is only one possible.

Command: Undo Last Spelling Correction (bound to C-x a)
Hemlock Variable: Spelling Un-Correct Prompt for Insert (initial value nil)

Undo Last Spelling Correction undoes the last incremental spelling correction. The "correction" is replaced with the old word, and the old word is inserted in the dictionary. Any automatic replacement for the old word is eliminated. When Spelling Un-Correct Prompt for Insert is true, the user is asked to confirm the insertion into the dictionary.

Command: Correct Last Misspelled Word (bound to M-:)

This command places the cursor after the last misspelled word detected by the Auto Check Word Spelling command and then prompts for a key-event on which it dispatches:

c

Display possible corrections in a pop-up window, and prompt for the one to make according to the corresponding displayed digit or letter.

any digit

Similar to c digit, but immediately makes the correction, dispensing with display of the possible corrections. This is shorter, but only works when there are less than ten corrections.

i

Insert the word in the dictionary.

r

Replace the word with another.

Backspace, Delete, n

Skip this word and try again on the next most recently misspelled word.

C-r

Enter a recursive edit at the word, exiting the command when the recursive edit is exited.

Escape

Exit and forget about this word.

As in Correct Buffer Spelling, the c and r commands add the correction to the known corrections.


Up: Spelling Correction   [Contents][Index]