[Top][All Lists]

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

Re: [Bug-AUCTeX] 11.83; Fontification and folding bug

From: Ralf Angeli
Subject: Re: [Bug-AUCTeX] 11.83; Fontification and folding bug
Date: Thu, 21 Dec 2006 20:32:07 +0100

* Patrick Drechsler (2006-12-21) writes:

> 0. Activate folding and syntax-highlighting in AUCTeX.
> 1. Start Emacs. Create tex file (ie fold-highlight.tex) using `C-x C-f'.
> 2. Enter this minimal example:
> ==============================
> \documentclass{article}
> \begin{document}
> \section{Foo}
> \label{sec:foo}
> This should look like (highlighting-wrong):
> http://img326.imageshack.us/img326/1402/shot002headlinesnopv9.png

That's odd.  Font locking should happen before folding, but it does
not.  At least it seems so.  The section macros have a `fontified'
text property with the value nil.  I'm not sure why this happens
because font locking is already forced in `TeX-fold-buffer' by calling
`jit-lock-fontify-now'.  This call was actually introduced to take
care of non-visible portions of the buffer.  It does get a bit better
if `font-lock-fontify-now' is used instead (and the `when' clause in
`TeX-fold-buffer' removed).  Then at least the folded section macros
will be fontified correctly.  The labels are still wrong, though.
I'll have to investigate further why this is happening.  If
`jit-lock-fontify-now' just let me debug it. )c:

> BTW: Can I attach little screenshots like these to my bug report in the 
> future or will they be stripped from the message?

As long as they are small this would even be the preferred way for
providing screenshots.


reply via email to

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