[latex3-commits] [git/LaTeX3-latex3-latex2e] lthooks2: integrate \begin \end \AtBeginDocument updates (021e619d)
Frank Mittelbach
frank.mittelbach at latex-project.org
Sat Aug 15 18:37:13 CEST 2020
Repository : https://github.com/latex3/latex2e
On branch : lthooks2
Link : https://github.com/latex3/latex2e/commit/021e619dc394ca80eed57fd9d34b327d480b4088
>---------------------------------------------------------------
commit 021e619dc394ca80eed57fd9d34b327d480b4088
Author: Frank Mittelbach <frank.mittelbach at latex-project.org>
Date: Sat Aug 15 18:37:13 2020 +0200
integrate \begin \end \AtBeginDocument updates
>---------------------------------------------------------------
021e619dc394ca80eed57fd9d34b327d480b4088
base/ltclass.dtx | 27 +++-
base/ltfinal.dtx | 25 +---
base/lthooks.dtx | 78 -----------
base/ltmiscen.dtx | 149 +++++++++++++++++----
base/testfiles-lthooks/lthooks-000.lvt | 4 -
.../tlb-latexrelease-rollback-003-often.luatex.tlg | 16 ++-
.../tlb-latexrelease-rollback-003-often.tlg | 16 ++-
.../tlb-latexrelease-rollback-003-often.xetex.tlg | 16 ++-
base/testfiles/tlb-rollback-004-often.luatex.tlg | 8 +-
base/testfiles/tlb-rollback-004-often.tlg | 8 +-
base/testfiles/tlb-rollback-004-often.xetex.tlg | 8 +-
base/update-rollback-tests.sh | 1 +
12 files changed, 195 insertions(+), 161 deletions(-)
diff --git a/base/ltclass.dtx b/base/ltclass.dtx
index 1b7d9e83..cc597906 100644
--- a/base/ltclass.dtx
+++ b/base/ltclass.dtx
@@ -33,7 +33,7 @@
%<*driver>
% \fi
\ProvidesFile{ltclass.dtx}
- [2020-08-08 v1.3m LaTeX Kernel (Class & Package Interface)]
+ [2020/08/08 v1.3n LaTeX Kernel (Class & Package Interface)]
% \iffalse
\documentclass{ltxdoc}
\GetFileInfo{ltclass.dtx}
@@ -1903,8 +1903,29 @@
% \end{macrocode}
%
% \begin{macrocode}
-\DeclareRobustCommand\AtBeginDocument{\g at addto@macro\@begindocumenthook}
-\DeclareRobustCommand\AtEndDocument{\g at addto@macro\@enddocumenthook}
+%</2ekernel>
+%<*2ekernel|latexrelease>
+%<latexrelease>\IncludeInRelease{2020/10/01}%
+%<latexrelease> {\AtBeginDocument}{Use hook system}%
+\DeclareRobustCommand\AtBeginDocument{\AddToHook{begindocument}}
+\DeclareRobustCommand\AtEndDocument {\AddToHook{enddocument}}
+%\DeclareRobustCommand\AtEndDocument {\AddToHook{env/document/end}} % alternative impl
+% \end{macrocode}
+%
+% \begin{macrocode}
+%</2ekernel|latexrelease>
+%<latexrelease>\EndIncludeInRelease
+%<latexrelease>\IncludeInRelease{0000/00/00}%
+%<latexrelease> {\AtBeginDocument}{Use hook system}%
+%<latexrelease>
+%<latexrelease>\DeclareRobustCommand\AtBeginDocument{\g at addto@macro\@begindocumenthook}
+%<latexrelease>\DeclareRobustCommand\AtEndDocument{\g at addto@macro\@enddocumenthook}
+%<latexrelease>
+%<latexrelease>\EndIncludeInRelease
+%<*2ekernel>
+% \end{macrocode}
+%
+% \begin{macrocode}
\@onlypreamble\AtBeginDocument
% \end{macrocode}
% \end{macro}
diff --git a/base/ltfinal.dtx b/base/ltfinal.dtx
index 5cf13008..21f3872e 100644
--- a/base/ltfinal.dtx
+++ b/base/ltfinal.dtx
@@ -33,7 +33,7 @@
%<*driver>
% \fi
\ProvidesFile{ltfinal.dtx}
- [2020-08-03 v2.2h LaTeX Kernel (Final Settings)]
+ [2020-08-15 v2.2i LaTeX Kernel (Final Settings)]
% \iffalse
\documentclass{ltxdoc}
\GetFileInfo{ltfinal.dtx}
@@ -1147,19 +1147,6 @@
%<latexrelease> {\ShowHook}{The hook management}%
%<latexrelease>
-%<latexrelease>\DeclareRobustCommand*\begin[1]{%
-%<latexrelease> \@ifundefined{#1}%
-%<latexrelease> {\def\reserved at a{\@latex at error{Environment #1 undefined}\@eha}}%
-%<latexrelease> {\def\reserved at a{\def\@currenvir{#1}%
-%<latexrelease> \edef\@currenvline{\on at line}%
-%<latexrelease> \csname #1\endcsname}}%
-%<latexrelease> \@ignorefalse
-%<latexrelease> \begingroup\@endpefalse\reserved at a}
-%<latexrelease>
-%<latexrelease>\@namedef{end }#1{%
-%<latexrelease> \csname end#1\endcsname\@checkend{#1}%
-%<latexrelease> \expandafter\endgroup\if at endpe\@doendpe\fi
-%<latexrelease> \if at ignore\@ignorefalse\ignorespaces\fi}
%<latexrelease>
%<latexrelease>\def \NewHook#1{}
%<latexrelease>\def \NewReversedHook#1{}
@@ -1176,8 +1163,8 @@
%<latexrelease>\def \UseHook #1{}
%<latexrelease>\def \UseOneTimeHook #1{}
%<latexrelease>\def \ShowHook #1{}
-%<latexrelease>\let \DebugHookOn \@empty
-%<latexrelease>\let \DebugHookOff\@empty
+%<latexrelease>\let \DebugHooksOn \@empty
+%<latexrelease>\let \DebugHooksOff\@empty
%<latexrelease>
%<latexrelease>\def \DeclareHookRul#1#2#3#4{}
%<latexrelease>\def \DeclareDefaultHookRule #1#2#3{}
@@ -1191,8 +1178,6 @@
%<latexrelease>\def \IfHookExistTF #1#2#3{#3}
%<latexrelease>\def \IfHookEmptyTF #1#2#3{#2}
%<latexrelease>
-%<latexrelease>\DeclareRobustCommand\AtBeginDocument{\g at addto@macro\@begindocumenthook}
-%<latexrelease>\DeclareRobustCommand\AtEndDocument{\g at addto@macro\@enddocumenthook}
%<latexrelease>
%<latexrelease>\let\AtBeginEnvironment \@undefined
%<latexrelease>\let\AtEndEnvironment \@undefined
@@ -1315,8 +1300,8 @@
%<latexrelease>\let \thetotalpages \@undefined
%<latexrelease>
%<latexrelease>\let \DiscardShipoutBox \@undefined
-%<latexrelease>\let \DebugShipoutOn \@undefined
-%<latexrelease>\let \DebugShipoutOff \@undefined
+%<latexrelease>\let \DebugShipoutsOn \@undefined
+%<latexrelease>\let \DebugShipoutsOff \@undefined
%<latexrelease>
%<latexrelease>\DeclareRobustCommand \AtBeginDvi [1]{%
%<latexrelease> \global \setbox \@begindvibox
diff --git a/base/lthooks.dtx b/base/lthooks.dtx
index 3040f52f..1cd27a81 100644
--- a/base/lthooks.dtx
+++ b/base/lthooks.dtx
@@ -3558,23 +3558,6 @@
-% \begin{macro}{\AtBeginDocument}
-%
-% \begin{macrocode}
-\renewcommand\AtBeginDocument{\AddToHook{begindocument}}
-% \end{macrocode}
-% \end{macro}
-
-% \begin{macro}{\AtEndDocument}
-%
-% \begin{macrocode}
-\renewcommand\AtEndDocument {\AddToHook{enddocument}}
-%\renewcommand\AtEndDocument {\AddToHook{env/document/end}} % alternative impl
-% \end{macrocode}
-%
-% \end{macro}
-
-
% \subsection{Set up existing \LaTeXe{} hooks}
%
@@ -3625,67 +3608,6 @@
% \section{Generic hooks for environments}
%
%
-% \begin{macrocode}
-\let\begin\relax % avoid redeclaration message
-% \end{macrocode}
-%
-% \begin{macrocode}
-\DeclareRobustCommand*\begin[1]{%
- \UseHook{env/#1/before}%
- \@ifundefined{#1}%
- {\def\reserved at a{\@latex at error{Environment~#1~undefined}\@eha}}%
- {\def\reserved at a{\def\@currenvir{#1}%
- \edef\@currenvline{\on at line}%
- \@execute at begin@hook{#1}%
- \csname #1\endcsname}}%
- \@ignorefalse
- \begingroup\@endpefalse\reserved at a}
-% \end{macrocode}
-%
-% Before the \cs{document} code is executed we have to first undo
-% the \cs{endgroup} as there should be none for this environment to
-% avoid that changes on top-level unnecessarily go to \TeX's
-% savestack, and we have to initialize all hooks in the hook system.
-% So we need to test for this environment name. But once it has be
-% found all this testing is no longer needed and so we redefine
-% \cs{@execute at begin@hook} to simply use the hook.
-% \begin{macrocode}
-\def\@execute at begin@hook #1{%
- \expandafter\ifx\csname #1\endcsname\document
- \endgroup
- \gdef\@execute at begin@hook##1{\UseHook{env/##1/begin}}%
- \@@_initialize_all:
- \fi
-% \end{macrocode}
-% If this is an environment before \verb=\begin{document}= we just
-% run the hook so this can be outside the test.
-% \begin{macrocode}
- \UseHook{env/#1/begin}%
-}
-% \end{macrocode}
-%
-% \begin{macrocode}
-\@namedef{end~}#1{%
- \UseHook{env/#1/end}%
- \csname end#1\endcsname\@checkend{#1}%
- \expandafter\endgroup\if at endpe\@doendpe\fi
- \UseHook{env/#1/after}%
- \if at ignore\@ignorefalse\ignorespaces\fi}%
-% \end{macrocode}
-% Version that fixes tlb3722 but the change should perhaps be made in
-% \pkg{tabularx} instead.
-% \begin{macrocode}
-\@namedef{end~}#1{%
-\romannumeral
-\IfHookEmptyTF{env/#1/end}%
- {\expandafter\z@}%
- {\z@\UseHook{env/#1/end}}%
-\csname end#1\endcsname\@checkend{#1}%
-\expandafter\endgroup\if at endpe\@doendpe\fi
-\UseHook{env/#1/after}%
-\if at ignore\@ignorefalse\ignorespaces\fi}%
-% \end{macrocode}
-%
%
%
% We provide 4 high-level hook interfaces directly, the others only when
diff --git a/base/ltmiscen.dtx b/base/ltmiscen.dtx
index c48384b8..3517d15a 100644
--- a/base/ltmiscen.dtx
+++ b/base/ltmiscen.dtx
@@ -32,7 +32,7 @@
%<*driver>
% \fi
\ProvidesFile{ltmiscen.dtx}
- [2020/05/31 v1.1u LaTeX Kernel (Misc. Environments)]
+ [2020/08/15 v1.1v LaTeX Kernel (Misc. Environments)]
% \iffalse
\documentclass{ltxdoc}
\GetFileInfo{ltmiscen.dtx}
@@ -525,17 +525,109 @@
% \begin{macrocode}
%</2ekernel>
%<*2ekernel|latexrelease>
-%<latexrelease>\IncludeInRelease{2019/10/01}%
-%<latexrelease> {\begin}{Making \begin/\end robust}%
-\DeclareRobustCommand\begin[1]{%
+%<latexrelease>\IncludeInRelease{2020/10/01}%
+%<latexrelease> {\begin}{Use hook system}%
+\DeclareRobustCommand*\begin[1]{%
+ \UseHook{env/#1/before}%
\@ifundefined{#1}%
{\def\reserved at a{\@latex at error{Environment #1 undefined}\@eha}}%
{\def\reserved at a{\def\@currenvir{#1}%
- \edef\@currenvline{\on at line}%
- \csname #1\endcsname}}%
+ \edef\@currenvline{\on at line}%
+ \@execute at begin@hook{#1}%
+ \csname #1\endcsname}}%
\@ignorefalse
\begingroup\@endpefalse\reserved at a}
% \end{macrocode}
+%
+% Before the \cs{document} code is executed we have to first undo
+% the \cs{endgroup} as there should be none for this environment to
+% avoid that changes on top-level unnecessarily go to \TeX's
+% savestack, and we have to initialize all hooks in the hook system.
+% So we need to test for this environment name. But once it has be
+% found all this testing is no longer needed and so we redefine
+% \cs{@execute at begin@hook} to simply use the hook.
+% \begin{macrocode}
+\ExplSyntaxOn
+\def\@execute at begin@hook #1{
+ \expandafter\ifx\csname #1\endcsname\document
+ \endgroup
+ \gdef\@execute at begin@hook##1{\UseHook{env/##1/begin}}
+ \__hook_initialize_all:
+ \fi
+% \end{macrocode}
+% If this is an environment before \verb=\begin{document}= we just
+% run the hook so this can be outside the test.
+% \begin{macrocode}
+ \UseHook{env/#1/begin}
+}
+\ExplSyntaxOff
+% \end{macrocode}
+%
+% The top level definition for \cs{end}. for an explanation see
+% below (this is the same as the 2019 version where it was
+% introduced, but for rollback we have to repeat it).
+% \begin{macrocode}
+\edef\end
+ {\unexpanded{%
+ \romannumeral
+ \ifx\protect\@typeset at protect
+ \expandafter %1
+ \expandafter %2
+ \expandafter %1
+ \expandafter %3 expands the \csname inside \end<space>
+ \expandafter %1
+ \expandafter %2 expands \end<space>
+ \expandafter %1 expands the \else
+ \z@
+ \else
+ \expandafter\z@\expandafter\protect
+ \fi
+ }%
+ \expandafter\noexpand\csname end \endcsname
+ }
+% \end{macrocode}
+% Version that adds hooks (so different from the 2019 version). It
+% fixes tlb3722 but the change should perhaps be made in
+% \pkg{tabularx} instead.
+% \begin{macrocode}
+\@namedef{end }#1{%
+ \romannumeral
+ \IfHookEmptyTF{env/#1/end}%
+ {\expandafter\z@}%
+ {\z@\UseHook{env/#1/end}}%
+ \csname end#1\endcsname\@checkend{#1}%
+ \expandafter\endgroup\if at endpe\@doendpe\fi
+ \UseHook{env/#1/after}%
+ \if at ignore\@ignorefalse\ignorespaces\fi
+}
+% \end{macrocode}
+% Version without the fix for tlb3722 for the record:
+% \begin{macrocode}
+%\@namedef{end }#1{%
+% \UseHook{env/#1/end}%
+% \csname end#1\endcsname\@checkend{#1}%
+% \expandafter\endgroup\if at endpe\@doendpe\fi
+% \UseHook{env/#1/after}%
+% \if at ignore\@ignorefalse\ignorespaces\fi}%
+% \end{macrocode}
+%
+% \begin{macrocode}
+%</2ekernel|latexrelease>
+%<latexrelease>\EndIncludeInRelease
+% \end{macrocode}
+%
+% \begin{macrocode}
+%<latexrelease>\IncludeInRelease{2019/10/01}%
+%<latexrelease> {\begin}{Making \begin/\end robust}%
+%<latexrelease>\DeclareRobustCommand\begin[1]{%
+%<latexrelease> \@ifundefined{#1}%
+%<latexrelease> {\def\reserved at a{\@latex at error{Environment #1 undefined}\@eha}}%
+%<latexrelease> {\def\reserved at a{\def\@currenvir{#1}%
+%<latexrelease> \edef\@currenvline{\on at line}%
+%<latexrelease> \csname #1\endcsname}}%
+%<latexrelease> \@ignorefalse
+%<latexrelease> \begingroup\@endpefalse\reserved at a}
+% \end{macrocode}
% A version that doesn't start out with \cs{relax} when in
% typesetting mode would be the following, but since \cs{begin}
% issues a \cs{begingroup} it wouldn't help much with respect to
@@ -608,33 +700,32 @@
% \changes{v1.1p}{2019/08/27}{Make command robust}
%
% \begin{macrocode}
-\edef\end
- {\unexpanded{%
- \romannumeral
- \ifx\protect\@typeset at protect
- \expandafter %1
- \expandafter %2
- \expandafter %1
- \expandafter %3 expands the \csname inside \end<space>
- \expandafter %1
- \expandafter %2 expands \end<space>
- \expandafter %1 expands the \else
- \z@
- \else
- \expandafter\z@\expandafter\protect
- \fi
- }%
- \expandafter\noexpand\csname end \endcsname
- }
+%<latexrelease>\edef\end
+%<latexrelease> {\unexpanded{%
+%<latexrelease> \romannumeral
+%<latexrelease> \ifx\protect\@typeset at protect
+%<latexrelease> \expandafter %1
+%<latexrelease> \expandafter %2
+%<latexrelease> \expandafter %1
+%<latexrelease> \expandafter %3 expands the \csname inside \end<space>
+%<latexrelease> \expandafter %1
+%<latexrelease> \expandafter %2 expands \end<space>
+%<latexrelease> \expandafter %1 expands the \else
+%<latexrelease> \z@
+%<latexrelease> \else
+%<latexrelease> \expandafter\z@\expandafter\protect
+%<latexrelease> \fi
+%<latexrelease> }%
+%<latexrelease> \expandafter\noexpand\csname end \endcsname
+%<latexrelease> }
% \end{macrocode}
% And here is the original definition of \cs{end} the way it was in
% \LaTeX{} for several decades now hidden in \verb*=\end =.
% \begin{macrocode}
-\@namedef{end }#1{%
- \csname end#1\endcsname\@checkend{#1}%
- \expandafter\endgroup\if at endpe\@doendpe\fi
- \if at ignore\@ignorefalse\ignorespaces\fi}
-%</2ekernel|latexrelease>
+%<latexrelease>\@namedef{end }#1{%
+%<latexrelease> \csname end#1\endcsname\@checkend{#1}%
+%<latexrelease> \expandafter\endgroup\if at endpe\@doendpe\fi
+%<latexrelease> \if at ignore\@ignorefalse\ignorespaces\fi}
%<latexrelease>\EndIncludeInRelease
% \end{macrocode}
% An here the rollback in case that is ever needed.
diff --git a/base/testfiles-lthooks/lthooks-000.lvt b/base/testfiles-lthooks/lthooks-000.lvt
index 75d9b995..d4fb95d9 100644
--- a/base/testfiles-lthooks/lthooks-000.lvt
+++ b/base/testfiles-lthooks/lthooks-000.lvt
@@ -1,7 +1,3 @@
-\RequirePackage[enable-debug]{expl3}
-\ExplSyntaxOn
-\debug_on:n { check-declarations , deprecation }
-\ExplSyntaxOff
\documentclass{article}
diff --git a/base/testfiles/tlb-latexrelease-rollback-003-often.luatex.tlg b/base/testfiles/tlb-latexrelease-rollback-003-often.luatex.tlg
index 70033798..cc8c0dd2 100644
--- a/base/testfiles/tlb-latexrelease-rollback-003-often.luatex.tlg
+++ b/base/testfiles/tlb-latexrelease-rollback-003-often.luatex.tlg
@@ -170,6 +170,10 @@ Skipping: [....-..-..] ifx tests in \@fileswith at pti@ns on input line ....
Applying: [....-..-..] ifx tests in \@fileswith at pti@ns on input line ....
Skipping: [....-..-..] Unused options issue on input line ....
Applying: [....-..-..] Unused options issue on input line ....
+Skipping: [....-..-..] Use hook system on input line ....
+Applying: [....-..-..] Use hook system on input line ....
+LaTeX Info: Redefining \AtBeginDocument on input line ....
+LaTeX Info: Redefining \AtEndDocument on input line ....
Skipping: [....-..-..] Define \q at curr@file directly (gh/220) on input line ....
Skipping: [....-..-..] Spaces in file names + optional arg on input line ...
Applying: [....-..-..] Spaces in file names + optional arg on input line ...
@@ -289,6 +293,7 @@ Skipping: [....-..-..] Add \labelformat and \Ref on input line ....
Applying: [....-..-..] Add \labelformat and \Ref on input line ....
Skipping: [....-..-..] Mask line endings on input line ....
Applying: [....-..-..] Mask line endings on input line ....
+Skipping: [....-..-..] Use hook system on input line ....
Skipping: [....-..-..] Making \begin /\end robust on input line ....
Applying: [....-..-..] Making \begin /\end robust on input line ....
Skipping: [....-..-..] Make robust on input line ....
@@ -330,9 +335,6 @@ Skipping: [....-..-..] UTF-8 default on input line ....
Applying: [....-..-..] UTF-8 default on input line ....
Skipping: [....-..-..] The hook management on input line ....
Applying: [....-..-..] The hook management on input line ....
-LaTeX Info: Redefining \begin on input line ....
-LaTeX Info: Redefining \AtBeginDocument on input line ....
-LaTeX Info: Redefining \AtEndDocument on input line ....
LaTeX Info: Redefining \AtBeginDvi on input line ....
)
===========================================
@@ -571,6 +573,10 @@ Applying: [....-..-..] ifx tests in \@fileswith at pti@ns on input line ....
Already applied: [....-..-..] ifx tests in \@fileswith at pti@ns on input line ....
Skipping: [....-..-..] Unused options issue on input line ....
Applying: [....-..-..] Unused options issue on input line ....
+Skipping: [....-..-..] Use hook system on input line ....
+Applying: [....-..-..] Use hook system on input line ....
+LaTeX Info: Redefining \AtBeginDocument on input line ....
+LaTeX Info: Redefining \AtEndDocument on input line ....
Skipping: [....-..-..] Define \q at curr@file directly (gh/220) on input line ....
Applying: [....-..-..] Spaces in file names + optional arg on input line ...
Already applied: [....-..-..] Spaces in file names + optional arg on input line ....
@@ -701,6 +707,7 @@ Applying: [....-..-..] Add \labelformat and \Ref on input line ....
Already applied: [....-..-..] Add \labelformat and \Ref on input line ....
Applying: [....-..-..] Mask line endings on input line ....
Already applied: [....-..-..] Mask line endings on input line ....
+Skipping: [....-..-..] Use hook system on input line ....
Applying: [....-..-..] Making \begin /\end robust on input line ....
LaTeX Info: Redefining \begin on input line ....
Already applied: [....-..-..] Making \begin /\end robust on input line ....
@@ -751,8 +758,5 @@ Applying: [....-..-..] UTF-8 default on input line ....
Already applied: [....-..-..] UTF-8 default on input line ....
Skipping: [....-..-..] The hook management on input line ....
Applying: [....-..-..] The hook management on input line ....
-LaTeX Info: Redefining \begin on input line ....
-LaTeX Info: Redefining \AtBeginDocument on input line ....
-LaTeX Info: Redefining \AtEndDocument on input line ....
LaTeX Info: Redefining \AtBeginDvi on input line ....
)
diff --git a/base/testfiles/tlb-latexrelease-rollback-003-often.tlg b/base/testfiles/tlb-latexrelease-rollback-003-often.tlg
index a9ba9c64..d8757d8c 100644
--- a/base/testfiles/tlb-latexrelease-rollback-003-often.tlg
+++ b/base/testfiles/tlb-latexrelease-rollback-003-often.tlg
@@ -168,6 +168,10 @@ Skipping: [....-..-..] ifx tests in \@fileswith at pti@ns on input line ....
Applying: [....-..-..] ifx tests in \@fileswith at pti@ns on input line ....
Skipping: [....-..-..] Unused options issue on input line ....
Applying: [....-..-..] Unused options issue on input line ....
+Skipping: [....-..-..] Use hook system on input line ....
+Applying: [....-..-..] Use hook system on input line ....
+LaTeX Info: Redefining \AtBeginDocument on input line ....
+LaTeX Info: Redefining \AtEndDocument on input line ....
Skipping: [....-..-..] Define \q at curr@file directly (gh/220) on input line ....
Skipping: [....-..-..] Spaces in file names + optional arg on input line ...
Applying: [....-..-..] Spaces in file names + optional arg on input line ...
@@ -287,6 +291,7 @@ Skipping: [....-..-..] Add \labelformat and \Ref on input line ....
Applying: [....-..-..] Add \labelformat and \Ref on input line ....
Skipping: [....-..-..] Mask line endings on input line ....
Applying: [....-..-..] Mask line endings on input line ....
+Skipping: [....-..-..] Use hook system on input line ....
Skipping: [....-..-..] Making \begin /\end robust on input line ....
Applying: [....-..-..] Making \begin /\end robust on input line ....
Skipping: [....-..-..] Make robust on input line ....
@@ -324,9 +329,6 @@ Skipping: [....-..-..] UTF-8 default on input line ....
Applying: [....-..-..] UTF-8 default on input line ....
Skipping: [....-..-..] The hook management on input line ....
Applying: [....-..-..] The hook management on input line ....
-LaTeX Info: Redefining \begin on input line ....
-LaTeX Info: Redefining \AtBeginDocument on input line ....
-LaTeX Info: Redefining \AtEndDocument on input line ....
LaTeX Info: Redefining \AtBeginDvi on input line ....
)
===========================================
@@ -563,6 +565,10 @@ Applying: [....-..-..] ifx tests in \@fileswith at pti@ns on input line ....
Already applied: [....-..-..] ifx tests in \@fileswith at pti@ns on input line ....
Skipping: [....-..-..] Unused options issue on input line ....
Applying: [....-..-..] Unused options issue on input line ....
+Skipping: [....-..-..] Use hook system on input line ....
+Applying: [....-..-..] Use hook system on input line ....
+LaTeX Info: Redefining \AtBeginDocument on input line ....
+LaTeX Info: Redefining \AtEndDocument on input line ....
Skipping: [....-..-..] Define \q at curr@file directly (gh/220) on input line ....
Applying: [....-..-..] Spaces in file names + optional arg on input line ...
Already applied: [....-..-..] Spaces in file names + optional arg on input line ....
@@ -693,6 +699,7 @@ Applying: [....-..-..] Add \labelformat and \Ref on input line ....
Already applied: [....-..-..] Add \labelformat and \Ref on input line ....
Applying: [....-..-..] Mask line endings on input line ....
Already applied: [....-..-..] Mask line endings on input line ....
+Skipping: [....-..-..] Use hook system on input line ....
Applying: [....-..-..] Making \begin /\end robust on input line ....
LaTeX Info: Redefining \begin on input line ....
Already applied: [....-..-..] Making \begin /\end robust on input line ....
@@ -1142,8 +1149,5 @@ Now handling font encoding U ...
Already applied: [....-..-..] UTF-8 default on input line ....
Skipping: [....-..-..] The hook management on input line ....
Applying: [....-..-..] The hook management on input line ....
-LaTeX Info: Redefining \begin on input line ....
-LaTeX Info: Redefining \AtBeginDocument on input line ....
-LaTeX Info: Redefining \AtEndDocument on input line ....
LaTeX Info: Redefining \AtBeginDvi on input line ....
)
diff --git a/base/testfiles/tlb-latexrelease-rollback-003-often.xetex.tlg b/base/testfiles/tlb-latexrelease-rollback-003-often.xetex.tlg
index f03e466e..ecedcf8b 100644
--- a/base/testfiles/tlb-latexrelease-rollback-003-often.xetex.tlg
+++ b/base/testfiles/tlb-latexrelease-rollback-003-often.xetex.tlg
@@ -168,6 +168,10 @@ Skipping: [....-..-..] ifx tests in \@fileswith at pti@ns on input line ....
Applying: [....-..-..] ifx tests in \@fileswith at pti@ns on input line ....
Skipping: [....-..-..] Unused options issue on input line ....
Applying: [....-..-..] Unused options issue on input line ....
+Skipping: [....-..-..] Use hook system on input line ....
+Applying: [....-..-..] Use hook system on input line ....
+LaTeX Info: Redefining \AtBeginDocument on input line ....
+LaTeX Info: Redefining \AtEndDocument on input line ....
Skipping: [....-..-..] Define \q at curr@file directly (gh/220) on input line ....
Skipping: [....-..-..] Spaces in file names + optional arg on input line ...
Applying: [....-..-..] Spaces in file names + optional arg on input line ...
@@ -287,6 +291,7 @@ Skipping: [....-..-..] Add \labelformat and \Ref on input line ....
Applying: [....-..-..] Add \labelformat and \Ref on input line ....
Skipping: [....-..-..] Mask line endings on input line ....
Applying: [....-..-..] Mask line endings on input line ....
+Skipping: [....-..-..] Use hook system on input line ....
Skipping: [....-..-..] Making \begin /\end robust on input line ....
Applying: [....-..-..] Making \begin /\end robust on input line ....
Skipping: [....-..-..] Make robust on input line ....
@@ -333,9 +338,6 @@ Skipping: [....-..-..] UTF-8 default on input line ....
Applying: [....-..-..] UTF-8 default on input line ....
Skipping: [....-..-..] The hook management on input line ....
Applying: [....-..-..] The hook management on input line ....
-LaTeX Info: Redefining \begin on input line ....
-LaTeX Info: Redefining \AtBeginDocument on input line ....
-LaTeX Info: Redefining \AtEndDocument on input line ....
LaTeX Info: Redefining \AtBeginDvi on input line ....
)
===========================================
@@ -572,6 +574,10 @@ Applying: [....-..-..] ifx tests in \@fileswith at pti@ns on input line ....
Already applied: [....-..-..] ifx tests in \@fileswith at pti@ns on input line ....
Skipping: [....-..-..] Unused options issue on input line ....
Applying: [....-..-..] Unused options issue on input line ....
+Skipping: [....-..-..] Use hook system on input line ....
+Applying: [....-..-..] Use hook system on input line ....
+LaTeX Info: Redefining \AtBeginDocument on input line ....
+LaTeX Info: Redefining \AtEndDocument on input line ....
Skipping: [....-..-..] Define \q at curr@file directly (gh/220) on input line ....
Applying: [....-..-..] Spaces in file names + optional arg on input line ...
Already applied: [....-..-..] Spaces in file names + optional arg on input line ....
@@ -702,6 +708,7 @@ Applying: [....-..-..] Add \labelformat and \Ref on input line ....
Already applied: [....-..-..] Add \labelformat and \Ref on input line ....
Applying: [....-..-..] Mask line endings on input line ....
Already applied: [....-..-..] Mask line endings on input line ....
+Skipping: [....-..-..] Use hook system on input line ....
Applying: [....-..-..] Making \begin /\end robust on input line ....
LaTeX Info: Redefining \begin on input line ....
Already applied: [....-..-..] Making \begin /\end robust on input line ....
@@ -752,8 +759,5 @@ Applying: [....-..-..] UTF-8 default on input line ....
Already applied: [....-..-..] UTF-8 default on input line ....
Skipping: [....-..-..] The hook management on input line ....
Applying: [....-..-..] The hook management on input line ....
-LaTeX Info: Redefining \begin on input line ....
-LaTeX Info: Redefining \AtBeginDocument on input line ....
-LaTeX Info: Redefining \AtEndDocument on input line ....
LaTeX Info: Redefining \AtBeginDvi on input line ....
)
diff --git a/base/testfiles/tlb-rollback-004-often.luatex.tlg b/base/testfiles/tlb-rollback-004-often.luatex.tlg
index abfd09af..46c81c0b 100644
--- a/base/testfiles/tlb-rollback-004-often.luatex.tlg
+++ b/base/testfiles/tlb-rollback-004-often.luatex.tlg
@@ -263,6 +263,10 @@ Applying: [....-..-..] ifx tests in \@fileswith at pti@ns on input line ....
Already applied: [....-..-..] ifx tests in \@fileswith at pti@ns on input line ....
Skipping: [....-..-..] Unused options issue on input line ....
Applying: [....-..-..] Unused options issue on input line ....
+Skipping: [....-..-..] Use hook system on input line ....
+Applying: [....-..-..] Use hook system on input line ....
+LaTeX Info: Redefining \AtBeginDocument on input line ....
+LaTeX Info: Redefining \AtEndDocument on input line ....
Skipping: [....-..-..] Define \q at curr@file directly (gh/220) on input line ....
Applying: [....-..-..] Spaces in file names + optional arg on input line ...
Already applied: [....-..-..] Spaces in file names + optional arg on input line ....
@@ -687,6 +691,7 @@ LaTeX Info: Redefining \Ref on input line ....
Already applied: [....-..-..] Add \labelformat and \Ref on input line ....
Applying: [....-..-..] Mask line endings on input line ....
Already applied: [....-..-..] Mask line endings on input line ....
+Skipping: [....-..-..] Use hook system on input line ....
Applying: [....-..-..] Making \begin /\end robust on input line ....
LaTeX Info: Redefining \begin on input line ....
Already applied: [....-..-..] Making \begin /\end robust on input line ....
@@ -741,8 +746,5 @@ Applying: [....-..-..] UTF-8 default on input line ....
Already applied: [....-..-..] UTF-8 default on input line ....
Skipping: [....-..-..] The hook management on input line ....
Applying: [....-..-..] The hook management on input line ....
-LaTeX Info: Redefining \begin on input line ....
-LaTeX Info: Redefining \AtBeginDocument on input line ....
-LaTeX Info: Redefining \AtEndDocument on input line ....
LaTeX Info: Redefining \AtBeginDvi on input line ....
)
diff --git a/base/testfiles/tlb-rollback-004-often.tlg b/base/testfiles/tlb-rollback-004-often.tlg
index 3e20b694..b5977d06 100644
--- a/base/testfiles/tlb-rollback-004-often.tlg
+++ b/base/testfiles/tlb-rollback-004-often.tlg
@@ -261,6 +261,10 @@ Applying: [....-..-..] ifx tests in \@fileswith at pti@ns on input line ....
Already applied: [....-..-..] ifx tests in \@fileswith at pti@ns on input line ....
Skipping: [....-..-..] Unused options issue on input line ....
Applying: [....-..-..] Unused options issue on input line ....
+Skipping: [....-..-..] Use hook system on input line ....
+Applying: [....-..-..] Use hook system on input line ....
+LaTeX Info: Redefining \AtBeginDocument on input line ....
+LaTeX Info: Redefining \AtEndDocument on input line ....
Skipping: [....-..-..] Define \q at curr@file directly (gh/220) on input line ....
Applying: [....-..-..] Spaces in file names + optional arg on input line ...
Already applied: [....-..-..] Spaces in file names + optional arg on input line ....
@@ -685,6 +689,7 @@ LaTeX Info: Redefining \Ref on input line ....
Already applied: [....-..-..] Add \labelformat and \Ref on input line ....
Applying: [....-..-..] Mask line endings on input line ....
Already applied: [....-..-..] Mask line endings on input line ....
+Skipping: [....-..-..] Use hook system on input line ....
Applying: [....-..-..] Making \begin /\end robust on input line ....
LaTeX Info: Redefining \begin on input line ....
Already applied: [....-..-..] Making \begin /\end robust on input line ....
@@ -1136,8 +1141,5 @@ Now handling font encoding U ...
Already applied: [....-..-..] UTF-8 default on input line ....
Skipping: [....-..-..] The hook management on input line ....
Applying: [....-..-..] The hook management on input line ....
-LaTeX Info: Redefining \begin on input line ....
-LaTeX Info: Redefining \AtBeginDocument on input line ....
-LaTeX Info: Redefining \AtEndDocument on input line ....
LaTeX Info: Redefining \AtBeginDvi on input line ....
)
diff --git a/base/testfiles/tlb-rollback-004-often.xetex.tlg b/base/testfiles/tlb-rollback-004-often.xetex.tlg
index 6cd418e6..d26ef7cf 100644
--- a/base/testfiles/tlb-rollback-004-often.xetex.tlg
+++ b/base/testfiles/tlb-rollback-004-often.xetex.tlg
@@ -261,6 +261,10 @@ Applying: [....-..-..] ifx tests in \@fileswith at pti@ns on input line ....
Already applied: [....-..-..] ifx tests in \@fileswith at pti@ns on input line ....
Skipping: [....-..-..] Unused options issue on input line ....
Applying: [....-..-..] Unused options issue on input line ....
+Skipping: [....-..-..] Use hook system on input line ....
+Applying: [....-..-..] Use hook system on input line ....
+LaTeX Info: Redefining \AtBeginDocument on input line ....
+LaTeX Info: Redefining \AtEndDocument on input line ....
Skipping: [....-..-..] Define \q at curr@file directly (gh/220) on input line ....
Applying: [....-..-..] Spaces in file names + optional arg on input line ...
Already applied: [....-..-..] Spaces in file names + optional arg on input line ....
@@ -685,6 +689,7 @@ LaTeX Info: Redefining \Ref on input line ....
Already applied: [....-..-..] Add \labelformat and \Ref on input line ....
Applying: [....-..-..] Mask line endings on input line ....
Already applied: [....-..-..] Mask line endings on input line ....
+Skipping: [....-..-..] Use hook system on input line ....
Applying: [....-..-..] Making \begin /\end robust on input line ....
LaTeX Info: Redefining \begin on input line ....
Already applied: [....-..-..] Making \begin /\end robust on input line ....
@@ -738,8 +743,5 @@ Applying: [....-..-..] UTF-8 default on input line ....
Already applied: [....-..-..] UTF-8 default on input line ....
Skipping: [....-..-..] The hook management on input line ....
Applying: [....-..-..] The hook management on input line ....
-LaTeX Info: Redefining \begin on input line ....
-LaTeX Info: Redefining \AtBeginDocument on input line ....
-LaTeX Info: Redefining \AtEndDocument on input line ....
LaTeX Info: Redefining \AtBeginDvi on input line ....
)
diff --git a/base/update-rollback-tests.sh b/base/update-rollback-tests.sh
new file mode 100644
index 00000000..d19d2486
--- /dev/null
+++ b/base/update-rollback-tests.sh
@@ -0,0 +1 @@
+l3build save -eetex,xetex,luatex tlb-latexrelease-rollback-003-often tlb-rollback-004-often
More information about the latex3-commits
mailing list.