Variable: flyspell-incorrect-hook

flyspell-incorrect-hook is a customizable variable defined in flyspell.el.gz.

Value

nil

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.

This variable was added, or its default value changed, in Emacs 21.1.

Source Code

;; Defined in /usr/src/emacs/lisp/textmodes/flyspell.el.gz
(defcustom flyspell-incorrect-hook nil
  "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."
  :version "21.1"
  :type 'hook)