aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/textmodes
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/textmodes')
-rw-r--r--lisp/textmodes/ispell.el10
1 files changed, 8 insertions, 2 deletions
diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el
index d03d12b3758..73a2c2da8b1 100644
--- a/lisp/textmodes/ispell.el
+++ b/lisp/textmodes/ispell.el
@@ -1212,8 +1212,10 @@ Internal use.")
1212(defun ispell--get-extra-word-characters (&optional lang) 1212(defun ispell--get-extra-word-characters (&optional lang)
1213 "Get the extra word characters for LANG as a character class. 1213 "Get the extra word characters for LANG as a character class.
1214If LANG is omitted, get the extra word characters for the default language." 1214If LANG is omitted, get the extra word characters for the default language."
1215 (concat "[" (string-trim-right (apply 'ispell--call-enchant-lsmod 1215 (let ((extra (string-trim-right
1216 (append '("-word-chars") (if lang `(,lang))))) "]")) 1216 (apply 'ispell--call-enchant-lsmod
1217 (append '("-word-chars") (if lang `(,lang)))))))
1218 (if (string= extra "") "" (concat "[" extra "]"))))
1217 1219
1218(defun ispell-find-enchant-dictionaries () 1220(defun ispell-find-enchant-dictionaries ()
1219 "Find Enchant's dictionaries, and record in `ispell-enchant-dictionary-alist'." 1221 "Find Enchant's dictionaries, and record in `ispell-enchant-dictionary-alist'."
@@ -1243,6 +1245,10 @@ If LANG is omitted, get the extra word characters for the default language."
1243(defvar ispell-last-program-name nil 1245(defvar ispell-last-program-name nil
1244 "Last value of `ispell-program-name'. Internal use.") 1246 "Last value of `ispell-program-name'. Internal use.")
1245 1247
1248;; Allow dynamically binding ispell-base-dicts-override-alist as
1249;; advertised in the doc string of ispell-initialize-spellchecker-hook.
1250(defvar ispell-base-dicts-override-alist)
1251
1246(defvar ispell-initialize-spellchecker-hook nil 1252(defvar ispell-initialize-spellchecker-hook nil
1247 "Normal hook run on spellchecker initialization. 1253 "Normal hook run on spellchecker initialization.
1248This hook is run when a spellchecker is used for the first 1254This hook is run when a spellchecker is used for the first