[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 3f8324e: Improve error message when Hunspell dictio
From: |
Eli Zaretskii |
Subject: |
[Emacs-diffs] master 3f8324e: Improve error message when Hunspell dictionaries are misconfigured |
Date: |
Sat, 11 Aug 2018 03:35:16 -0400 (EDT) |
branch: master
commit 3f8324e0de182945a809f63766cf9611aa45610c
Author: Eli Zaretskii <address@hidden>
Commit: Eli Zaretskii <address@hidden>
Improve error message when Hunspell dictionaries are misconfigured
* lisp/textmodes/ispell.el
(ispell-find-hunspell-dictionaries): Produce a meaningful
error message if Hunspell dictionaries are misconfigured.
(Bug#32319)
---
lisp/textmodes/ispell.el | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el
index e6f436f..87bcb5d 100644
--- a/lisp/textmodes/ispell.el
+++ b/lisp/textmodes/ispell.el
@@ -1173,6 +1173,12 @@ dictionary from that list was found."
;; Parse and set values for default dictionary.
(setq hunspell-default-dict (or hunspell-multi-dict
(car hunspell-default-dict)))
+ ;; If hunspell-default-dict is nil, ispell-parse-hunspell-affix-file
+ ;; will barf with an error message that doesn't help users figure
+ ;; out what is wrong. Produce an error message that points to the
+ ;; root cause of the problem.
+ (or hunspell-default-dict
+ (error "Can't find Hunspell dictionary with a .aff affix file"))
(setq hunspell-default-dict-entry
(ispell-parse-hunspell-affix-file hunspell-default-dict))
;; Create an alist of found dicts with only names, except for default dict.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master 3f8324e: Improve error message when Hunspell dictionaries are misconfigured,
Eli Zaretskii <=