[NTG-context] The odd semantics of \begincsname

Henri Menke henrimenke at gmail.com
Sat Aug 17 09:19:48 CEST 2019

Dear list,

According to the LuaTeX documentation:

    “The \begincsname primitive is like \csname but doesn’t create a
    relaxed equivalent when there is no such name.”

I thought it would be possible to use this fact to skip the \relax-ed
definition when \def-ining a new control sequence, but the following MWE
fails with \inaccessible:

    \expandafter\gdef\csname yes\endcsname{}
    \expandafter\gdef\begincsname no\endcsname{}

Is this a bug or is this behaviour intended?  Could this be fixed by
making manufacture_csname aware whether it is in a def_cmd context or

Cheers, Henri

More information about the ntg-context mailing list