GNU bug report logs - #2696
23.0.91; flyspell in TeX cite commands

Previous Next

Package: emacs;

Reported by: Juan Fiol <fiol <at> cab.cnea.gov.ar>

Date: Tue, 17 Mar 2009 16:15:03 UTC

Severity: minor

Tags: wontfix

Done: Lars Magne Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 2696 in the body.
You can then email your comments to 2696 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#2696; Package emacs. (Tue, 17 Mar 2009 16:15:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to Juan Fiol <fiol <at> cab.cnea.gov.ar>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Tue, 17 Mar 2009 16:15:04 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Juan Fiol <fiol <at> cab.cnea.gov.ar>
To: emacs-pretest-bug <at> gnu.org
Subject: 23.0.91; flyspell in TeX cite commands
Date: Tue, 17 Mar 2009 12:04:07 -0400
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

When a \cite command is too large, flyspell starts to check it after a given lenght. For
instance, flyspell would not check (CORRECTLY) for:
\cite{Macek1970PRAp235,Shakesh1978PRLp1037,Belkic1979PRp279,Meckbac1981PRAp1793,Garibot1980PRAp572}
but would highlight the following:
\cite{Macek1970PRAp235,Shakesh1978PRLp1037,Belkic1979PRp279,Meckbac1981PRAp1793,Garibot1980PRAp572,Garibot1983PRAp2792}
(it would highlight the last Garibot and PRAp in Garibot1983PRAp2792).
It probably is related to the length Emacs search for regular expresions but I do not know
how to fix it.

Thanks, Juan
- --------------------------------------------------------------------------------------
In GNU Emacs 23.0.91.1 (i686-pc-linux-gnu, GTK+ Version 2.14.7)
 of 2009-02-27 on cabcat26.cnea.gov.ar
Windowing system distributor `The X.Org Foundation', version 11.0.10300000
configured using `configure  '--prefix=/usr' '--host=i686-pc-linux-gnu'
'--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share'
'--sysconfdir=/etc' '--localstatedir=/var/lib' '--program-suffix=-emacs-23'
'--infodir=/usr/share/info/emacs-23' '--with-sound' '--with-x'
'--with-toolkit-scroll-bars' '--with-gif' '--with-jpeg' '--with-png' '--with-rsvg'
'--with-tiff' '--with-xpm' '--with-freetype' '--with-xft' '--without-libotf'
'--without-m17n-flt' '--with-x-toolkit=gtk' '--without-hesiod' '--with-kerberos'
'--with-kerberos5' '--with-gpm' '--with-dbus' '--build=i686-pc-linux-gnu'
'build_alias=i686-pc-linux-gnu' 'host_alias=i686-pc-linux-gnu' 'CFLAGS=-march=prescott -O2
- -pipe' 'LDFLAGS=-Wl,-O1''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: en_US.UTF-8
  value of $LC_CTYPE: en_US.UTF-8
  value of $LC_MESSAGES: en_US.UTF-8
  value of $LC_MONETARY: en_US.UTF-8
  value of $LC_NUMERIC: en_US.UTF-8
  value of $LC_TIME: en_US.UTF-8
  value of $LANG: en_US.UTF-8
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default-enable-multibyte-characters: t

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkm/yfcACgkQqiWjWCO20uwj0ACdFwiCxDfb5C0AQF0ClzKCqEmL
DMMAnRrqEmYRmu7uYbJDNtg/j+yfOPnm
=+bsK
-----END PGP SIGNATURE-----




Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#2696; Package emacs. (Tue, 17 Mar 2009 21:45:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to martin rudalics <rudalics <at> gmx.at>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Tue, 17 Mar 2009 21:45:03 GMT) Full text and rfc822 format available.

Message #10 received at 2696 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: martin rudalics <rudalics <at> gmx.at>
To: Juan Fiol <fiol <at> cab.cnea.gov.ar>
Cc: 2696 <at> debbugs.gnu.org
Subject: Re: bug#2696: 23.0.91; flyspell in TeX cite commands
Date: Tue, 17 Mar 2009 22:33:52 +0100
> When a \cite command is too large, flyspell starts to check it after a given lenght. For
> instance, flyspell would not check (CORRECTLY) for:
> \cite{Macek1970PRAp235,Shakesh1978PRLp1037,Belkic1979PRp279,Meckbac1981PRAp1793,Garibot1980PRAp572}
> but would highlight the following:
> \cite{Macek1970PRAp235,Shakesh1978PRLp1037,Belkic1979PRp279,Meckbac1981PRAp1793,Garibot1980PRAp572,Garibot1983PRAp2792}
> (it would highlight the last Garibot and PRAp in Garibot1983PRAp2792).
> It probably is related to the length Emacs search for regular expresions but I do not know
> how to fix it.

