It seems `LaTeX-verbatim-p' is the bottleneck when executing
`TeX-in-comment' in latex mode.  The attached patch should speedup
`LaTeX-verbatim-p' (and so `LaTeX-current-environment' with
`TeX-in-comment')  when `font-latex-faces-present-p' is available,
otherwise it is still really slow.  Is there any objection?

Bye,
Mosè

2013/5/24 Mosè Giordano <[email protected]>:
> Hi Gerard,
>
> 2013/5/23 Gerard Brunick <[email protected]>:
>> I believe I have found a bug in LaTeX-current-environment which reads:
>> [...]
> Thank you for taking the time to report this bug.  The obvious
> solution would be to replace `TeX-in-commented-line' with
> `TeX-in-comment', but that would sensibly degrade performance of
> `LaTeX-current-environment', since `TeX-in-comment' is much slower
> than `TeX-in-commented-line'.  I'm thinking about a couple of ways to
> improve `TeX-in-comment' execution time.
>
> Bye,
> Mosè

Attachment: LaTeX-current-environment.patch
Description: Binary data

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

Reply via email to