Variable: flyspell-duplicate-distance
flyspell-duplicate-distance is a customizable variable defined in
flyspell.el.gz.
Value
400000
Documentation
The maximum distance for finding duplicates of unrecognized words.
This applies to the feature that when a word is not found in the dictionary,
if the same spelling occurs elsewhere in the buffer,
Flyspell uses a different face (flyspell-duplicate) to highlight it.
This variable specifies how far to search to find such a duplicate.
-1 means no limit (search the whole buffer).
0 means do not search for duplicate unrecognized spellings.
This variable was added, or its default value changed, in Emacs 24.5.
Source Code
;; Defined in /usr/src/emacs/lisp/textmodes/flyspell.el.gz
(defcustom flyspell-duplicate-distance 400000
"The maximum distance for finding duplicates of unrecognized words.
This applies to the feature that when a word is not found in the dictionary,
if the same spelling occurs elsewhere in the buffer,
Flyspell uses a different face (`flyspell-duplicate') to highlight it.
This variable specifies how far to search to find such a duplicate.
-1 means no limit (search the whole buffer).
0 means do not search for duplicate unrecognized spellings."
:version "24.5" ; -1 -> 400000
:type '(choice (const :tag "no limit" -1)
number))