`flyspell-tex-command-p' has

	  (and (re-search-backward "\\\\" (- (point) 100) t)

so maybe replacing 100 by some larger value might help.

martin





Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#2696; Package emacs. (Wed, 18 Mar 2009 02:45:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Juan Fiol <fiol <at> cab.cnea.gov.ar>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Wed, 18 Mar 2009 02:45:03 GMT) Full text and rfc822 format available.

Message #15 received at 2696 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Juan Fiol <juanfiol <at> gmail.com>
To: 2696 <at> debbugs.gnu.org
Cc: martin rudalics <rudalics <at> gmx.at>
Subject: Re: bug#2696: 23.0.91; flyspell in TeX cite commands
Date: Tue, 17 Mar 2009 23:37:36 -0300
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

martin rudalics wrote:
>> When a \cite command is too large, flyspell starts to check it after a
> given lenght. For
>> instance, flyspell would not check (CORRECTLY) for:
>>
> \cite{Macek1970PRAp235,Shakesh1978PRLp1037,Belkic1979PRp279,Meckbac1981PRAp1793,Garibot1980PRAp572}
> 
>> but would highlight the following:
>>
> \cite{Macek1970PRAp235,Shakesh1978PRLp1037,Belkic1979PRp279,Meckbac1981PRAp1793,Garibot1980PRAp572,Garibot1983PRAp2792}
> 
>> (it would highlight the last Garibot and PRAp in Garibot1983PRAp2792).
>> It probably is related to the length Emacs search for regular
> expresions but I do not know
>> how to fix it.
> 
> `flyspell-tex-command-p' has
> 
>       (and (re-search-backward "\\\\" (- (point) 100) t)
> 
> so maybe replacing 100 by some larger value might help.
> 
> martin
> 
> 
Thanks for the prompt reply,
Martin's suggestion worked. I fixed it and the problem was fixed. How does it
follows now? Will it be corrected for next version of flyspell?
Thanks for your time,
Juan
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAknAXnAACgkQqiWjWCO20uy/LQCfaFw7aU98NLbYSpRtTgHQhWQl
+G8An2JQpNwul8vyQ3LYzeUmx9nMm9NT
=aq26
-----END PGP SIGNATURE-----




Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#2696; Package emacs. (Wed, 18 Mar 2009 06:35:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to martin rudalics <rudalics <at> gmx.at>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Wed, 18 Mar 2009 06:35:04 GMT) Full text and rfc822 format available.

Message #20 received at 2696 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: martin rudalics <rudalics <at> gmx.at>
To: Juan Fiol <fiol <at> cab.cnea.gov.ar>
Cc: 2696 <at> debbugs.gnu.org
Subject: Re: bug#2696: 23.0.91; flyspell in TeX cite commands
Date: Wed, 18 Mar 2009 07:26:49 +0100
>  Will it be corrected for next version of flyspell?

You can't "correct" this in a reasonable way because flyspell inherently
works on the word-like object before `point'.  The current value makes
flyspell already search the last 100 chars for a backslash every time it
investigates such an object.  Hardcoding a larger value here will just
make flyspell even more sloppy for the average user.

But maybe you can convince Agustín Martín to make this a customizable
option ;-)

martin





Severity set to 'minor' from 'normal' Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Mon, 25 Jan 2010 22:36:02 GMT) Full text and rfc822 format available.

Added tag(s) wontfix. Request was from Lars Magne Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Mon, 11 Jul 2011 14:01:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 2696 <at> debbugs.gnu.org and Juan Fiol <fiol <at> cab.cnea.gov.ar> Request was from Lars Magne Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Mon, 11 Jul 2011 14:01:02 GMT) Full text and rfc822 format available.

Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#2696; Package emacs. (Mon, 11 Jul 2011 14:04:02 GMT) Full text and rfc822 format available.

Message #29 received at 2696 <at> debbugs.gnu.org (full text, mbox):

From: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
To: martin rudalics <rudalics <at> gmx.at>
Cc: 2696 <at> debbugs.gnu.org, Juan Fiol <fiol <at> cab.cnea.gov.ar>
Subject: Re: bug#2696: 23.0.91; flyspell in TeX cite commands
Date: Mon, 11 Jul 2011 16:00:04 +0200
martin rudalics <rudalics <at> gmx.at> writes:

> You can't "correct" this in a reasonable way because flyspell inherently
> works on the word-like object before `point'.  The current value makes
> flyspell already search the last 100 chars for a backslash every time it
> investigates such an object.  Hardcoding a larger value here will just
> make flyspell even more sloppy for the average user.

I think this is just a limitation of flyspell, so I'm closing this bug
report.

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 09 Aug 2011 11:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 13 years and 319 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.