Function: flyspell-check-changes
flyspell-check-changes is a byte-compiled function defined in
flyspell.el.gz.
Signature
(flyspell-check-changes)
Documentation
Function to spell-check only edited words when point moves off the word.
This is installed by flyspell as post-command-hook when the user
option flyspell-check-changes(var)/flyspell-check-changes(fun) is non-nil. It spell-checks a word
on moving point from the word only if the word was edited before the move.
Probably introduced at or before Emacs version 30.1.
Source Code
;; Defined in /usr/src/emacs/lisp/textmodes/flyspell.el.gz
(defun flyspell-check-changes ()
"Function to spell-check only edited words when point moves off the word.
This is installed by flyspell as `post-command-hook' when the user
option `flyspell-check-changes' is non-nil. It spell-checks a word
on moving point from the word only if the word was edited before the move."
(when flyspell-mode
(with-local-quit
(when (consp flyspell-changes)
(let ((start (car (car flyspell-changes)))
(stop (cdr (car flyspell-changes)))
(word (save-excursion (flyspell-get-word))))
(unless (and word (<= (nth 1 word) start) (>= (nth 2 word) stop))
(save-excursion
(goto-char start)
(flyspell-word))
(setq flyspell-changes nil)))))))