From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Bob Alice Newsgroups: gmane.emacs.bugs Subject: bug#25766: aspell problem in LaTeX mode Date: Thu, 16 Feb 2017 20:52:17 +0000 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a113ad65a083ec50548abf9c7 X-Trace: blaine.gmane.org 1487282233 21613 195.159.176.226 (16 Feb 2017 21:57:13 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 16 Feb 2017 21:57:13 +0000 (UTC) To: 25766@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Feb 16 22:57:10 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ceU30-000552-95 for geb-bug-gnu-emacs@m.gmane.org; Thu, 16 Feb 2017 22:57:06 +0100 Original-Received: from localhost ([::1]:50476 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ceU34-0007gf-BM for geb-bug-gnu-emacs@m.gmane.org; Thu, 16 Feb 2017 16:57:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39673) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ceU2y-0007bz-8m for bug-gnu-emacs@gnu.org; Thu, 16 Feb 2017 16:57:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ceU2w-0007cq-Mn for bug-gnu-emacs@gnu.org; Thu, 16 Feb 2017 16:57:04 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:44497) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ceU2w-0007cb-Hv for bug-gnu-emacs@gnu.org; Thu, 16 Feb 2017 16:57:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ceU2w-000307-Az for bug-gnu-emacs@gnu.org; Thu, 16 Feb 2017 16:57:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Bob Alice Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 16 Feb 2017 21:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 25766 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.148728216511467 (code B ref -1); Thu, 16 Feb 2017 21:57:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 16 Feb 2017 21:56:05 +0000 Original-Received: from localhost ([127.0.0.1]:42696 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ceU20-0002ys-NQ for submit@debbugs.gnu.org; Thu, 16 Feb 2017 16:56:05 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:47963) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ceT2U-0001Ve-9C for submit@debbugs.gnu.org; Thu, 16 Feb 2017 15:52:30 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ceT2N-0002Kh-Ei for submit@debbugs.gnu.org; Thu, 16 Feb 2017 15:52:25 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:35875) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ceT2N-0002Ka-BA for submit@debbugs.gnu.org; Thu, 16 Feb 2017 15:52:23 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38912) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ceT2K-0002g1-Uz for bug-gnu-emacs@gnu.org; Thu, 16 Feb 2017 15:52:23 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ceT2J-0002It-Gs for bug-gnu-emacs@gnu.org; Thu, 16 Feb 2017 15:52:21 -0500 Original-Received: from mail-qk0-x229.google.com ([2607:f8b0:400d:c09::229]:33071) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ceT2J-0002Ia-BD for bug-gnu-emacs@gnu.org; Thu, 16 Feb 2017 15:52:19 -0500 Original-Received: by mail-qk0-x229.google.com with SMTP id p22so27646543qka.0 for ; Thu, 16 Feb 2017 12:52:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=S0CKfU7DRuaplXFyatdxwzV3g/6wQ8kGlqzBptisz08=; b=kCq76wqZu3ZSbHvQTOagNxkuwIBbi0fItL++hYHm5y1fu7jckdCYinX5hTR/1sWjWe e/ZxRNNbKIfBHs+3X1WlDfumQX0EmOmyQs9cGFHXODthK1O8dRFRPy9vYd1FCSpQyYY9 qiDJ/YbBBi8NBXXb2gbrkJx+Zg9B4oa9WoWmZ2onTrsOY/kK2vAKqQ27gQHS5FMIfRmr J60TyvBuV+orWbfmnj6KgzGEs/2w1DHX3MpfniwxH8eA6xLUEwfQLz/E4SS6HfjetRDv FaehDIqKQGnGWh2LLmfOGC6PPCl8M8A6D2pIAIC6BgeOiaApEXeMenN97lGO3NCzUsBA q97g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=S0CKfU7DRuaplXFyatdxwzV3g/6wQ8kGlqzBptisz08=; b=iFgEwlFJZSio/740LtW39+OILK1MxBfFsYxIy6McDXqpPM+JlyLsIaTGHdjiDAEj0m e35YMp9SvYikv26kO8QoDpbVBB54hxtxb8q8z6axHjD50cd0szi7oLSKnsX6ydtcYn// ljblwgfxqI36fkv4go3KCYTYGYeFAaClCI9rQLwJiUk1eaXIAXzeZifa6BpEqkjKSMNu VgZxPRJ0aiBit7aAxeS69donhq0catqFNnfLxEdYNuE+aEJn9O5grVu5b6jIrvkUPZG7 3vLaMVhlsxshCZsZgpi4WPz0KCMGe+9WDWHZXs450J/b4oPFull1BssgEkEUdZoJ6jO1 9VvA== X-Gm-Message-State: AMke39lPppPvhPX0kGMbDkKSj0HzXjCLFTm1lyJ45qm6L3lv+ywWtsfQECxmaaMK5NLd3i5M4p19ajQ08YRBJw== X-Received: by 10.55.18.82 with SMTP id c79mr4529585qkh.135.1487278338225; Thu, 16 Feb 2017 12:52:18 -0800 (PST) Original-Received: by 10.12.136.49 with HTTP; Thu, 16 Feb 2017 12:52:17 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Mailman-Approved-At: Thu, 16 Feb 2017 16:56:03 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:129423 Archived-At: --001a113ad65a083ec50548abf9c7 Content-Type: text/plain; charset=UTF-8 The following is a minimal example of LaTeX code that breaks the spell checker: \caption{5\% \label{_fred}} \autoref{alice} envolope When I spell-check this it fails to notice that 'envolope' is mis-spelled. If I remove the underscore from _fred or remove the \% then the spell checker works fine. Also, If I change the emacs default to use ispell instead of aspell then it works fine. Running the file through aspell on the command line also finds the spelling error. I can only conclude that there's a bug in the bit of emacs that runs LaTeX code through aspell. Any ideas? I'm using emacs version 24.4.1 and aspell version 3.1.20 (but really 0.60.7-20110707); The default packages are from the Debian Jessie repo. P.S I know the LaTeX code isn't complete, but my original comipled just fine and aspell still wouldn't find the spelling error. Configured using: `configure --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --with-pop=yes --enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.4/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.4/site-lisp:/usr/share/emacs/site-lisp --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --with-pop=yes --enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.4/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.4/site-lisp:/usr/share/emacs/site-lisp --with-x=yes --with-x-toolkit=gtk3 --with-toolkit-scroll-bars 'CFLAGS=-g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wall' CPPFLAGS=-D_FORTIFY_SOURCE=2 LDFLAGS=-Wl,-z,relro' Important settings: value of $LANG: en_GB.utf8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: LaTeX Minor modes in effect: shell-dirtrack-mode: t tooltip-mode: t electric-indent-mode: t mouse-wheel-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: /usr/share/emacs/24.4/site-lisp/debian-startup hides /usr/share/emacs/site-lisp/debian-startup /usr/share/emacs24/site-lisp/dictionaries-common/ispell hides /usr/share/emacs/24.4/lisp/textmodes/ispell /usr/share/emacs24/site-lisp/dictionaries-common/flyspell hides /usr/share/emacs/24.4/lisp/textmodes/flyspell /usr/share/emacs/site-lisp/rst hides /usr/share/emacs/24.4/lisp/textmodes/rst Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr mail-utils help-mode easymenu ispell tex-mode compile shell pcomplete comint ansi-color ring latexenc cc-styles cc-align cc-engine cc-vars cc-defs time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer 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 make-network-process dbusbind gfilenotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) Memory information: ((conses 16 95454 3258) (symbols 48 20235 0) (miscs 40 59 219) (strings 32 16158 4364) (string-bytes 1 513962) (vectors 16 11281) (vector-slots 8 407759 3174) (floats 8 71 533) (intervals 56 360 16) (buffers 960 13) (heap 1024 43833 1092)) --001a113ad65a083ec50548abf9c7 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
The following is a minimal example of LaTeX code that brea= ks the spell checker:

