summaryrefslogtreecommitdiff
path: root/tex/context/base/mkxl/luat-cod.mkxl
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/mkxl/luat-cod.mkxl')
-rw-r--r--tex/context/base/mkxl/luat-cod.mkxl9
1 files changed, 6 insertions, 3 deletions
diff --git a/tex/context/base/mkxl/luat-cod.mkxl b/tex/context/base/mkxl/luat-cod.mkxl
index fec88aecd..ed4a13981 100644
--- a/tex/context/base/mkxl/luat-cod.mkxl
+++ b/tex/context/base/mkxl/luat-cod.mkxl
@@ -18,19 +18,16 @@
\newif\ifproductionrun
\permanent\let\ctxdirectlua \directlua
-\permanent\let\ctxlatelua \latelua
\permanent\def\ctxsprint #1{\directlua{tex.sprint(tex.ctxcatcodes,#1)}} % saves tokens
\permanent\def\ctxwrite #1{\directlua{tex.write(#1)}} % saves tokens
\permanent\def\ctxcommand #1{\directlua{commands.#1}} % saves tokens
\permanent\def\ctxdirectcommand#1{\directlua{commands.#1}} % saves tokens
-\permanent\def\ctxlatecommand #1{\latelua {commands.#1}} % saves tokens
\permanent\def\ctxreport #1{\directlua{logs.writer[[#1]]}}
%D Take your choice \unknown
\aliased\let\ctxlua \ctxdirectlua
\aliased\let\luacode \ctxdirectlua
-\aliased\let\lateluacode \ctxlatelua
\aliased\let\directluacode\ctxdirectlua
%D Reporting the version of \LUA\ that we use is done as follows:
@@ -42,4 +39,10 @@
\registerctxluafile{luat-cod.lmt}{autosuffix}
+\toksapp \everydump {%
+ \permanent\let\ctxlatelua \latelua
+ \permanent\def\ctxlatecommand#1{\latelua{commands.#1}}%
+ \aliased\let\lateluacode \ctxlatelua
+} % no \appendtoks yet
+
\protect \endinput