]> git.eshelyaron.com Git - emacs.git/commitdiff
(check-ispell-version): Ensure same buffer is current
authorKarl Heuer <kwzh@gnu.org>
Wed, 23 Sep 1998 22:22:45 +0000 (22:22 +0000)
committerKarl Heuer <kwzh@gnu.org>
Wed, 23 Sep 1998 22:22:45 +0000 (22:22 +0000)
when let-binding of case-fold-search ends.

lisp/textmodes/ispell.el

index ed4dee74c612238d8878772a817cb045e1298602..09b3a4d40282498f28aa92a2c5148a97dab1d761 100644 (file)
@@ -1709,11 +1709,11 @@ scrolling the current window.  Leave the new window selected."
   ;; all versions, since versions earlier than 3.0.09 didn't identify
   ;; themselves on startup.
   (interactive "p")
-  (save-excursion
-    (let (case-fold-search status
-         ;; avoid bugs when syntax of `.' changes in various default modes
-         (default-major-mode 'fundamental-mode)
-         (result t))
+  (let (case-fold-search status
+       ;; avoid bugs when syntax of `.' changes in various default modes
+       (default-major-mode 'fundamental-mode)
+       (result t))
+    (save-excursion
       (set-buffer (get-buffer-create " *ispell-tmp*"))
       (setq case-fold-search t)
       (erase-buffer)