David Kastrup <[EMAIL PROTECTED]> writes:

> Ralf Angeli <[EMAIL PROTECTED]> writes:
>
>> 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

You can profile most the Lisp code with elp.el.

> 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 $.

\(...\) is much easier to handle than $...$ because you can see from
the switch if it starts or ends math.  In case of $ we'd e.g. have to
check with `texmathp' if it opens or closes math everytime we
encounter such a character.  That would be far more expensive than
dealing with \(...\).

-- 
Ralf


_______________________________________________
bug-auctex mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-auctex

Reply via email to