]> code.delx.au - gnu-emacs/commitdiff
(flyspell-kill-ispell-hook): Fix braino.
authorStefan Monnier <monnier@iro.umontreal.ca>
Sun, 15 Jan 2006 05:47:44 +0000 (05:47 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Sun, 15 Jan 2006 05:47:44 +0000 (05:47 +0000)
lisp/textmodes/flyspell.el

index 665d6c59fd7eb7a07a19e7ce39e9f5b0da736012..a6e3734b42c19d00242656b550c5026263940a55 100644 (file)
@@ -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 ...                                             */