]> git.eshelyaron.com Git - emacs.git/commitdiff
textmodes/flyspell.el (flyspell-large-region): Specify encoding for hunspell with...
authorAgustín Martín <agustin.martin@hispalinux.es>
Thu, 12 Apr 2012 14:19:40 +0000 (16:19 +0200)
committerAgustín Martín <agustin.martin@hispalinux.es>
Thu, 12 Apr 2012 14:19:40 +0000 (16:19 +0200)
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.

lisp/ChangeLog
lisp/textmodes/flyspell.el

index d4217ba111259871e361a3717a3396dc5c1c0dd5..1f6b7d3dfaf2c454e6146546319661d88ec23d6a 100644 (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.
index 24967ded154cba89d59065a8c9e634b2006e31f6..72a3eb474f8cc360e11e3529ebf07f702a94fe50 100644 (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