diff options
author | Hans Hagen <pragma@wxs.nl> | 2008-10-31 13:58:00 +0100 |
---|---|---|
committer | Hans Hagen <pragma@wxs.nl> | 2008-10-31 13:58:00 +0100 |
commit | 94d83f84758766511c5e324721e39fea6ab71dae (patch) | |
tree | f167feb88a41f95f09e3b9cee5f2db2f765de38e /tex/context/base/luat-env.tex | |
parent | 560319dff7b42057a116447a8043b59d56d21cd8 (diff) | |
download | context-94d83f84758766511c5e324721e39fea6ab71dae.tar.gz |
stable 2008.10.31 13:58
Diffstat (limited to 'tex/context/base/luat-env.tex')
-rw-r--r-- | tex/context/base/luat-env.tex | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/tex/context/base/luat-env.tex b/tex/context/base/luat-env.tex index 9a0a7d9f8..164be174c 100644 --- a/tex/context/base/luat-env.tex +++ b/tex/context/base/luat-env.tex @@ -48,9 +48,8 @@ \chardef\CTXlua\zerocount \luadefcounter\CTXlua \luastartup\CTXlua -\def\ctxlua {\directlua\CTXlua} -\def\directctxlua{\directlua\CTXlua} -\def\latectxlua {\latelua \CTXlua} +\def\ctxdirectlua{\directlua\CTXlua} \let\ctxlua\ctxdirectlua +\def\ctxlatelua {\latelua \CTXlua} %D The simple \type {\lua} command is just a shortcut to the %D zero instance. Beware, we don't use the 0--9 range for @@ -61,7 +60,7 @@ \newlua \luadefault \def \lua {\directlua\luadefault} % zero is the main one, and reserved for ctx -\edef\luaversion{\CTXlua{tex.print(_VERSION)}} +\edef\luaversion{\ctxlua{tex.print(_VERSION)}} %D We want to define \LUA\ related things in the format but %D need to reluad code because \LUA\ instances are not dumped @@ -112,6 +111,10 @@ \let\stopruntimeluacode \relax \let\stopruntimectxluacode\relax +\ifx\normalprotected \undefined \let\normalprotected \protected \fi +\ifx\normalunexpanded\undefined \let\normalunexpanded\unexpanded \fi +\ifx\normalexpanded \undefined \let\normalexpanded \expanded \fi + \long\def\lastexpanded{} % todo: elsewhere we use \@@expanded \long\def\expanded#1{\long\xdef\lastexpanded{\noexpand#1}\lastexpanded} |