* 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


_______________________________________________
bug-auctex mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-auctex

Reply via email to