diff options
| author | Agustín Martín | 2010-06-25 10:19:11 +0200 |
|---|---|---|
| committer | Agustín Martín | 2010-06-25 10:19:11 +0200 |
| commit | c11a5a9cab09a5dba6281f01e4eb4eb1e6a9e936 (patch) | |
| tree | ab6684882d5d25607afdd7ad1769b735e5a38f76 | |
| parent | 71ab16dd9414727b8adcb8290985c1cba19fb6a4 (diff) | |
| download | emacs-c11a5a9cab09a5dba6281f01e4eb4eb1e6a9e936.tar.gz emacs-c11a5a9cab09a5dba6281f01e4eb4eb1e6a9e936.zip | |
Make sure `flyspell-word' checks word after (flyspell-check-previous-highlighted-word) run.
| -rw-r--r-- | lisp/textmodes/flyspell.el | 4 |
1 files changed, 3 insertions, 1 deletions
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." | |||
| 1817 | (throw 'exit t))))))) | 1817 | (throw 'exit t))))))) |
| 1818 | (save-excursion | 1818 | (save-excursion |
| 1819 | (goto-char pos) | 1819 | (goto-char pos) |
| 1820 | (ispell-word)) | 1820 | (ispell-word) |
| 1821 | (setq flyspell-word-cache-word nil) ;; Force flyspell-word re-check | ||
| 1822 | (flyspell-word)) | ||
| 1821 | (error "No word to correct before point")))) | 1823 | (error "No word to correct before point")))) |
| 1822 | 1824 | ||
| 1823 | ;;*---------------------------------------------------------------------*/ | 1825 | ;;*---------------------------------------------------------------------*/ |