[ESS] [Bug-AUCTeX] 11.83; Fontification and folding bug
Patrick Drechsler
patrick at pdrechsler.de
Thu Jan 4 20:58:18 CET 2007
Happy New Year!
CCing ESS-list because of Noweb reference.
my OP (for ESS-readers):
http://lists.gnu.org/archive/html/bug-auctex/2006-12/msg00025.html
Ralf Angeli wrote:
> * Ralf Angeli (2006-12-21) writes:
>> * Patrick Drechsler (2006-12-21) writes:
>>> 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.
>
> I'm still not sure what's going on. And trying to debug the problem
> feels like doing quantum physics where the result changes when being
> measured. In the case at hand the problem does not occur when a
> debugger is used. So this might be related to redisplay.
>
> As a workaround you can use
> (add-hook 'find-file-hook (lambda ()
> (when (eq major-mode 'latex-mode)
> (TeX-fold-mode 1)
> (TeX-fold-buffer))))
> instead of the code you currently use with `LaTeX-mode-hook'. This
> has the additional bonus that you don't need an additional variable as
> suggested regarding your problem with Noweb mode.
Sorry for the late reply (holidays...).
Your workaround is very useful: *.tex files are now displayed correctly.
It also reduces some of the fontification issues with Noweb mode.
Cheers
Patrick
More information about the ESS-help
mailing list