From 949855fe64e0438f1dcbac5286e3e952b9fc1b8d Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Sun, 15 Jan 2006 05:47:44 +0000 Subject: [PATCH] (flyspell-kill-ispell-hook): Fix braino. --- lisp/textmodes/flyspell.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 ... */ -- 2.39.2