From a2bddd77108c622cd88eb2d0468d9236bf8f33a5 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Mon, 2 Nov 2020 21:47:18 +0200 Subject: [PATCH] Explain last change * lisp/textmodes/ispell.el (ispell--call-enchant-lsmod): Explain the workaround with discarding stderr. (Bug#44318) --- lisp/textmodes/ispell.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el index 413d8802a16..1cd17b11ca8 100644 --- a/lisp/textmodes/ispell.el +++ b/lisp/textmodes/ispell.el @@ -1220,6 +1220,8 @@ Internal use.") (replace-regexp-in-string "enchant\\(-[0-9]\\)?\\'" "enchant-lsmod\\1" ispell-program-name) + ;; We discard stderr here because enchant-lsmod can emit + ;; unrelated warnings that will confuse us. nil '(t nil) nil args))) (defun ispell--get-extra-word-characters (&optional lang) -- 2.39.2