summaryrefslogtreecommitdiff
path: root/lisp/textmodes
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2015-05-15 17:24:06 +0300
committerEli Zaretskii <eliz@gnu.org>2015-05-15 17:24:06 +0300
commit91a274810ff17403f37bde512716b180c9ab75ef (patch)
treeb58d4e7de1305fdc8b61a69ac83e375b32c6e253 /lisp/textmodes
parent2abfe21de9241aea36f7221184886b6b39f7648b (diff)
downloademacs-91a274810ff17403f37bde512716b180c9ab75ef.tar.gz
Support de-alt dictionary with Aspell.
* lisp/textmodes/ispell.el (ispell-aspell-find-dictionary): Support Aspell dictionaries with names like "de-alt". (Bug#20581)
Diffstat (limited to 'lisp/textmodes')
-rw-r--r--lisp/textmodes/ispell.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el
index 43003afe543..8107f794e07 100644
--- a/lisp/textmodes/ispell.el
+++ b/lisp/textmodes/ispell.el
@@ -1077,7 +1077,8 @@ of `ispell-dictionary-base-alist' elements."
;; Try xx.dat first, strip out variant, country code, etc,
;; then try xx_YY.dat (without stripping country code).
(dolist (tmp-regexp (list "^[[:alpha:]]+"
- "^[[:alpha:]_]+"))
+ "^[[:alpha:]_]+"
+ "^[[:alpha:]]+-\\(alt\\|old\\)"))
(let ((fullpath
(concat tmp-path "/"
(and (string-match tmp-regexp dict-name)