# HG changeset patch # User Stefan Monnier # Date 1137304064 0 # Node ID 979bd3539a58288332c1d2fb40f84023a0e13cd8 # Parent 9b4c8f5efab7aca9b96024aae0037639d46c3441 (flyspell-kill-ispell-hook): Fix braino. diff -r 9b4c8f5efab7 -r 979bd3539a58 lisp/textmodes/flyspell.el --- a/lisp/textmodes/flyspell.el Sun Jan 15 05:46:20 2006 +0000 +++ b/lisp/textmodes/flyspell.el Sun Jan 15 05:47:44 2006 +0000 @@ -528,7 +528,8 @@ (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 ... */