aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAgustín Martín2012-04-12 16:19:40 +0200
committerAgustín Martín2012-04-12 16:19:40 +0200
commit64a440db710570f2a38cb604ad876d35bc99daab (patch)
tree22cc85f12ab6d6ee683fd598c7fede3c3b856c2c
parentbadf86af633711d67785cd11685f0cb209ee3983 (diff)
downloademacs-64a440db710570f2a38cb604ad876d35bc99daab.tar.gz
emacs-64a440db710570f2a38cb604ad876d35bc99daab.zip
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.
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/textmodes/flyspell.el9
2 files changed, 11 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index d4217ba1112..1f6b7d3dfaf 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12012-04-12 Agustín Martín Domingo <agustin.martin@hispalinux.es>
2
3 * textmodes/flyspell.el (flyspell-large-region): For hunspell, use
4 '("-i" ENCODING), in 2 separate command-line arguments, to specify
5 the encoding, as expected by hunspell.
6
12012-04-12 Stefan Monnier <monnier@iro.umontreal.ca> 72012-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
2 8
3 * battery.el (battery--linux-sysfs-regexp): New const. 9 * battery.el (battery--linux-sysfs-regexp): New const.
diff --git a/lisp/textmodes/flyspell.el b/lisp/textmodes/flyspell.el
index 24967ded154..72a3eb474f8 100644
--- a/lisp/textmodes/flyspell.el
+++ b/lisp/textmodes/flyspell.el
@@ -1576,10 +1576,11 @@ The buffer to mark them in is `flyspell-large-region-buffer'."
1576 (if ispell-encoding8-command 1576 (if ispell-encoding8-command
1577 (setq args 1577 (setq args
1578 (append args 1578 (append args
1579 (list 1579 (if ispell-really-hunspell
1580 (concat ispell-encoding8-command 1580 (list ispell-encoding8-command
1581 (symbol-name 1581 (upcase (symbol-name encoding)))
1582 encoding)))))) 1582 (list (concat ispell-encoding8-command
1583 (symbol-name encoding)))))))
1583 1584
1584 (let ((process-coding-system-alist (list (cons "\\.*" encoding)))) 1585 (let ((process-coding-system-alist (list (cons "\\.*" encoding))))
1585 (setq c (apply 'ispell-call-process-region beg 1586 (setq c (apply 'ispell-call-process-region beg