commit/ispell: Jerry James: Specify encoding when using aspell.

[email protected]
Newsgroups gmane.emacs.xemacs.patches
Message-ID <[email protected]>
1 new commit in ispell:

https://bitbucket.org/xemacs/ispell/commits/19fef39cb7b0/
Changeset:   19fef39cb7b0
User:        Jerry James
Date:        2014-06-14 19:15:20
Summary:     Specify encoding when using aspell.

This requires aspell version 0.60 or later.  See xemacs-patches message
<CAHCOHQna+07mWT49iLOOEwVGL6bkMondakmPHNzCnJexBgZgnQ@mail.gmail.com>.
Affected #:  2 files

diff -r 083f2beaed8996529125b6b18cc494cb8c905247 -r 19fef39cb7b0637f30b4092a080035c1555c1405 ChangeLog
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2014-06-11  Jerry James  <[email protected]>
+
+	* ispell.el (ispell-start-process): fix encoding with aspell, and
+	assume that any aspell program is at least the decade-old aspell
+	0.60.
+
 2014-05-15  Norbert Koch  <[email protected]>
 
 	* Makefile (VERSION): XEmacs package 1.34 released.

diff -r 083f2beaed8996529125b6b18cc494cb8c905247 -r 19fef39cb7b0637f30b4092a080035c1555c1405 ispell.el
--- a/ispell.el
+++ b/ispell.el
@@ -2249,6 +2249,11 @@
 			    (expand-file-name ispell-personal-dictionary)))))
     (setq args (append args ispell-extra-args))
 
+    ;; If running aspell, fix the encoding; aspell >= 0.60 required
+    (when (string-match "^aspell" (file-name-nondirectory ispell-program-name))
+      (add-to-list
+       'args (concat "--encoding=" (symbol-name (ispell-get-coding-system)))))
+
     (if ispell-async-processp
 	(let ((process-connection-type ispell-use-ptys-p))
 	  (apply 'start-process

Repository URL: https://bitbucket.org/xemacs/ispell/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.