auctex
[Top][All Lists]
Advanced

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

Re: [AUCTeX] overlay prompting


From: jfbu
Subject: Re: [AUCTeX] overlay prompting
Date: Sun, 24 Jan 2016 15:49:42 +0100

Le 24 janv. 2016 à 15:46, Mosè Giordano <address@hidden> a écrit :

> 2016-01-24 15:14 GMT+01:00 Mosè Giordano <address@hidden>:
>> The obvious
>> fix would be to do said test, but I fear parsing time would increase
>> sensibly.  I should do some tests.
> 
> In a 1850-line-long document of mine, parsing time increases by a
> factor of 3 when including the test for verbatim mode.  I don't think
> this is acceptable.
> 
> For those wanting to test, this is the patch for `TeX-auto-parse-region':
> 
> --- a/tex.el
> +++ b/tex.el
> @@ -4065,7 +4065,8 @@ you should not use something like `[\\(]' for a
> character range."
>                         (match-beginning (car b))))))
>           (symbol (nth 2 entry))
>           (match (nth 1 entry)))
> -         (unless (TeX-in-comment)
> +         (unless (or (TeX-in-comment)
> +             (TeX-verbatim-p))
>            (looking-at (nth 0 entry))
>            (if (fboundp symbol)
>            (funcall symbol match)
> 

how do you time the parsing ?
Best,
Jean-François




reply via email to

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