From f42db0f5943191ea331b0c73f7cf4c23b2315ce3 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 19 Jun 2023 20:23:14 +0000 Subject: latex (19jun23) git-svn-id: svn://tug.org/texlive/trunk@67413 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/source/latex/base/ltcmdhooks.dtx | 8 ++++---- Master/texmf-dist/source/latex/base/ltfiles.dtx | 24 ++++++++++++++++++---- Master/texmf-dist/source/latex/base/lthooks.dtx | 14 ++++++++----- Master/texmf-dist/source/latex/base/ltvers.dtx | 2 +- 4 files changed, 34 insertions(+), 14 deletions(-) (limited to 'Master/texmf-dist/source') diff --git a/Master/texmf-dist/source/latex/base/ltcmdhooks.dtx b/Master/texmf-dist/source/latex/base/ltcmdhooks.dtx index 27907af6798..6f885a2c6ce 100644 --- a/Master/texmf-dist/source/latex/base/ltcmdhooks.dtx +++ b/Master/texmf-dist/source/latex/base/ltcmdhooks.dtx @@ -14,8 +14,8 @@ % %%% From File: ltcmdhooks.dtx % -\def\ltcmdhooksversion{v1.0h} -\def\ltcmdhooksdate{2023/05/21} +\def\ltcmdhooksversion{v1.0i} +\def\ltcmdhooksdate{2023/06/16} % % % @@ -1641,10 +1641,10 @@ % \subsection{Messages} % % \begin{macrocode} -%\IncludeInRelease{2021/11/15}{wrong-cmd-hook}% +%\IncludeInRelease{2023/06/01}{wrong-cmd-hook}% % {Standardise~generic~hook~names} %\EndIncludeInRelease -%\IncludeInRelease{2021/11/15}{wrong-cmd-hook}% +%\IncludeInRelease{2021/06/01}{wrong-cmd-hook}% % {Standardise~generic~hook~names} %\msg_new:nnnn { hooks } { wrong-cmd-hook } % { diff --git a/Master/texmf-dist/source/latex/base/ltfiles.dtx b/Master/texmf-dist/source/latex/base/ltfiles.dtx index 3bac7ea0b22..9b028241979 100644 --- a/Master/texmf-dist/source/latex/base/ltfiles.dtx +++ b/Master/texmf-dist/source/latex/base/ltfiles.dtx @@ -32,7 +32,7 @@ %<*driver> % \fi \ProvidesFile{ltfiles.dtx} - [2023/05/17 v1.2t LaTeX Kernel (File Handling)] + [2023/06/17 v1.2u LaTeX Kernel (File Handling)] % \iffalse \documentclass{ltxdoc} \GetFileInfo{ltfiles.dtx} @@ -1203,8 +1203,9 @@ % \changes{v1.2d}{2019/10/26}{quote on openin} % \changes{v1.2k}{2021/03/12}{Allow unbalanced conditionals (gh/530)} % \changes{v1.2t}{2023/05/15}{Use \pkg{expl3} file existence test} -% \begin{macro}{\IfFileExists@} +% \begin{macro}{\IfFileExists@@} % \changes{v1.2t}{2023/05/15}{Macro added} +% \changes{v1.2u}{2023/06/16}{Support piped input} % Argument |#1| is |\@curr@file| so catcode 12 string with no quotes. % % The original definition picked up arguments |#2| and |#3| in a @@ -1212,7 +1213,7 @@ % implementation would have been not to pick up the arguments at % all but instead use the usual \cs{@firstoftwo} and % \cs{secondoftwo}. However, that changes how |#| is interpreted -% and so we can't do that nowaways without invalidating a lot of +% and so we can't do that nowadays without invalidating a lot of % code. Therefore the somewhat curious construction near the end. % % Earlier versions used |\openin| here, but this led to two @@ -1251,8 +1252,23 @@ \expandafter\def\expandafter\reserved@a \expandafter{\reserved@a{#2}{#3}}% \reserved@a} +% \end{macrocode} +% Pipes are not really files, but at the document level they are supported. +% To quickly trim of any leading spaces, we use a blank test and \cs{use:n} +% rather than \cs{tl_trim_spaces:n} for speed as we don't care about the end +% of the input. +% \begin{macrocode} \ExplSyntaxOn -\cs_new_eq:NN \IfFileExists@@ \file_full_name:n +\cs_new:Npn \IfFileExists@@ #1 + { + \tl_if_blank:nF {#1} + { + \tl_if_head_eq_charcode:oNTF { \use:n #1 } | + {#1} + { \file_full_name:n {#1} } + } + } +\cs_generate_variant:Nn \tl_if_head_eq_charcode:nNTF { o } \ExplSyntaxOff % %\EndIncludeInRelease diff --git a/Master/texmf-dist/source/latex/base/lthooks.dtx b/Master/texmf-dist/source/latex/base/lthooks.dtx index 3807d25c44b..8f78ecd0c6a 100644 --- a/Master/texmf-dist/source/latex/base/lthooks.dtx +++ b/Master/texmf-dist/source/latex/base/lthooks.dtx @@ -31,8 +31,8 @@ %%% From File: lthooks.dtx % % \begin{macrocode} -\def\lthooksversion{v1.1e} -\def\lthooksdate{2023/06/06} +\def\lthooksversion{v1.1f} +\def\lthooksdate{2023/06/16} % \end{macrocode} % %<*driver> @@ -3534,7 +3534,7 @@ % \changes{v1.1a}{2023/04/06} % {Add \cs{hook_gput_code_with_args:nnn} (hook-args).} % \begin{macrocode} -%\IncludeInRelease{2023/06/01}{\hook_gput_code_with_args:nnn} +%\IncludeInRelease{2023/06/01}{\hook_gput_code:nnn} % {Hooks~with~args} \cs_new_protected:Npn \hook_gput_code:nnn #1 #2 #3 { @@ -4386,7 +4386,7 @@ % \end{macrocode} % % \begin{macrocode} -%\IncludeInRelease{2023/06/01}{\hook_gremove_code:nn} +%\IncludeInRelease{2020/10/01}{\hook_gremove_code:nn} % {Hooks~with~args} %\cs_new_protected:Npn \@@_gremove_code:nn #1 #2 % { @@ -5287,6 +5287,10 @@ % \cs_gset_eq:NN \hook_use:n \@@_use_initialized:n % \cs_gset_eq:NN \@@_preamble_hook:n \use_none:n % } +%<@@=> +%\cs_gset_eq:NN \@expl@@@initialize@all@@ +% \__hook_initialize_all: +%<@@=hook> %\EndIncludeInRelease % \end{macrocode} % \end{macro} @@ -7365,7 +7369,7 @@ \NewDocumentCommand \NewMirroredHookPairWithArguments { mmm } { \hook_new_pair_with_args:nnn {#1} {#2} {#3} } %\EndIncludeInRelease -%\IncludeInRelease{2023/06/01}{\NewHookWithArguments} +%\IncludeInRelease{2020/10/01}{\NewHookWithArguments} % {Hooks~with~args} %\cs_new_protected:Npn \NewHookWithArguments #1 #2 { } %\cs_new_protected:Npn \NewReversedHookWithArguments #1 #2 { } diff --git a/Master/texmf-dist/source/latex/base/ltvers.dtx b/Master/texmf-dist/source/latex/base/ltvers.dtx index de3c022755c..b324a38020b 100644 --- a/Master/texmf-dist/source/latex/base/ltvers.dtx +++ b/Master/texmf-dist/source/latex/base/ltvers.dtx @@ -115,7 +115,7 @@ {2023-06-01} % %<*2ekernel> -\def\patch@level{0} +\def\patch@level{1} % \end{macrocode} % % \begin{macro}{\development@branch@name} -- cgit v1.2.3