summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/optex/base/basic-macros.opm
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-06-03 20:53:13 +0000
committerKarl Berry <karl@freefriends.org>2021-06-03 20:53:13 +0000
commit18e1463358450e5d5fd2bcf5529954ed47d4a5f0 (patch)
tree76f3b3fadb39e52734f5129c35edfedf908bea02 /Master/texmf-dist/tex/optex/base/basic-macros.opm
parent01945ee778f661b15c72ca982b7f19293042057b (diff)
optex (3jun21)
git-svn-id: svn://tug.org/texlive/trunk@59458 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/optex/base/basic-macros.opm')
-rw-r--r--Master/texmf-dist/tex/optex/base/basic-macros.opm7
1 files changed, 5 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/optex/base/basic-macros.opm b/Master/texmf-dist/tex/optex/base/basic-macros.opm
index 4d465c30109..57393fc3232 100644
--- a/Master/texmf-dist/tex/optex/base/basic-macros.opm
+++ b/Master/texmf-dist/tex/optex/base/basic-macros.opm
@@ -1,6 +1,6 @@
%% This is part of the OpTeX project, see http://petr.olsak.net/optex
-\_codedecl \sdef {Basic macros for OpTeX <2021-02-03>} % loaded in format
+\_codedecl \sdef {Basic macros for OpTeX <2021-05-16>} % preloaded in format
\_doc ------------------------------
\`\bgroup`, \`\egroup`, \`\empty`, \`\space`, \`\null` and \`\wlog`
@@ -51,7 +51,9 @@
\_def \_sdef #1{\_ea\_def \_csname#1\_endcsname}
\_def \_sxdef #1{\_ea\_xdef \_csname#1\_endcsname}
-\_def \_slet #1#2{\_ea\_let \_csname#1\_ea\_endcsname \_csname#2\_endcsname}
+\_def \_slet #1#2{\_ea\_let \_csname#1\_ea\_endcsname
+ \_ifcsname#2\_ea\_endcsname \_begincsname#2\_endcsname \_else \_undefined \_fi
+}
\_public \sdef \sxdef \slet ;
\_doc ------------------------------
@@ -123,6 +125,7 @@
\_endcode % -------------------------------------
+2021-05-16: \slet reimplemnted (to allow \slet{foo}{undefined}).
2021-02-03: \useit defined.
2021-01-22: \trycs: \ea added in order to be able to use cs with parameters
2021-01-08: \opwarning format changed (secondly, hope that conclusively)