[luatex] Missing catcode info when \tracingassigns positivie

Joseph Wright joseph.wright at morningstar2.co.uk
Fri Dec 5 18:57:24 CET 2014


On 05/12/2014 10:46, Hans Hagen wrote:
> On 12/4/2014 10:56 PM, Joseph Wright wrote:
>> Hello all,
>>
>> With minimal example
>>
>>      {\tracingassigns=1\begingroup\catcode`\+=11\endgroup}
>>      \bye
>>
>> pdfTeX writes the expected data to the log:
>>
>>      {changing \catcode43=12}
>>      {into \catcode43=11}
>>
>> and with \tracingall or similar also reports restoring catcodes at the
>> end of groups. That's not the case with LuaTeX: no catcode logging. Is
>> this deliberate or a bug? If it's deliberate, what's the reasoning: it's
>> tricky for doing a diff against  pdfTeX log.
> 
> luatex has catcode tables and it would add complexity; a more natural
> way in luatex is to define a catcode table, and switch catcodetables and
> these are reported in the log

I can see catcode tables being natural for large scale changes, but for
a one-off I'd imagine \catcode is the preferred approach. For code
working across engines there's no option, of course.
--
Joseph Wright



More information about the luatex mailing list