Fix Hunspell invocation for discovering its dictionaries
* lisp/textmodes/ispell.el (ispell-find-hunspell-dictionaries): Invoke Hunspell with the -a switch, to prevent it from initializing its curses UI. (Bug#34272)
This commit is contained in:
@@ -1114,12 +1114,19 @@ dictionary from that list was found."
|
|||||||
null-device
|
null-device
|
||||||
t
|
t
|
||||||
nil
|
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
|
;; Hunspell 1.7.0 (and later?) won't
|
||||||
;; show LOADED DICTIONARY unless
|
;; show LOADED DICTIONARY unless
|
||||||
;; there's at least one file argument
|
;; there's at least one file argument
|
||||||
;; on the command line. So we feed
|
;; on the command line. So we feed
|
||||||
;; it with the null device.
|
;; it with the null device.
|
||||||
"-D" null-device)
|
null-device)
|
||||||
(buffer-string))
|
(buffer-string))
|
||||||
"[\n\r]+"
|
"[\n\r]+"
|
||||||
t))
|
t))
|
||||||
|
|||||||
Reference in New Issue
Block a user