summaryrefslogtreecommitdiff
path: root/lisp/textmodes/flyspell.el
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2006-01-15 05:47:44 +0000
committerStefan Monnier <monnier@iro.umontreal.ca>2006-01-15 05:47:44 +0000
commit949855fe64e0438f1dcbac5286e3e952b9fc1b8d (patch)
treeb9e4c09a71a75147ff69e2b3cf631aca6e5dc14f /lisp/textmodes/flyspell.el
parentef0f5f7e622fa2e569228abc40f0f50eb5bb637f (diff)
downloademacs-949855fe64e0438f1dcbac5286e3e952b9fc1b8d.tar.gz
(flyspell-kill-ispell-hook): Fix braino.
Diffstat (limited to 'lisp/textmodes/flyspell.el')
-rw-r--r--lisp/textmodes/flyspell.el3
1 files changed, 2 insertions, 1 deletions
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 ... */