Function: flyspell-auto-correct-previous-hook
flyspell-auto-correct-previous-hook is an interactive and
byte-compiled function defined in flyspell.el.gz.
Signature
(flyspell-auto-correct-previous-hook)
Documentation
Hook to track successive calls to flyspell-auto-correct-previous-word.
Sets flyspell-auto-correct-previous-pos to nil.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/textmodes/flyspell.el.gz
;;*---------------------------------------------------------------------*/
;;* flyspell-auto-correct-previous-hook ... */
;;*---------------------------------------------------------------------*/
(defun flyspell-auto-correct-previous-hook ()
"Hook to track successive calls to `flyspell-auto-correct-previous-word'.
Sets `flyspell-auto-correct-previous-pos' to nil."
(interactive)
(remove-hook 'pre-command-hook (function flyspell-auto-correct-previous-hook) t)
(unless (eq this-command (function flyspell-auto-correct-previous-word))
(setq flyspell-auto-correct-previous-pos nil)))