From 7efe625cd7395e011fa5bffe5dab56b5accabbe0 Mon Sep 17 00:00:00 2001 From: Reuben Thomas Date: Tue, 13 Dec 2016 21:12:13 +0000 Subject: [PATCH 2/3] Disable auto-scanning of Enchant dictionaries lisp/textmodes/ispell.el (ispell-set-spellchecker-params): Do not call ispell-find-enchant-dictionaries. Add a comment noting that it is disabled until it is possible to set good CASECHARS and NOT-CASECHARS values. (Bug#17742; see also https://github.com/AbiWord/enchant/issues/17 ) --- lisp/textmodes/ispell.el | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el index 19a2e02..e17d432 100644 --- a/lisp/textmodes/ispell.el +++ b/lisp/textmodes/ispell.el @@ -1194,6 +1194,8 @@ ispell-enchant-dictionary-alist "An alist of parsed Enchant dicts and associated parameters. Internal use.") +;; XXX Not used: needs to be fixed to generate good CASECHARS and +;; NOT-CASECHARS values. (defun ispell-find-enchant-dictionaries () "Find Enchant's dictionaries, and record in `ispell-enchant-dictionary-alist'." (let* ((dictionaries @@ -1250,9 +1252,12 @@ ispell-set-spellchecker-params (if ispell-really-hunspell (or ispell-hunspell-dictionary-alist (ispell-find-hunspell-dictionaries)) - (if ispell-really-enchant - (or ispell-enchant-dictionary-alist - (ispell-find-enchant-dictionaries)))))) + ;; XXX Disable until ispell-find-enchant-dictionaries can + ;; generate good CASECHARS and NOT-CASECHARS values. + ;; (if ispell-really-enchant + ;; (or ispell-enchant-dictionary-alist + ;; (ispell-find-enchant-dictionaries))) + ))) ;; Substitute ispell-dictionary-alist with the list of ;; dictionaries corresponding to the given spellchecker. -- 2.7.4