aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarl Heuer1998-09-23 22:22:45 +0000
committerKarl Heuer1998-09-23 22:22:45 +0000
commit73cc7f2aa0e3408ac53a5f92b72d7c76197247b1 (patch)
tree4dc4cc4c0bc01ae900cddbdbe2da66c1ffc636ab
parentc82b4a75210db3affae03f2382a349863abd5bf4 (diff)
downloademacs-73cc7f2aa0e3408ac53a5f92b72d7c76197247b1.tar.gz
emacs-73cc7f2aa0e3408ac53a5f92b72d7c76197247b1.zip
(check-ispell-version): Ensure same buffer is current
when let-binding of case-fold-search ends.
-rw-r--r--lisp/textmodes/ispell.el10
1 files changed, 5 insertions, 5 deletions
diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el
index ed4dee74c61..09b3a4d4028 100644
--- a/lisp/textmodes/ispell.el
+++ b/lisp/textmodes/ispell.el
@@ -1709,11 +1709,11 @@ scrolling the current window. Leave the new window selected."
1709 ;; all versions, since versions earlier than 3.0.09 didn't identify 1709 ;; all versions, since versions earlier than 3.0.09 didn't identify
1710 ;; themselves on startup. 1710 ;; themselves on startup.
1711 (interactive "p") 1711 (interactive "p")
1712 (save-excursion 1712 (let (case-fold-search status
1713 (let (case-fold-search status 1713 ;; avoid bugs when syntax of `.' changes in various default modes
1714 ;; avoid bugs when syntax of `.' changes in various default modes 1714 (default-major-mode 'fundamental-mode)
1715 (default-major-mode 'fundamental-mode) 1715 (result t))
1716 (result t)) 1716 (save-excursion
1717 (set-buffer (get-buffer-create " *ispell-tmp*")) 1717 (set-buffer (get-buffer-create " *ispell-tmp*"))
1718 (setq case-fold-search t) 1718 (setq case-fold-search t)
1719 (erase-buffer) 1719 (erase-buffer)