> > fixed in next luatex but in a different way as we then also need to
> > support deeper nesting
> >
> > \toks2{\def\deepermacro{deeper}}
> >
> > \toks0{\def\innermacro{inner}\def\deepermacro{weird}\directlua{tex.runtoks(2)}}
> >
> > \edef\outermacro{outer\directlua{tex.runtoks(0)}}
> >
> > \meaning\innermacro \par
> > \meaning\deepermacro\par
> > \meaning\outermacro \par
> >
> >
> 
> done
> ------------------------------------------------------------------------
> r7186 | luigi.sca...@gmail.com | 2019-09-01 15:25:05 +0200 (Sun, 01 Sep
> 2019) | 1 line
> 
> permit nested runtoks in more complex situations of nesting (HH)
> ------------------------------------------------------------------------

Awesome, thank you.
One further question out of academic interest: What was the problem with
my former proposed fix? It seems to give the right result in your example
and I currently can't see why it would have problems with nesting.

Marcel
_______________________________________________
dev-luatex mailing list
dev-luatex@ntg.nl
https://mailman.ntg.nl/mailman/listinfo/dev-luatex

Reply via email to