synching for syntax-fold
If a buffer becomes visible, folds are created newly as
folds are a window property (and not a buffer property)
and folds are not stored as buffer properties.
For xml, syntax items will not be that wrong if they're
not created from beginning, but folds /must/ be created
from the very beginning of the file. So I'd need something
syn sync fold fromstart
Or alternatively some fancy function which is triggered
when the buffer becomes visible -- i.e. when it is attached
to a window. What is the event for this ? WinEnter ?
Does someone have good ideas about this ?