From 5d772177536dcfed607159802eeadcd22eab1969 Mon Sep 17 00:00:00 2001 From: Reuben Thomas Date: Mon, 2 Nov 2020 21:45:52 +0000 Subject: [PATCH 3/3] Prevent `ispell' being confused by spellchecker output on stderr * lisp/textmodes/ispell.el (ispell-send-string, ispell-lookup-words): Capture only stdout. This avoids warning messages, e.g. from Enchant, from being interpreted as output from the spell-checker process. --- lisp/textmodes/ispell.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el index 49da3d1ed4..8d90cab653 100644 --- a/lisp/textmodes/ispell.el +++ b/lisp/textmodes/ispell.el @@ -1861,7 +1861,7 @@ ispell-send-string (apply 'ispell-call-process-region (point-min) (point-max) ispell-program-name nil - output-buf nil + '(output-buf nil) nil "-a" ;; hunspell -m option means something different (if ispell-really-hunspell "" "-m") @@ -2566,7 +2566,7 @@ ispell-lookup-words (while (search-backward "*" nil t) (insert ".")) (setq word (buffer-string)) (erase-buffer)) - (setq status (apply 'ispell-call-process prog nil t nil + (setq status (apply 'ispell-call-process prog nil '(t nil) nil (nconc (if (and args (> (length args) 0)) (list args) (if look-p nil -- 2.25.1