bug-auctex
[Top][All Lists]
Advanced

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

Re: [Bug-AUCTeX] 11.86; LaTeX-current-environment related bug


From: David Kastrup
Subject: Re: [Bug-AUCTeX] 11.86; LaTeX-current-environment related bug
Date: Fri, 24 May 2013 16:32:45 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Mosè Giordano <address@hidden> writes:

> With my patch it becomes
>     (if (fboundp 'font-latex-faces-present-p)
>     (font-latex-faces-present-p 'font-latex-verbatim-face)
>       (or (member (LaTeX-current-verbatim-macro)
>           (LaTeX-verbatim-macros-with-delims))
>       (member (TeX-current-macro) (LaTeX-verbatim-macros-with-braces))
>       (member (LaTeX-current-environment) (LaTeX-verbatim-environments))))
> If `font-latex-faces-present-p' is available
> `(font-latex-faces-present-p 'font-latex-verbatim-face)' will be the
> only test performed whatever the result, otherwise the member tests
> are performed and I have no idea about how to speedup them.  So yes,
> the difference is apparent only in fontified regions, but
> fontification is on by default, so I assume many people use it.

Huh? fontification is _lazy_ by default.  Off-screen areas are not
fontified unless you page over them.

Check out the documentation for jit-lock-mode, the variant of font-lock
that is active as Emacs' _default_.

-- 
David Kastrup



reply via email to

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