aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarl Heuer1998-11-10 07:06:12 +0000
committerKarl Heuer1998-11-10 07:06:12 +0000
commit8062d993f4d325197b063e950ce6f677a22adc3e (patch)
treeaa018cfdfae139a37a5ea22cb0cdc7b0c5db28f7
parent3583e969a48791902885423e6c519df329bcebc8 (diff)
downloademacs-8062d993f4d325197b063e950ce6f677a22adc3e.tar.gz
emacs-8062d993f4d325197b063e950ce6f677a22adc3e.zip
(ispell-get-coding-system): Default to iso-latin-1.
(ispell-process-line): Don't treat multibyte
-rw-r--r--lisp/textmodes/ispell.el17
1 files changed, 6 insertions, 11 deletions
diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el
index 3ac18011d5a..407bf471afb 100644
--- a/lisp/textmodes/ispell.el
+++ b/lisp/textmodes/ispell.el
@@ -694,7 +694,11 @@ used as key in `ispell-dictionary-alist' (which see).")
694(defun ispell-get-extended-character-mode () 694(defun ispell-get-extended-character-mode ()
695 (nth 6 (assoc ispell-dictionary ispell-dictionary-alist))) 695 (nth 6 (assoc ispell-dictionary ispell-dictionary-alist)))
696(defun ispell-get-coding-system () 696(defun ispell-get-coding-system ()
697 (nth 7 (assoc ispell-dictionary ispell-dictionary-alist))) 697 (or (nth 7 (assoc ispell-dictionary ispell-dictionary-alist))
698 ;; We default to Latin-1 because otherwise multibyte
699 ;; characters cause synchronization confusion
700 ;; with the Ispell process.
701 'iso-latin-1))
698 702
699(defvar ispell-process nil 703(defvar ispell-process nil
700 "The process object for Ispell.") 704 "The process object for Ispell.")
@@ -2133,16 +2137,7 @@ Return non-nil if not aborted."
2133 ;; Markers can move with highlighting! This destroys 2137 ;; Markers can move with highlighting! This destroys
2134 ;; end of region markers line-end and ispell-region-end 2138 ;; end of region markers line-end and ispell-region-end
2135 (let ((word-start 2139 (let ((word-start
2136 (copy-marker 2140 (copy-marker (+ start ispell-offset (car (cdr poss)))))
2137 (if (and (boundp 'enable-multibyte-characters)
2138 enable-multibyte-characters
2139 (ispell-get-coding-system))
2140 ;; skip over multibyte characters correctly
2141 (save-excursion
2142 (goto-char (+ start ispell-offset))
2143 (forward-char (car (cdr poss)))
2144 (point))
2145 (+ start ispell-offset (car (cdr poss))))))
2146 (word-len (length (car poss))) 2141 (word-len (length (car poss)))
2147 (line-end (copy-marker end)) 2142 (line-end (copy-marker end))
2148 (line-start (copy-marker start)) 2143 (line-start (copy-marker start))