[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-AUCTeX] 11.81; help needed with font-latex-user-keyword-classe
From: |
David Kastrup |
Subject: |
Re: [Bug-AUCTeX] 11.81; help needed with font-latex-user-keyword-classes |
Date: |
Sat, 15 Oct 2005 21:52:37 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
Ralf Angeli <address@hidden> writes:
> Now why is "\(P=\Sexpr{b$p.value}\)" working? The \(...\) pair is not
> fontified syntactically but by means of keywords. And fontification
> of keywords happens after the syntactic pass. That means syntactic
> fontification can take care of the \Sexpr macro and mark it as
> verbatim (disregarding/skipping the $ character). After that keywords
> fontification will mark the \(...\) pair as math.
>
> A remedy for the problem with $...$ could be to fontify this by
> means of keyword fontification as well. But I am afraid that this
> will slow down font locking dramatically.
Is there some way of benchmarking font locking? If there is, then
M-: (query-replace "$" '("\(" "\)")) RET
on a text with many $ signs should result in a text with many \(/\)
sequences. That should help in benchmarking this kind of font locking
without actually implementing it for $.
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum