aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Diekhans2019-02-24 10:27:09 -0800
committerEli Zaretskii2019-03-08 11:17:46 +0200
commit0dbc4a697afb2a1e409909289f608fd4da875c24 (patch)
tree39ca0e5a406b2ef074c6005602c1a75107eb306a
parentab9ae2fdfd24f93a9dfa7b1e0567b6a29962b55c (diff)
downloademacs-0dbc4a697afb2a1e409909289f608fd4da875c24.tar.gz
emacs-0dbc4a697afb2a1e409909289f608fd4da875c24.zip
Improve ispell.el diagnostics if Hunspell dictionaries aren't found
* lisp/textmodes/ispell.el (ispell-set-spellchecker-params): Set ispell-last-program-name only at the end, so as to produce useful diagnostics when Hunspell dictionaries are not found. (Bug#34640) Copyright-paperwork-exempt: yes
-rw-r--r--lisp/textmodes/ispell.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el
index 35dae7bc432..6553a2799bb 100644
--- a/lisp/textmodes/ispell.el
+++ b/lisp/textmodes/ispell.el
@@ -1273,7 +1273,6 @@ aspell is used along with Emacs).")
1273(defun ispell-set-spellchecker-params () 1273(defun ispell-set-spellchecker-params ()
1274 "Initialize some spellchecker parameters when changed or first used." 1274 "Initialize some spellchecker parameters when changed or first used."
1275 (unless (eq ispell-last-program-name ispell-program-name) 1275 (unless (eq ispell-last-program-name ispell-program-name)
1276 (setq ispell-last-program-name ispell-program-name)
1277 (ispell-kill-ispell t) 1276 (ispell-kill-ispell t)
1278 (if (and (condition-case () 1277 (if (and (condition-case ()
1279 (progn 1278 (progn
@@ -1388,7 +1387,8 @@ aspell is used along with Emacs).")
1388 (nth 7 adict))) 1387 (nth 7 adict)))
1389 adict) 1388 adict)
1390 tmp-dicts-alist :test #'equal)) 1389 tmp-dicts-alist :test #'equal))
1391 (setq ispell-dictionary-alist tmp-dicts-alist)))) 1390 (setq ispell-dictionary-alist tmp-dicts-alist)))
1391 (setq ispell-last-program-name ispell-program-name))
1392 1392
1393(defun ispell-valid-dictionary-list () 1393(defun ispell-valid-dictionary-list ()
1394 "Return a list of valid dictionaries. 1394 "Return a list of valid dictionaries.