[luatex] \tracingmacros additional newlines in the log
luigi scarso
luigi.scarso at gmail.com
Sat Feb 24 11:08:49 CET 2024
On Fri, 23 Feb 2024 at 07:44, Linas Stonys <lstonys at vtex.lt> wrote:
>
> As you know \tracingstacklevels is for other purpose.
> \tracingstacklevels=1 logs almost without empty lines and looks like a
> mess too :)
> Of course I'm not saying that \tracingstacklevels is ussless.
>
> Snippet from section tracing ("eta" replaced)
> \tracingstacklevels=1
> \tracingmacros=2
> \tracingcommands=2
>
> ...
> {\fi}
> {\else}
> {\fi}
> {\def}
> {\def}
> ~~\Oifstar #1#2->\newOifnextchar *{\def \reservedOa *{#1}\reservedOa }{#2}
> ~~#1<-\Odblarg {\xOssect {section}{1}{\zO }{\medOsectionOskip
> }{\medOsectionOsk
> ip }{\sectionOfont \sectionOshape \nohyphen \raggedright }}
> ~~#2<-\Odblarg {\Osect {section}{1}{\zO }{\medOsectionOskip
> }{\medOsectionOskip
> }{\sectionOfont \sectionOshape \nohyphen \raggedright }}
> ~~\newOifnextchar #1#2#3->\let \reservedOd = #1\def \reservedOa {#2}\def
> \reser
> vedOb {#3}\futurelet \OletOtoken \newOifnch
> ~~#1<-*
> ~~#2<-\def \reservedOa *{\Odblarg {\xOssect {section}{1}{\zO
> }{\medOsectionOski
> p }{\medOsectionOskip }{\sectionOfont \sectionOshape \nohyphen
> \raggedright }}}
> \reservedOa
> ~~#3<-\Odblarg {\Osect {section}{1}{\zO }{\medOsectionOskip
> }{\medOsectionOskip
> }{\sectionOfont \sectionOshape \nohyphen \raggedright }}
> {\let}
> {\def}
> {\def}
> {\futurelet}
> ~~\newOifnch ->\ifx \OletOtoken \reservedOd \let \reservedOb \reservedOa
> \fi \r
> ....
>
>
> Isn't easier to follow up the code when its with empty lines between
> semantic blocks "macro+parameters+evaluated commands" (like it is in
> pdftex):
>
> ...
> {\fi}
> {\else}
> {\fi}
> {\def}
> {\def}
>
> ~~\Oifstar #1#2->\newOifnextchar *{\def \reservedOa *{#1}\reservedOa }{#2}
> ~~#1<-\Odblarg {\xOssect {section}{1}{\zO }{\medOsectionOskip
> }{\medOsectionOsk
> ip }{\sectionOfont \sectionOshape \nohyphen \raggedright }}
> ~~#2<-\Odblarg {\Osect {section}{1}{\zO }{\medOsectionOskip
> }{\medOsectionOskip
> }{\sectionOfont \sectionOshape \nohyphen \raggedright }}
>
> ~~\newOifnextchar #1#2#3->\let \reservedOd = #1\def \reservedOa {#2}\def
> \reser
> vedOb {#3}\futurelet \OletOtoken \newOifnch
> ~~#1<-*
> ~~#2<-\def \reservedOa *{\Odblarg {\xOssect {section}{1}{\zO
> }{\medOsectionOski
> p }{\medOsectionOskip }{\sectionOfont \sectionOshape \nohyphen
> \raggedright }}}
> \reservedOa
> ~~#3<-\Odblarg {\Osect {section}{1}{\zO }{\medOsectionOskip
> }{\medOsectionOskip
> }{\sectionOfont \sectionOshape \nohyphen \raggedright }}
> {\let}
> {\def}
> {\def}
> {\futurelet}
>
> ~~\newOifnch ->\ifx \OletOtoken \reservedOd \let \reservedOb \reservedOa
> \fi \r
> ....
>
We have a patch, but we are still discussing and we will probably submit
just after the TL release .
I can send you the patches offlist, if you want.
--
luigi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/luatex/attachments/20240224/380e3018/attachment.htm>
More information about the luatex
mailing list.