From 55e92de6d5bf43651c687b857cf18773628fe253 Mon Sep 17 00:00:00 2001 From: Reuben Thomas Date: Mon, 2 Nov 2020 18:06:11 +0000 Subject: [PATCH] Make ispell.el ignore warnings from enchant-lsmod (closes #44318) MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit * lisp/textmodes/ispell.el (ispell--call-enchant-lsmod): Don’t capture stderr. Also remove unnecessary with-current-buffer wrapper. --- lisp/textmodes/ispell.el | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el index 05a4bd058c4..413d8802a16 100644 --- a/lisp/textmodes/ispell.el +++ b/lisp/textmodes/ispell.el @@ -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. -- 2.39.2