aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAgustín Martín2010-06-17 16:44:34 +0200
committerAgustín Martín2010-06-17 16:44:34 +0200
commit26508c03ce7b09ee8a164a450e23811ada41edad (patch)
tree0773b0d00ede6772182537b0f2bb90e053205b89
parent54ea2a0d41668006195fb9a0891ec9d5421b2e37 (diff)
downloademacs-26508c03ce7b09ee8a164a450e23811ada41edad.tar.gz
emacs-26508c03ce7b09ee8a164a450e23811ada41edad.zip
ispell.el (ispell-aspell-find-dictionary): Fix regexp for full xx_YY search.
This is needed for languages like Portuguese where there are aspell dicts for pt_BR and pt_PT, not for plain pt. If we strip country part `ispell-aspell-find-dictionary' does not find dicts for portuguese.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/textmodes/ispell.el4
2 files changed, 7 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 374ee905f12..0779035b47e 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12010-06-17 Agustín Martín <agustin.martin@hispalinux.es>
2
3 * ispell.el (ispell-aspell-find-dictionary): Fix regexp for
4 languages like Portuguese with pt_{BR,PT} and no plain pt.
5
12010-06-17 Juanma Barranquero <lekktu@gmail.com> 62010-06-17 Juanma Barranquero <lekktu@gmail.com>
2 7
3 * emacs-lisp/package.el (package-menu-mode-map): 8 * emacs-lisp/package.el (package-menu-mode-map):
diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el
index 1a657b0fdf9..4d0cc842351 100644
--- a/lisp/textmodes/ispell.el
+++ b/lisp/textmodes/ispell.el
@@ -982,8 +982,8 @@ Assumes that value contains no whitespace."
982 ;; This returns nil if the data file does not exist. 982 ;; This returns nil if the data file does not exist.
983 ;; Can someone please explain the return value format when the 983 ;; Can someone please explain the return value format when the
984 ;; file does exist -- rms? 984 ;; file does exist -- rms?
985 (let* ((lang ;; Strip out region, variant, etc. 985 (let* ((lang ;; Strip out variant, etc.
986 (and (string-match "^[[:alpha:]]+" dict-name) 986 (and (string-match "^[[:alpha:]_]+" dict-name)
987 (match-string 0 dict-name))) 987 (match-string 0 dict-name)))
988 (data-file 988 (data-file
989 (concat (or ispell-aspell-data-dir 989 (concat (or ispell-aspell-data-dir