]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix previous patch to ispell.el
authorReuben Thomas <rrt@sc3d.org>
Mon, 2 Nov 2020 22:10:56 +0000 (22:10 +0000)
committerReuben Thomas <rrt@sc3d.org>
Mon, 2 Nov 2020 22:11:50 +0000 (22:11 +0000)
* lisp/textmodes/ispell.el (ispell--call-enchant-lsmod):
with-current-buffer and with-output-to-string need to be the other
way around.

lisp/textmodes/ispell.el

index da3c3f4d6faf6542e656b84dc9802a249aa507b9..da518b107490973c3184e90a15656d49ab8a85d3 100644 (file)
@@ -1215,8 +1215,8 @@ Internal use.")
 
 (defun ispell--call-enchant-lsmod (&rest args)
   "Call enchant-lsmod with ARGS and return the output as string."
-  (with-current-buffer standard-output
-    (with-output-to-string
+  (with-output-to-string
+    (with-current-buffer standard-output
       (apply #'ispell-call-process
              (replace-regexp-in-string "enchant\\(-[0-9]\\)?\\'"
                                        "enchant-lsmod\\1"