]> code.delx.au - gnu-emacs/commitdiff
Support de-alt dictionary with Aspell.
authorEli Zaretskii <eliz@gnu.org>
Fri, 15 May 2015 14:24:06 +0000 (17:24 +0300)
committerEli Zaretskii <eliz@gnu.org>
Fri, 15 May 2015 14:24:06 +0000 (17:24 +0300)
* lisp/textmodes/ispell.el (ispell-aspell-find-dictionary):
Support Aspell dictionaries with names like "de-alt".  (Bug#20581)

lisp/textmodes/ispell.el

index 43003afe543e55de37d05586218c87d2b89f9fe8..8107f794e0759d48aded7d3122182ebde7dfc0ec 100644 (file)
@@ -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)