[Dev-luatex] \primitive for non-primitive

Hironobu Yamashita h.y.acetaminophen at gmail.com
Sat Apr 28 15:45:03 CEST 2018

Hi,

LuaTeX raises "Missing primitive name" error for the following:

\primitive\NONE
\end

PDFTeX (\pdfprimitive) and XeTeX (\primitive) simply ignores non-primitive, as
the PDFTeX manual says

> This command executes the primitive meaning of the following control sequence,
> regardless of whether the control sequence has been redefined or made undefined.
> If the primitive was expandable, \pdfprimitive expands also.
> On the other hand, if the following control sequence never was a primitive,
> nothing happens and no error is raised.
> (In some versions of pdfTEX prior to 1.40.19, an error was wrongly given.)

Hironobu Yamashita