bug-auctex
[Top][All Lists]
Advanced

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

Re: [Bug-AUCTeX] 11.83; folding, fontification and noweb ie Rnw file


From: Ralf Angeli
Subject: Re: [Bug-AUCTeX] 11.83; folding, fontification and noweb ie Rnw file
Date: Thu, 21 Dec 2006 00:04:25 +0100

* Ralf Angeli (2006-12-20) writes:

> Then the following should work:
>
> (setq pd-folding-done-p nil)
> (make-variable-buffer-local 'pd-folding-done-p)
> (put 'pd-folding-done-p 'permanent-local t)
> (add-hook 'LaTeX-mode-hook (lambda ()
>                            (unless pd-folding-done-p
>                              (TeX-fold-mode 1)
>                              (TeX-fold-buffer)
>                              (setq pd-folding-done-p t))))
>
> After that folding still behaves strange because an opened figure
> environment does not get folded once you leave it with `C-p' or
> `C-n'.  It works more reliable with `C-f' and `C-b'.  I'll try to have
> a look at that ...

It's the same problem as with the code above.  The variable tracking
opened overlays is buffer-local and will be reset to its default value
nil once a noweb chunk is left.  I don't really want to make this
variable permanent-local, so there is not much I can do about the
problem.

-- 
Ralf




reply via email to

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