diff options
author | Hans Hagen <pragma@wxs.nl> | 2003-02-11 00:00:00 +0100 |
---|---|---|
committer | Hans Hagen <pragma@wxs.nl> | 2003-02-11 00:00:00 +0100 |
commit | 94506ae16cbb3851986ebf900316894301f46667 (patch) | |
tree | 139caa4675899b887099882d8254f29805196001 /tex/context/base/syst-gen.tex | |
parent | d0b8c8944555fc6250ff5af04c01acfe37b93e0d (diff) | |
download | context-94506ae16cbb3851986ebf900316894301f46667.tar.gz |
stable 2003.02.11
Diffstat (limited to 'tex/context/base/syst-gen.tex')
-rw-r--r-- | tex/context/base/syst-gen.tex | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/tex/context/base/syst-gen.tex b/tex/context/base/syst-gen.tex index 40f8701e2..4e8e95275 100644 --- a/tex/context/base/syst-gen.tex +++ b/tex/context/base/syst-gen.tex @@ -412,6 +412,34 @@ {\long\xdef\@@expanded{\noexpand#1}\@@expanded} %D \macros +%D {safeexpanded,everysafeexpanded} +%D +%D In addition we provide: + +\newtoks\everysafeexpanded + +\long\def\safeexpanded#1% + {\begingroup + \the\everysafeexpanded\long\xdef\@@expanded{\noexpand#1}% + \endgroup + \@@expanded} + +\def\safeedef#1#2% + {\begingroup + \the\everysafeexpanded\long\xdef\@@expanded{\noexpand#2}% + \endgroup + \let#1\@@expanded} + +\def\safexdef#1#2% + {\begingroup + \the\everysafeexpanded\long\xdef\@@expanded{\noexpand#2}% + \endgroup + \global\let#1\@@expanded} + +%D You can append protective measures to the token register if +%D needed, as we will do later. + +%D \macros %D {expandoneargafter,expandtwoargsafter} %D %D These two commands make macros more readable by hiding a |