|
From: | David Kastrup |
Subject: | Re: [Bug-AUCTeX] 11.83; folding, fontification and noweb ie Rnw file |
Date: | Thu, 21 Dec 2006 08:27:13 +0100 |
User-agent: | Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
Ralf Angeli <address@hidden> writes: > * 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. Perhaps the opened overlays can be tracked by information in the overlays themselves? -- David Kastrup
[Prev in Thread] | Current Thread | [Next in Thread] |