flyspell-incorrect-hook

flyspell-incorrect-hook is a variable defined in `flyspell.el'.
Its value is
nil

  • This variable may be risky if used as a file-local variable.

Documentation:
List of functions to be called when incorrect words are encountered.
Each function is given three arguments. The first two
arguments are the beginning and the end of the incorrect region.
The third is either the symbol `doublon' or the list
of possible corrections as returned by `ispell-parse-output'.

If any of the functions return non-nil, the word is not highlighted as
incorrect.

You can customize this variable.

This variable was introduced, or its default value was changed, in version 21.1 of Emacs.