]> git.eshelyaron.com Git - emacs.git/commitdiff
Support Hunspell 1.7.0 in ispell.el
authorEli Zaretskii <eliz@gnu.org>
Mon, 26 Nov 2018 17:31:24 +0000 (19:31 +0200)
committerEli Zaretskii <eliz@gnu.org>
Mon, 26 Nov 2018 17:31:24 +0000 (19:31 +0200)
* 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)

lisp/textmodes/ispell.el

index e77bc7e1128a7c01083a983bda80956efcaba47e..9789968b15cb199ddc0321005b182abc070ec97b 100644 (file)
@@ -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))