mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-20 20:07:36 +00:00
(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:
parent
94d1817dff
commit
b2a577ecba
1 changed files with 2 additions and 2 deletions
|
|
@ -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))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue