emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] emacs-26 2925ce5: Support Hunspell 1.7.0 in ispell.el


From: Eli Zaretskii
Subject: [Emacs-diffs] emacs-26 2925ce5: Support Hunspell 1.7.0 in ispell.el
Date: Mon, 26 Nov 2018 12:32:13 -0500 (EST)

branch: emacs-26
commit 2925ce5a7ec1424cfaea9f2f86bd3cab27832584
Author: Eli Zaretskii <address@hidden>
Commit: Eli Zaretskii <address@hidden>

    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)
---
 lisp/textmodes/ispell.el | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el
index e77bc7e..9789968 100644
--- a/lisp/textmodes/ispell.el
+++ b/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))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]