Subject: Re: bug#2696: 23.0.91; flyspell in TeX cite commands

From: Juan Fiol <[email-masked]>
Date: Tue, 17 Mar 2009 23:37:36 -0300

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