diff options
| author | Agustín Martín | 2010-06-17 16:44:34 +0200 |
|---|---|---|
| committer | Agustín Martín | 2010-06-17 16:44:34 +0200 |
| commit | 26508c03ce7b09ee8a164a450e23811ada41edad (patch) | |
| tree | 0773b0d00ede6772182537b0f2bb90e053205b89 /lisp/textmodes | |
| parent | 54ea2a0d41668006195fb9a0891ec9d5421b2e37 (diff) | |
| download | emacs-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.
Diffstat (limited to 'lisp/textmodes')
| -rw-r--r-- | lisp/textmodes/ispell.el | 4 |
1 files changed, 2 insertions, 2 deletions
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 |