From: Stefan Monnier Date: Sun, 15 Jan 2006 05:47:44 +0000 (+0000) Subject: (flyspell-kill-ispell-hook): Fix braino. X-Git-Tag: emacs-pretest-22.0.90~4746 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=949855fe64e0438f1dcbac5286e3e952b9fc1b8d;p=emacs.git (flyspell-kill-ispell-hook): Fix braino. --- diff --git a/lisp/textmodes/flyspell.el b/lisp/textmodes/flyspell.el index 665d6c59fd7..a6e3734b42c 100644 --- a/lisp/textmodes/flyspell.el +++ b/lisp/textmodes/flyspell.el @@ -528,7 +528,8 @@ in your .emacs file. (defun flyspell-kill-ispell-hook () (setq flyspell-last-buffer nil) (dolist (buf (buffer-list)) - (kill-local-variable 'flyspell-word-cache-word))) + (with-current-buffer buf + (kill-local-variable 'flyspell-word-cache-word)))) ;;*---------------------------------------------------------------------*/ ;;* flyspell-mode-on ... */