Commit 8b7a997c authored by Agustín Martín's avatar Agustín Martín
Browse files

flyspell.el (flyspell-large-region): Use extended character mode if defined (Bug#1339).

flyspell-large-region was not setting extended character mode for the
external ispell process. This was affecting ispell with 8bit charsets 
not being the default, like in german.

Since extended character mode was not used, process used default 7bit 
pseudo-charset resulting in some messages like

 -> rterbuch - 68: word not found

about words not found.

This may be related to (Bug#1339).
parent 50b063c3
2011-10-13 Agustín Martín Domingo <agustin.martin@hispalinux.es>
* textmodes/flyspell.el (flyspell-large-region): Make sure
extended character mode is used if defined (Bug#1339).
2011-10-13 Eli Zaretskii <eliz@gnu.org>
* simple.el (what-cursor-position): Fix the display of the
......
......@@ -1559,6 +1559,14 @@ The buffer to mark them in is `flyspell-large-region-buffer'."
(list "-p"
(expand-file-name
ispell-current-personal-dictionary)))))
;; Check for extended character mode
(let ((extended-char-mode (ispell-get-extended-character-mode)))
(and extended-char-mode ; ~ extended character mode
(string-match "[^~]+$" extended-char-mode)
(add-to-list 'args (concat "-T" (match-string 0 extended-char-mode)))))
;; Add ispell-extra-args
(setq args (append args ispell-extra-args))
;; If we are using recent aspell or hunspell, make sure we use the right encoding
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment