aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2018-11-26 19:31:24 +0200
committerEli Zaretskii2018-11-26 19:31:24 +0200
commit2925ce5a7ec1424cfaea9f2f86bd3cab27832584 (patch)
tree7a2401bf4326873308f4398a587379e4ca903b03
parent03bb7a8da9d16dd3dbd5a3ce56adb449e808bf2a (diff)
downloademacs-2925ce5a7ec1424cfaea9f2f86bd3cab27832584.tar.gz
emacs-2925ce5a7ec1424cfaea9f2f86bd3cab27832584.zip
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)
-rw-r--r--lisp/textmodes/ispell.el7
1 files changed, 6 insertions, 1 deletions
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."
1113 null-device 1113 null-device
1114 t 1114 t
1115 nil 1115 nil
1116 "-D") 1116 ;; Hunspell 1.7.0 (and later?) won't
1117 ;; show LOADED DICTIONARY unless
1118 ;; there's at least one file argument
1119 ;; on the command line. So we feed
1120 ;; it with the null device.
1121 "-D" null-device)
1117 (buffer-string)) 1122 (buffer-string))
1118 "[\n\r]+" 1123 "[\n\r]+"
1119 t)) 1124 t))