Ring-closing metathesis of allylic O,O- and N,O-acetals.