diff options
| author | Eli Zaretskii | 2012-04-08 20:09:03 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2012-04-08 20:09:03 +0300 |
| commit | b39bb7e124f984a8fe7f05cce4a7f0d92d22e380 (patch) | |
| tree | f2f57f616c4d2e9fc7c2c1083113777d8904c8b7 | |
| parent | 3b747a14c7822b70003659b522b91f6e5419e929 (diff) | |
| download | emacs-b39bb7e124f984a8fe7f05cce4a7f0d92d22e380.tar.gz emacs-b39bb7e124f984a8fe7f05cce4a7f0d92d22e380.zip | |
Fix invocation of Hunspell by ispell.el.
lisp/textmodes/ispell.el (ispell-check-version): For hunspell, set
ispell-encoding8-command to "-i", without a trailing space.
(ispell-start-process): For hunspell, use '("-i" ENCODING), in 2
separate command-line arguments, to specify the encoding, since
that's how hunspell expects it.
| -rw-r--r-- | lisp/ChangeLog | 8 | ||||
| -rw-r--r-- | lisp/textmodes/ispell.el | 11 |
2 files changed, 15 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index c2597bc0e55..b769d60402e 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,11 @@ | |||
| 1 | 2012-04-08 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * textmodes/ispell.el (ispell-check-version): For hunspell, set | ||
| 4 | ispell-encoding8-command to "-i", without a trailing space. | ||
| 5 | (ispell-start-process): For hunspell, use '("-i" ENCODING), in 2 | ||
| 6 | separate command-line arguments, to specify the encoding, since | ||
| 7 | that's how hunspell expects it. | ||
| 8 | |||
| 1 | 2012-04-08 Glenn Morris <rgm@gnu.org> | 9 | 2012-04-08 Glenn Morris <rgm@gnu.org> |
| 2 | 10 | ||
| 3 | * loadup.el: Load bindings before cus-start. | 11 | * loadup.el: Load bindings before cus-start. |
diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el index 64feaa0aeca..75e8bd5a87d 100644 --- a/lisp/textmodes/ispell.el +++ b/lisp/textmodes/ispell.el | |||
| @@ -874,7 +874,7 @@ Otherwise returns the library directory name, if that is defined." | |||
| 874 | (setq ispell-really-aspell nil))) | 874 | (setq ispell-really-aspell nil))) |
| 875 | (ispell-really-hunspell | 875 | (ispell-really-hunspell |
| 876 | (if (ispell-check-minver hunspell8-minver ispell-really-hunspell) | 876 | (if (ispell-check-minver hunspell8-minver ispell-really-hunspell) |
| 877 | (setq ispell-encoding8-command "-i ") | 877 | (setq ispell-encoding8-command "-i") |
| 878 | (setq ispell-really-hunspell nil)))))) | 878 | (setq ispell-really-hunspell nil)))))) |
| 879 | result)) | 879 | result)) |
| 880 | 880 | ||
| @@ -2618,9 +2618,12 @@ Keeps argument list for future ispell invocations for no async support." | |||
| 2618 | ;; right encoding for communication. ispell or older aspell/hunspell | 2618 | ;; right encoding for communication. ispell or older aspell/hunspell |
| 2619 | ;; does not support this. | 2619 | ;; does not support this. |
| 2620 | (if ispell-encoding8-command | 2620 | (if ispell-encoding8-command |
| 2621 | (list | 2621 | (if ispell-really-hunspell |
| 2622 | (concat ispell-encoding8-command | 2622 | (list ispell-encoding8-command |
| 2623 | (symbol-name (ispell-get-coding-system))))) | 2623 | (upcase (symbol-name (ispell-get-coding-system)))) |
| 2624 | (list | ||
| 2625 | (concat ispell-encoding8-command | ||
| 2626 | (symbol-name (ispell-get-coding-system)))))) | ||
| 2624 | ispell-extra-args))) | 2627 | ispell-extra-args))) |
| 2625 | 2628 | ||
| 2626 | ;; Initially we don't know any buffer's local words. | 2629 | ;; Initially we don't know any buffer's local words. |