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)
This commit is contained in:
parent
03bb7a8da9
commit
2925ce5a7e
1 changed files with 6 additions and 1 deletions
|
@ -1113,7 +1113,12 @@ dictionary from that list was found."
|
||||||
null-device
|
null-device
|
||||||
t
|
t
|
||||||
nil
|
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))
|
(buffer-string))
|
||||||
"[\n\r]+"
|
"[\n\r]+"
|
||||||
t))
|
t))
|
||||||
|
|
Loading…
Add table
Reference in a new issue