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.
+2010-06-17 Agustín Martín <agustin.martin@hispalinux.es>
+
+ * ispell.el (ispell-aspell-find-dictionary): Fix regexp for
+ languages like Portuguese with pt_{BR,PT} and no plain pt.
+
2010-06-17 Juanma Barranquero <lekktu@gmail.com>
* emacs-lisp/package.el (package-menu-mode-map):
;; This returns nil if the data file does not exist.
;; Can someone please explain the return value format when the
;; file does exist -- rms?
- (let* ((lang ;; Strip out region, variant, etc.
- (and (string-match "^[[:alpha:]]+" dict-name)
+ (let* ((lang ;; Strip out variant, etc.
+ (and (string-match "^[[:alpha:]_]+" dict-name)
(match-string 0 dict-name)))
(data-file
(concat (or ispell-aspell-data-dir