GNU bug report logs -
#25219
26.0.50; ispell failing
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 25219 in the body.
You can then email your comments to 25219 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#25219
; Package
emacs
.
(Sat, 17 Dec 2016 20:29:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
jpff <jpff <at> birtwistle.i-did-not-set--mail-host-address--so-tickle-me>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Sat, 17 Dec 2016 20:29:01 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
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
In GNU Emacs 26.0.50.14 (x86_64-suse-linux-gnu, GTK+ Version 2.24.31)
of 2016-12-17 built on birtwistle
Repository revision: b03ce060cae90836b0627e283ea563abaf3f39e9
Windowing system distributor 'The X.Org Foundation', version 11.0.11601000
System Description: openSUSE 13.2 (Harlequin) (x86_64)
Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Starting new Ispell process /usr/bin/ispell with default dictionary...
Spell-checking cv.tex using ispell with default dictionary...done
ispell-process-line: Ispell misalignment: word ‘Claverton’ point 873; probably incompatible versions
Making completion list...
Configured using:
'configure --with-gnutls=no'
Configured features:
XPM JPEG TIFF GIF PNG SOUND GSETTINGS NOTIFY LIBXML2 FREETYPE XFT ZLIB
TOOLKIT_SCROLL_BARS GTK2 X11
Important settings:
value of $LANG: en_GB.UTF-8
value of $XMODIFIERS: @im=local
locale-coding-system: utf-8-unix
Major mode: LaTeX
Minor modes in effect:
shell-dirtrack-mode: t
tooltip-mode: t
global-eldoc-mode: t
electric-indent-mode: t
mouse-wheel-mode: t
tool-bar-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
blink-cursor-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
line-number-mode: t
transient-mark-mode: t
Load-path shadows:
None found.
Features:
(shadow sort mail-extr emacsbug message subr-x puny seq byte-opt gv
bytecomp byte-compile cl-extra help-mode cconv cl-loaddefs pcase cl-lib
dired dired-loaddefs format-spec rfc822 mml easymenu mml-sec
password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs
mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils
mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr
mail-utils ispell tex-mode compile shell pcomplete comint ansi-color
ring latexenc time-date mule-util tooltip eldoc electric uniquify
ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win
term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe
tabulated-list replace newcomment text-mode elisp-mode lisp-mode
prog-mode register page menu-bar rfn-eshadow isearch timer select
scroll-bar mouse jit-lock font-lock syntax facemenu font-core
term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang
vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932
hebrew greek romanian slovak czech european ethiopic indian cyrillic
chinese composite charscript case-table epa-hook jka-cmpr-hook help
simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button
faces cus-face macroexp files text-properties overlay sha1 md5 base64
format env code-pages mule custom widget hashtable-print-readable
backquote inotify dynamic-setting system-font-setting
font-render-setting move-toolbar gtk x-toolkit x multi-tty
make-network-process emacs)
Memory information:
((conses 16 110726 6329)
(symbols 48 21197 0)
(miscs 40 47 140)
(strings 32 22429 4603)
(string-bytes 1 707286)
(vectors 16 15262)
(vector-slots 8 462613 2777)
(floats 8 186 84)
(intervals 56 383 0)
(buffers 976 13)
(heap 1024 37577 1064))
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#25219
; Package
emacs
.
(Sun, 18 Dec 2016 11:52:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 25219 <at> debbugs.gnu.org (full text, mbox):
jpff <jpff <at> 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
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#25219
; Package
emacs
.
(Sun, 18 Dec 2016 15:20:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 25219 <at> debbugs.gnu.org (full text, mbox):
> From: Alan Third <alan <at> idiocy.org>
> Date: Sun, 18 Dec 2016 11:51:37 +0000
> Cc: 25219 <at> debbugs.gnu.org
>
> > 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?
We definitely need to keep the -1 offset there. (It was previously
supplied by ispell-offset, but that variable was deleted.) The reason
for the offset is that the line we send to the speller has a "^"
prepended to it (see the documentation of the Ispell interface for the
reason why).
Please add a comment to that effect when you commit the above.
Thanks.
Reply sent
to
Alan Third <alan <at> idiocy.org>
:
You have taken responsibility.
(Sun, 18 Dec 2016 16:09:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
jpff <jpff <at> birtwistle.i-did-not-set--mail-host-address--so-tickle-me>
:
bug acknowledged by developer.
(Sun, 18 Dec 2016 16:09:01 GMT)
Full text and
rfc822 format available.
Message #16 received at 25219-done <at> debbugs.gnu.org (full text, mbox):
On Sun, Dec 18, 2016 at 05:18:15PM +0200, Eli Zaretskii wrote:
> > From: Alan Third <alan <at> idiocy.org>
> > Date: Sun, 18 Dec 2016 11:51:37 +0000
> > Cc: 25219 <at> debbugs.gnu.org
> >
> > > 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?
>
> We definitely need to keep the -1 offset there. (It was previously
> supplied by ispell-offset, but that variable was deleted.) The reason
> for the offset is that the line we send to the speller has a "^"
> prepended to it (see the documentation of the Ispell interface for the
> reason why).
>
> Please add a comment to that effect when you commit the above.
Done.
Thanks!
--
Alan Third
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#25219
; Package
emacs
.
(Sun, 18 Dec 2016 16:58:02 GMT)
Full text and
rfc822 format available.
Message #19 received at 25219-done <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
On 18 December 2016 at 16:08, Alan Third <alan <at> idiocy.org> wrote:
> On Sun, Dec 18, 2016 at 05:18:15PM +0200, Eli Zaretskii wrote:
> >
> > We definitely need to keep the -1 offset there. (It was previously
> > supplied by ispell-offset, but that variable was deleted.) The reason
> > for the offset is that the line we send to the speller has a "^"
> > prepended to it (see the documentation of the Ispell interface for the
> > reason why).
>
Apologies for introducing this bug. I deleted this -1 on purpose, but I
misread the (logical) sense of ispell-offset with respect to the version of
ispell, so I managed to parlay a logical negation error into an off-by-one
error.
--
http://rrt.sc3d.org
[Message part 2 (text/html, inline)]
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Mon, 16 Jan 2017 12:24:03 GMT)
Full text and
rfc822 format available.
This bug report was last modified 8 years and 207 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.