]> git.eshelyaron.com Git - emacs.git/commitdiff
(flyspell-mode-on): fix kill-buffer-hook
authorKarl Heuer <kwzh@gnu.org>
Thu, 10 Sep 1998 16:05:59 +0000 (16:05 +0000)
committerKarl Heuer <kwzh@gnu.org>
Thu, 10 Sep 1998 16:05:59 +0000 (16:05 +0000)
to make killing of ispell process work even if
kill-all-local-variables has been run.

lisp/textmodes/flyspell.el

index 43ddf8bea739b23b8ef00d3766a51acfcdf2ebbd..cae3fb76c985468aca802e9ee73e4f289a9ff1fb 100644 (file)
@@ -344,8 +344,8 @@ flyspell-buffer checks the whole buffer."
   ;; improvement).
   (add-hook 'kill-buffer-hook
            '(lambda ()
-              (if flyspell-mode
-                  (flyspell-mode-off))))
+              (if (and flyspell-multi-language-p ispell-process)
+                  (ispell-kill-ispell t))))
   ;; we end with the flyspell hooks
   (run-hooks 'flyspell-mode-hook))