diff options
author | Hans Hagen <pragma@wxs.nl> | 2021-07-02 14:01:19 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2021-07-02 14:01:19 +0200 |
commit | c6ae1bb6230894346094364eb08d3aca0efdea9a (patch) | |
tree | fa68628b63f340cb6c3b27b534e42584ae7de782 /metapost | |
parent | af3da9d9f5ae4c2320d042080b4ff9d7d3460314 (diff) | |
download | context-c6ae1bb6230894346094364eb08d3aca0efdea9a.tar.gz |
2021-07-02 13:18:00
Diffstat (limited to 'metapost')
-rw-r--r-- | metapost/context/base/mpxl/mp-luas.mpxl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/metapost/context/base/mpxl/mp-luas.mpxl b/metapost/context/base/mpxl/mp-luas.mpxl index d9686eadf..8a4e369b0 100644 --- a/metapost/context/base/mpxl/mp-luas.mpxl +++ b/metapost/context/base/mpxl/mp-luas.mpxl @@ -279,12 +279,14 @@ newscriptindex mfun_newrecord ; mfun_newrecord := scriptindex "newrecord" ; newscriptindex mfun_setrecord ; mfun_setrecord := scriptindex "setrecord" ; newscriptindex mfun_getrecord ; mfun_getrecord := scriptindex "getrecord" ; +let record = runscript ; % We need to use "let" because we don't expand! + def newrecord = runscript mfun_newrecord ; enddef ; % semicolon prevents lookahead def setrecord = runscript mfun_setrecord ; enddef ; def getrecord = runscript mfun_getrecord enddef ; permanent - newrecord, setrecord, getrecord ; + record, newrecord, setrecord, getrecord ; % No vardef's because we need to scan for an assignment too and we'll see % an endgroup otherwise. |