]> git.eshelyaron.com Git - emacs.git/commitdiff
Make ispell.el ignore warnings from enchant-lsmod (closes #44318)
authorReuben Thomas <rrt@sc3d.org>
Mon, 2 Nov 2020 18:06:11 +0000 (18:06 +0000)
committerReuben Thomas <rrt@sc3d.org>
Mon, 2 Nov 2020 18:17:20 +0000 (18:17 +0000)
* lisp/textmodes/ispell.el (ispell--call-enchant-lsmod): Don’t capture
  stderr. Also remove unnecessary with-current-buffer wrapper.

lisp/textmodes/ispell.el

index 05a4bd058c441c9a6eb70ec59dfaa18880e00f4a..413d8802a161825b3f9d39541ff52e9a2ceac614 100644 (file)
@@ -1216,13 +1216,11 @@ Internal use.")
 (defun ispell--call-enchant-lsmod (&rest args)
   "Call enchant-lsmod with ARGS and return the output as string."
   (with-output-to-string
-    (with-current-buffer
-        standard-output
-      (apply #'ispell-call-process
-             (replace-regexp-in-string "enchant\\(-[0-9]\\)?\\'"
-                                       "enchant-lsmod\\1"
-                                       ispell-program-name)
-             nil t nil args))))
+    (apply #'ispell-call-process
+           (replace-regexp-in-string "enchant\\(-[0-9]\\)?\\'"
+                                     "enchant-lsmod\\1"
+                                     ispell-program-name)
+           nil '(t nil) nil args)))
 
 (defun ispell--get-extra-word-characters (&optional lang)
   "Get the extra word characters for LANG as a character class.