void-packages/srcpkgs/emacs/patches/hunspell_1.7.patch

16 lines
578 B
Diff

--- lisp/textmodes/ispell.el
+++ lisp/textmodes/ispell.el
@@ -1113,7 +1113,12 @@ dictionary from that list was found."
null-device
t
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))
"[\n\r]+"
t))