GNU bug report logs - #42267
Fontification takes a long time when an equation contains a double prime

Previous Next

Package: auctex;

Reported by: Najib Idrissi-Kaïtouni <najib.idrissi.kaitouni <at> gmail.com>

Date: Wed, 8 Jul 2020 14:47:02 UTC

Severity: normal

Tags: fixed

Done: Ikumi Keita <ikumi <at> ikumi.que.jp>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Ikumi Keita <ikumi <at> ikumi.que.jp>
To: 42267 <at> debbugs.gnu.org
Subject: bug#42267: Fontification takes a long time when an equation contains a double prime
Date: Sat, 11 Jul 2020 14:55:18 +0900
[Message part 1 (text/plain, inline)]
>>>>> Ikumi Keita <ikumi <at> ikumi.que.jp> writes:
> I think the behavior of the above item 1 is a bug. When f-l-e-r-b-q
> cannot find a matching opening quote, it should just give up to extend
> the region anymore.

After reconsideration, I realized that such giving up is not appropriate
when that unmatched close quote has, in front of it, other open-close
quote pairs. Examples:
      abc ``def ghi'' jkl $y''=x^{2}$
      abc <<def ghi>> jkl $y''=x^{2}$

So the correct way is to continue searching backwards another close
quote, I think. The revised patch is attached. I'll install it soon.

Regards,
Ikumi Keita

[0001-Don-t-extend-font-lock-region-too-eagerly-bug-42267.patch (text/x-diff, attachment)]

This bug report was last modified 5 years and 6 days ago.

Previous Next


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