Ralf Angeli <[EMAIL PROTECTED]> writes: > * David Kastrup (2006-12-21) writes: > >> Ralf Angeli <[EMAIL PROTECTED]> writes: >> >>> 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? > > Yes, this should be possible. We could put a property onto the > overlay holding information if the overlay is opened.
On the other hand, this seems like something that a mode-switching mode should be prepared to deal with: rescuing buffer-local variables across mode changes. I mean, we'll lose RefTeX parsing info and other stuff all the time, too. (buffer-local-variables) can be used for fetching stuff, and some function for restoring it, or kill-local-variables gets flet to ignore during mode switches completely, retaining both variable sets. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum _______________________________________________ bug-auctex mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-auctex
