bug-auctex
[Top][All Lists]
Advanced

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

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


From: Patrick Drechsler
Subject: Re: [Bug-AUCTeX] 11.83; Fontification and folding bug
Date: Thu, 04 Jan 2007 20:58:18 +0100
User-agent: Thunderbird 1.5.0.8 (X11/20061117)

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




reply via email to

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