(flyspell-mode-on): fix kill-buffer-hook

to make killing of ispell process work even if
kill-all-local-variables has been run.
This commit is contained in:
Karl Heuer 1998-09-10 16:05:59 +00:00
parent 94d1817dff
commit b2a577ecba

View 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))