changeset 23233:b31869394e03

(flyspell-mode-on): fix kill-buffer-hook to make killing of ispell process work even if kill-all-local-variables has been run.
author Karl Heuer <kwzh@gnu.org>
date Thu, 10 Sep 1998 16:05:59 +0000
parents 97332957a969
children b0e173658e2e
files lisp/textmodes/flyspell.el
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/textmodes/flyspell.el	Thu Sep 10 16:03:07 1998 +0000
+++ b/lisp/textmodes/flyspell.el	Thu Sep 10 16:05:59 1998 +0000
@@ -344,8 +344,8 @@
   ;; 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))