bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#25219: 26.0.50; ispell failing


From: Alan Third
Subject: bug#25219: 26.0.50; ispell failing
Date: Sun, 18 Dec 2016 11:51:37 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (darwin)

jpff <jpff@birtwistle.i-did-not-set--mail-host-address--so-tickle-me>
writes:

> Load a text file (I used cvte but every file I have tried failed)
>
> run M-x ispell-buffer
>
> watch it fail on fist word not in dictionry
>
> I use ispell before sending mail (dyslexia and sspect keyboad)
>
> een this way fo a week or so

It looks like this started with commit:

db6e1f82976a7f232a4a206a3c850ed34cfbfdd3

The following patch appears to fix the problem for me, but I have my
doubts it's the best way to handle it and I've only tested with
hunspell.

modified   lisp/textmodes/ispell.el
@@ -3338,7 +3338,7 @@ ispell-process-line
          ;; Markers can move with highlighting!  This destroys
          ;; end of region markers line-end and ispell-region-end
          (let ((word-start
-                (copy-marker (+ ispell-start (car (cdr poss)))))
+                (copy-marker (+ ispell-start -1 (car (cdr poss)))))
                (word-len (length (car poss)))
                (line-end (copy-marker ispell-end))
                (line-start (copy-marker ispell-start))

Any thoughts?
-- 
Alan Third





reply via email to

[Prev in Thread] Current Thread [Next in Thread]