diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el index 656c9fad932..237997d41d7 100644 --- a/lisp/textmodes/ispell.el +++ b/lisp/textmodes/ispell.el @@ -1114,12 +1114,19 @@ dictionary from that list was found." null-device t nil + "-D" + ;; Use -a to prevent Hunspell from + ;; trying to initialize its + ;; curses/termcap UI, which causes it + ;; to crash or fail to start in some + ;; MS-Windows ports. + "-a" ;; 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) + null-device) (buffer-string)) "[\n\r]+" t))