1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-03 08:30:09 +00:00

textmodes/flyspell.el (flyspell-large-region): Specify encoding for hunspell with ("-i" ENCODING).

As done for ispell in in 2012-04-08T17:09:03Z!eliz@gnu.org, in flyspell-large-region we also need
to specify encoding for hunspell with ("-i" ENCODING), in 2 separate
command-line arguments, as expected by hunspell.
This commit is contained in:
Agustín Martín 2012-04-12 16:19:40 +02:00
parent badf86af63
commit 64a440db71
2 changed files with 11 additions and 4 deletions

View File

@ -1,3 +1,9 @@
2012-04-12 Agustín Martín Domingo <agustin.martin@hispalinux.es>
* textmodes/flyspell.el (flyspell-large-region): For hunspell, use
'("-i" ENCODING), in 2 separate command-line arguments, to specify
the encoding, as expected by hunspell.
2012-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
* battery.el (battery--linux-sysfs-regexp): New const.

View File

@ -1576,10 +1576,11 @@ The buffer to mark them in is `flyspell-large-region-buffer'."
(if ispell-encoding8-command
(setq args
(append args
(list
(concat ispell-encoding8-command
(symbol-name
encoding))))))
(if ispell-really-hunspell
(list ispell-encoding8-command
(upcase (symbol-name encoding)))
(list (concat ispell-encoding8-command
(symbol-name encoding)))))))
(let ((process-coding-system-alist (list (cons "\\.*" encoding))))
(setq c (apply 'ispell-call-process-region beg