diff options
| -rw-r--r-- | lisp/textmodes/flyspell.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/textmodes/flyspell.el b/lisp/textmodes/flyspell.el index 43ddf8bea73..cae3fb76c98 100644 --- a/lisp/textmodes/flyspell.el +++ b/lisp/textmodes/flyspell.el | |||
| @@ -344,8 +344,8 @@ flyspell-buffer checks the whole buffer." | |||
| 344 | ;; improvement). | 344 | ;; improvement). |
| 345 | (add-hook 'kill-buffer-hook | 345 | (add-hook 'kill-buffer-hook |
| 346 | '(lambda () | 346 | '(lambda () |
| 347 | (if flyspell-mode | 347 | (if (and flyspell-multi-language-p ispell-process) |
| 348 | (flyspell-mode-off)))) | 348 | (ispell-kill-ispell t)))) |
| 349 | ;; we end with the flyspell hooks | 349 | ;; we end with the flyspell hooks |
| 350 | (run-hooks 'flyspell-mode-hook)) | 350 | (run-hooks 'flyspell-mode-hook)) |
| 351 | 351 | ||