[prev in list] [next in list] [prev in thread] [next in thread]
List: ess-help
Subject: Re: [ESS] [Bug-AUCTeX] 11.83; Fontification and folding bug
From: Patrick Drechsler <patrick () pdrechsler ! de>
Date: 2007-01-04 19:58:18
Message-ID: 459D5C5A.5000606 () pdrechsler ! de
[Download RAW message or body]
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic