bug-auctex
[Top][All Lists]
Advanced

[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: Ralf Angeli
Subject: Re: [Bug-AUCTeX] 11.81; help needed with font-latex-user-keyword-classes
Date: Sat, 15 Oct 2005 23:52:31 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

David Kastrup <address@hidden> writes:

> Ralf Angeli <address@hidden> 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




reply via email to

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