aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/textmodes
diff options
context:
space:
mode:
authorKarl Heuer1998-09-10 16:05:59 +0000
committerKarl Heuer1998-09-10 16:05:59 +0000
commitb2a577ecba1690db0f631f5fcf514685a7be06aa (patch)
treefeb6c55896a5e8b7cfbae94504a7085c55898a03 /lisp/textmodes
parent94d1817dffc53403bf790a7eb55d25a8ec726ea8 (diff)
downloademacs-b2a577ecba1690db0f631f5fcf514685a7be06aa.tar.gz
emacs-b2a577ecba1690db0f631f5fcf514685a7be06aa.zip
(flyspell-mode-on): fix kill-buffer-hook
to make killing of ispell process work even if kill-all-local-variables has been run.
Diffstat (limited to 'lisp/textmodes')
-rw-r--r--lisp/textmodes/flyspell.el4
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