The remaining point is that the ERT test still fails in exactly the same way when it is _not_ byte-compiled and batch-tested (like the original case in Org), but it produces the correct result when testing in interactive mode or in the debugger. I guess I'm asking for a warning for recursive macro expansions that manipulate the same variable both at expansion and at runtime in separate macros. Alternatively if the buggy code would always fail in the same way that would at least ensure it can be found more easily. Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ Wavetables for the Waldorf Blofeld: http://Synth.Stromeko.net/Downloads.html#BlofeldUserWavetables