diff options
Diffstat (limited to 'macros/latex/contrib/l3kernel/l3file.dtx')
-rw-r--r-- | macros/latex/contrib/l3kernel/l3file.dtx | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/macros/latex/contrib/l3kernel/l3file.dtx b/macros/latex/contrib/l3kernel/l3file.dtx index 523fa4c6c1..7cb1ff9824 100644 --- a/macros/latex/contrib/l3kernel/l3file.dtx +++ b/macros/latex/contrib/l3kernel/l3file.dtx @@ -44,7 +44,7 @@ % }^^A % } % -% \date{Released 2022-07-15} +% \date{Released 2022-08-05} % % \maketitle % @@ -981,7 +981,7 @@ \int_step_inline:nnn { 0 } { - \cs_if_exist:NTF \normalend + \cs_if_exist:NTF \contextversion { \tex_count:D 38 ~ } { \tex_count:D 16 ~ % @@ -1061,10 +1061,10 @@ % \begin{macrocode} \exp_args:NNf \cs_new_protected:Npn \@@_new:N { \exp_args:NNc \exp_after:wN \exp_stop_f: { newread } } -\cs_if_exist:NT \normalend +\cs_if_exist:NT \contextversion { \cs_new_eq:NN \@@_new_aux:N \@@_new:N - \cs_set_protected:Npn \@@_new:N #1 + \cs_gset_protected:Npn \@@_new:N #1 { \cs_undefine:N #1 \@@_new_aux:N #1 @@ -1441,7 +1441,7 @@ \int_step_inline:nnn { 0 } { - \cs_if_exist:NTF \normalend + \cs_if_exist:NTF \contextversion { \tex_count:D 39 ~ } { \tex_count:D 17 ~ @@ -1499,10 +1499,21 @@ % % \begin{macro}{\@@_new:N} % As for read streams, copy \tn{newwrite}, making sure -% that it is not \tn{outer}. +% that it is not \tn{outer}. For \ConTeXt{}, we have to +% deal with the fact that \tn{newwrite} works like our +% own: it actually checks before altering definition. % \begin{macrocode} \exp_args:NNf \cs_new_protected:Npn \@@_new:N { \exp_args:NNc \exp_after:wN \exp_stop_f: { newwrite } } +\cs_if_exist:NT \contextversion + { + \cs_new_eq:NN \@@_new_aux:N \@@_new:N + \cs_gset_protected:Npn \@@_new:N #1 + { + \cs_undefine:N #1 + \@@_new_aux:N #1 + } + } % \end{macrocode} % \end{macro} % |