From: Eli Zaretskii Date: Mon, 26 Nov 2018 17:31:24 +0000 (+0200) Subject: Support Hunspell 1.7.0 in ispell.el X-Git-Tag: emacs-26.1.91~83 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=2925ce5;p=emacs.git Support Hunspell 1.7.0 in ispell.el * lisp/textmodes/ispell.el (ispell-find-hunspell-dictionaries): Invoke Hunspell with an additional command-line argument, to work around a misfeature in Hunspell 1.7.0 that prevents it from reporting the loaded dictionary. (Bug#33493) --- diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el index e77bc7e1128..9789968b15c 100644 --- a/lisp/textmodes/ispell.el +++ b/lisp/textmodes/ispell.el @@ -1113,7 +1113,12 @@ dictionary from that list was found." null-device t nil - "-D") + ;; Hunspell 1.7.0 (and later?) won't + ;; show LOADED DICTIONARY unless + ;; there's at least one file argument + ;; on the command line. So we feed + ;; it with the null device. + "-D" null-device) (buffer-string)) "[\n\r]+" t))