From: Agustín Martín Date: Fri, 25 Jun 2010 08:19:11 +0000 (+0200) Subject: Make sure `flyspell-word' checks word after (flyspell-check-previous-highlighted... X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~438^2~51^2~119 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c11a5a9cab09a5dba6281f01e4eb4eb1e6a9e936;p=emacs.git Make sure `flyspell-word' checks word after (flyspell-check-previous-highlighted-word) run. --- diff --git a/lisp/textmodes/flyspell.el b/lisp/textmodes/flyspell.el index e5727f41e93..e8a92b101ef 100644 --- a/lisp/textmodes/flyspell.el +++ b/lisp/textmodes/flyspell.el @@ -1817,7 +1817,9 @@ misspelled words backwards." (throw 'exit t))))))) (save-excursion (goto-char pos) - (ispell-word)) + (ispell-word) + (setq flyspell-word-cache-word nil) ;; Force flyspell-word re-check + (flyspell-word)) (error "No word to correct before point")))) ;;*---------------------------------------------------------------------*/