Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
* Test file to demonstrate the latex3#1243 issue

* Fixed
  • Loading branch information
jlaurens committed Jun 6, 2024
1 parent 5a57d07 commit 5e78628
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 4 deletions.
4 changes: 4 additions & 0 deletions base/changes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ to completeness or accuracy and it contains some references to files that are
not part of the distribution.
================================================================================

2024-01-30 Jérôme Laurens <[email protected]>
* lthooks.dtx:
Fix rollback to 2020-10-01.

2024-01-29 Frank Mittelbach <[email protected]>

* ltmarks.dtx:
Expand Down
12 changes: 8 additions & 4 deletions base/lthooks.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
%%% From File: lthooks.dtx
%
% \begin{macrocode}
\def\lthooksversion{v1.1g}
\def\lthooksdate{2024/01/17}
\def\lthooksversion{v1.1h}
\def\lthooksdate{2024/01/24}
% \end{macrocode}
%
%<*driver>
Expand Down Expand Up @@ -3942,10 +3942,12 @@
%
% \changes{v1.0s}{2021/09/28}
% {Correct usage of older \cs{@@_if_file_hook:wTF} (gh/675)}
% \changes{v1.1h}{2024/01/24}
% {Correct usage of older \cs{@@_if_file_hook:wTF} (gh/1243)}
% \begin{macrocode}
%<latexrelease>\cs_new_protected:Npn \@@_try_declaring_generic_hook:nNNnn #1
%<latexrelease> {
%<latexrelease> \@@_if_file_hook:wTF #1 / \s_@@_mark
%<latexrelease> \@@_if_file_hook:wTF #1 / / \s_@@_mark
%<latexrelease> {
%<latexrelease> \exp_args:Ne
%<latexrelease> \@@_try_declaring_generic_hook_split:nNNnn
Expand Down Expand Up @@ -6785,10 +6787,12 @@
%
% \changes{v1.0s}{2021/09/28}
% {Correct usage of older \cs{@@_if_file_hook:wTF} (gh/675)}
% \changes{v1.1h}{2024/01/24}
% {Correct usage of older \cs{@@_if_file_hook:wTF} (gh/1243)}
% \begin{macrocode}
%<latexrelease>\cs_new_protected:Npn \@@_try_file_hook:n #1
%<latexrelease> {
%<latexrelease> \@@_if_file_hook:wTF #1 / \s_@@_mark
%<latexrelease> \@@_if_file_hook:wTF #1 / / \s_@@_mark
%<latexrelease> {
%<latexrelease> \exp_args:Ne \@@_if_usable_use:n
%<latexrelease> { \exp_args:Ne \@@_file_hook_normalize:n {#1} }
Expand Down
12 changes: 12 additions & 0 deletions base/testfiles-lthooks/github-1243a.lvt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
\RequirePackage[2020-10-01]{latexrelease}

\input{regression-test}

\START

\BEGINTEST{Broken in 2020//10//01 release}
\AddToHook{Undeclared hook}{...}
\TYPE{PASSED}
\ENDTEST

\END
7 changes: 7 additions & 0 deletions base/testfiles-lthooks/github-1243a.tlg
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
This is a generated file for the l3build validation system.
Don't change this file in any respect.
============================================================
TEST 1: Broken in 2020//10//01 release
============================================================
PASSED
============================================================
12 changes: 12 additions & 0 deletions base/testfiles-lthooks/github-1243b.lvt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
\RequirePackage[2021/09/28]{latexrelease}

\input{regression-test}

\START

\BEGINTEST{Broken in 2021//09//28 release}
\UseHook{file}
\TYPE{PASSED}
\ENDTEST

\END
7 changes: 7 additions & 0 deletions base/testfiles-lthooks/github-1243b.tlg
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
This is a generated file for the l3build validation system.
Don't change this file in any respect.
============================================================
TEST 1: Broken in 2021//09//28 release
============================================================
PASSED
============================================================

0 comments on commit 5e78628

Please sign in to comment.