aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorEli Zaretskii2019-02-11 18:07:35 +0200
committerEli Zaretskii2019-02-11 18:07:35 +0200
commit3aaa2d2058125a755bd6226cb4009811089812f8 (patch)
tree49fb9bb95384319db11862079e29b80cebcb0129 /lisp
parent0cd7b526a14ead6cbe78df481a2fd975252bb9ac (diff)
downloademacs-3aaa2d2058125a755bd6226cb4009811089812f8.tar.gz
emacs-3aaa2d2058125a755bd6226cb4009811089812f8.zip
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)
Diffstat (limited to 'lisp')
-rw-r--r--lisp/textmodes/ispell.el9
1 files changed, 8 insertions, 1 deletions
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."
1114 null-device 1114 null-device
1115 t 1115 t
1116 nil 1116 nil
1117 "-D"
1118 ;; Use -a to prevent Hunspell from
1119 ;; trying to initialize its
1120 ;; curses/termcap UI, which causes it
1121 ;; to crash or fail to start in some
1122 ;; MS-Windows ports.
1123 "-a"
1117 ;; Hunspell 1.7.0 (and later?) won't 1124 ;; Hunspell 1.7.0 (and later?) won't
1118 ;; show LOADED DICTIONARY unless 1125 ;; show LOADED DICTIONARY unless
1119 ;; there's at least one file argument 1126 ;; there's at least one file argument
1120 ;; on the command line. So we feed 1127 ;; on the command line. So we feed
1121 ;; it with the null device. 1128 ;; it with the null device.
1122 "-D" null-device) 1129 null-device)
1123 (buffer-string)) 1130 (buffer-string))
1124 "[\n\r]+" 1131 "[\n\r]+"
1125 t)) 1132 t))