\caption{5\% \label{_fred}}
\autoref{alice}= envolope

When I spell-check this it fails to notice that 'envolo= pe' is=20 mis-spelled. If I remove the underscore from _fred or remove the \% then the spell checker works fine.

Also, If I change the emacs default to use ispell instead of aspell=20 then it works fine. Running the file through aspell on the command line=20 also finds the spelling error.=20 I can only conclude that there's a bug in the bit of emacs that runs=20 LaTeX code through aspell.

Any ideas?

I'm using emacs version 24.4.1 and aspell version 3.1.20 (but really= =20 0.60.7-20110707); The default packages are from the Debian Jessie repo.

P.S I know the LaTeX code isn't complete, but my original comipled j= ust fine and aspell still wouldn't find the spelling error.

Configur= ed using:
=C2=A0`configure --build x86_64-linux-gnu --prefix=3D/usr
= =C2=A0--sharedstatedir=3D/var/lib --libexecdir=3D/usr/lib
=C2=A0--locals= tatedir=3D/var/lib --infodir=3D/usr/share/info
=C2=A0--mandir=3D/usr/sha= re/man --with-pop=3Dyes
=C2=A0--enable-locallisppath=3D/etc/emacs24:/etc= /emacs:/usr/local/share/emacs/24.4/site-lisp:/usr/local/share/emacs/site-li= sp:/usr/share/emacs/24.4/site-lisp:/usr/share/emacs/site-lisp
=C2=A0--bu= ild x86_64-linux-gnu --prefix=3D/usr --sharedstatedir=3D/var/lib
=C2=A0-= -libexecdir=3D/usr/lib --localstatedir=3D/var/lib
=C2=A0--infodir=3D/usr= /share/info --mandir=3D/usr/share/man --with-pop=3Dyes
=C2=A0--enable-lo= callisppath=3D/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.4/site-lisp= :/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.4/site-lisp:/usr/shar= e/emacs/site-lisp
=C2=A0--with-x=3Dyes --with-x-toolkit=3Dgtk3 --with-to= olkit-scroll-bars
=C2=A0'CFLAGS=3D-g -O2 -fstack-protector-strong -W= format
=C2=A0-Werror=3Dformat-security -Wall' CPPFLAGS=3D-D_FORTIFY_= SOURCE=3D2
=C2=A0LDFLAGS=3D-Wl,-z,relro'

Important settings:<= br>=C2=A0 value of $LANG: en_GB.utf8
=C2=A0 value of $XMODIFIERS: @im=3D= ibus
=C2=A0 locale-coding-system: utf-8-unix

Major mode: LaTeX
Minor modes in effect:
=C2=A0 shell-dirtrack-mode: t
=C2=A0 tool= tip-mode: t
=C2=A0 electric-indent-mode: t
=C2=A0 mouse-wheel-mode: t=
=C2=A0 menu-bar-mode: t
=C2=A0 file-name-shadow-mode: t
=C2=A0 gl= obal-font-lock-mode: t
=C2=A0 font-lock-mode: t
=C2=A0 blink-cursor-m= ode: t
=C2=A0 auto-composition-mode: t
=C2=A0 auto-encryption-mode: t=
=C2=A0 auto-compression-mode: t
=C2=A0 line-number-mode: t
=C2=A0= transient-mark-mode: t

Load-path shadows:
/usr/share/emacs/24.4/= site-lisp/debian-startup hides /usr/share/emacs/site-lisp/debian-startup/usr/share/emacs24/site-lisp/dictionaries-common/ispell hides /usr/share/e= macs/24.4/lisp/textmodes/ispell
/usr/share/emacs24/site-lisp/dictionarie= s-common/flyspell hides /usr/share/emacs/24.4/lisp/textmodes/flyspell
/u= sr/share/emacs/site-lisp/rst hides /usr/share/emacs/24.4/lisp/textmodes/rst=

Features:
(shadow sort gnus-util mail-extr emacsbug message form= at-spec rfc822 mml
mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2= 231 mailabbrev
gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums = mm-util
help-fns mail-prsvr mail-utils help-mode easymenu ispell tex-mod= e
compile shell pcomplete comint ansi-color ring latexenc cc-styles
c= c-align cc-engine cc-vars cc-defs time-date tooltip electric uniquify
ed= iff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd
fontse= t image regexp-opt fringe tabulated-list newcomment lisp-mode
prog-mode = register page menu-bar rfn-eshadow timer select scroll-bar
mouse jit-loc= k font-lock syntax facemenu font-core frame cham georgian
utf-8-lang mis= c-lang vietnamese tibetan thai tai-viet lao korean
japanese hebrew greek= romanian slovak czech european ethiopic indian
cyrillic chinese case-ta= ble epa-hook jka-cmpr-hook help simple abbrev
minibuffer nadvice loaddef= s button faces cus-face macroexp files
text-properties overlay sha1 md5 = base64 format env code-pages mule
custom widget hashtable-print-readable= backquote make-network-process
dbusbind gfilenotify dynamic-setting sys= tem-font-setting
font-render-setting move-toolbar gtk x-toolkit x multi-= tty emacs)

Memory information:
((conses 16 95454 3258)
=C2=A0(= symbols 48 20235 0)
=C2=A0(miscs 40 59 219)
=C2=A0(strings 32 16158 4= 364)
=C2=A0(string-bytes 1 513962)
=C2=A0(vectors 16 11281)
=C2=A0= (vector-slots 8 407759 3174)
=C2=A0(floats 8 71 533)
=C2=A0(intervals= 56 360 16)
=C2=A0(buffers 960 13)
=C2=A0(heap 1024 43833 1092))
<= br>
--001a113ad65a083ec50548abf9c7--