[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#42267: Fontification takes a long time when an equation contains a d

From: PierGianLuca Porta Mana
Subject: bug#42267: Fontification takes a long time when an equation contains a double prime
Date: Sat, 11 Jul 2020 08:37:50 +0200
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0

Hi Ikumi, thank you for taking care of this.

I wonder what other people's opinions would be about turning *off* raw-quotes 
highlighting by default (is it on by default?) – or maybe eliminating it 
altogether. There would be several reason for this:

– Quirks with apostrophes used in math mode, as the present bug showed; and also the 
complexity of distinguishing a genitive apostrophe ("the students' books") from 
a closing quote mark in a single-quote style, which often occurs in British writings for 

– Quirks with multi-paragraph quotes, when one uses the quotation style that 
repeats the opening quotes (but not the closing quotes) at each paragraph.

– Syntactically it's best to introduce quotations with an appropriate macro, eg 
\enquote{} from the csquotes package, which also automatically takes care of 
quotation styles like the ones mentioned above.

Just some thoughts.

On 2020-07-11 07:55, Ikumi Keita wrote:
Ikumi Keita <ikumi@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.

Ikumi Keita

bug-auctex mailing list

reply via email to

[Prev in Thread] Current Thread [Next in Thread]