[latex3-commits] [git/LaTeX3-latex3-latex2e] hotfix/gh401: fix for #401 (75990c05)

Frank Mittelbach frank.mittelbach at latex-project.org
Sun Oct 4 13:14:05 CEST 2020


Repository : https://github.com/latex3/latex2e
On branch  : hotfix/gh401
Link       : https://github.com/latex3/latex2e/commit/75990c050f2d6f81395db7280992ddc200dea7c1

>---------------------------------------------------------------

commit 75990c050f2d6f81395db7280992ddc200dea7c1
Author: Frank Mittelbach <frank.mittelbach at latex-project.org>
Date:   Sun Oct 4 13:14:05 2020 +0200

    fix for #401


>---------------------------------------------------------------

75990c050f2d6f81395db7280992ddc200dea7c1
 base/changes.txt                                    | 21 ++++++++++++++++-----
 base/lthooks.dtx                                    | 16 +++++++++-------
 base/testfiles-lthooks/github-0401.lvt              | 13 +++++++++++++
 .../testfiles-lthooks/github-0401.tlg               |  1 -
 4 files changed, 38 insertions(+), 13 deletions(-)

diff --git a/base/changes.txt b/base/changes.txt
index 00407db4..6b806de3 100644
--- a/base/changes.txt
+++ b/base/changes.txt
@@ -6,6 +6,22 @@ completeness or accuracy and it contains some references to files that
 are not part of the distribution.
 ================================================================================
 
+================================================================================
+All changes above are only part of the development branch for the next release.
+================================================================================
+
+
+2020-10-04  Frank Mittelbach  <Frank.Mittelbach at latex-project.org>
+
+	* lthooks.dtx (subsection{Internal commands needed elsewhere}):
+	Definition \AddToHookNext was supposed to be for \AddToHook (gh/401)
+
+
+#########################
+# 2020-10-01 Release
+#########################
+
+
 2020-10-01  Joseph Wright  <Joseph.Wright at latex-project.org>
 
 	* ltclass.dtx:
@@ -419,11 +435,6 @@ are not part of the distribution.
 	XeTeX-specific definition for \symbol to avoid bug in maths mode (gh/124)
 
 
-================================================================================
-All changes above are only part of the development branch for the next release.
-================================================================================
-
-
 #########################
 # 2020-02-02 PL 5 Release
 #########################
diff --git a/base/lthooks.dtx b/base/lthooks.dtx
index cb48570a..71ee94d7 100644
--- a/base/lthooks.dtx
+++ b/base/lthooks.dtx
@@ -31,8 +31,8 @@
 %%% From File: lthooks.dtx
 %
 %    \begin{macrocode}
-\def\lthooksversion{v1.0b}
-\def\lthooksdate{2020/09/21}
+\def\lthooksversion{v1.0c}
+\def\lthooksdate{2020/10/04}
 %    \end{macrocode}
 %
 %<*driver>
@@ -3964,19 +3964,21 @@
 %    may be used in packages without rollback functionality. So we
 %    just make them do nothing which may or may not work depending on
 %    the code usage.
+% \changes{v1.0d}{2020/10/04}{Definition \cs{AddToHookNext} was supposed
+%                             to be for \cs{AddToHook} vize versa (gh/401)}
 %    \begin{macrocode}
 %</2ekernel|latexrelease>
 %<latexrelease>\EndIncludeInRelease
 %<latexrelease>\IncludeInRelease{0000/00/00}%
 %<latexrelease>                 {\NewHook}{The hook management}%
 %<latexrelease>
-%<latexrelease>\def \NewHook#1{}
-%<latexrelease>\def \NewReversedHook#1{}
-%<latexrelease>\def \NewMirroredHookPair#1#2{}
+%<latexrelease>\def\NewHook#1{}
+%<latexrelease>\def\NewReversedHook#1{}
+%<latexrelease>\def\NewMirroredHookPair#1#2{}
 %<latexrelease>
-%<latexrelease>\long\def \AddToHook#1#2{}
+%<latexrelease>\long\def\AddToHookNext#1#2{}
 %<latexrelease>
-%<latexrelease>\def \AddToHookNext#1{\@gobble at AddToHook@args}
+%<latexrelease>\def\AddToHook#1{\@gobble at AddToHook@args}
 %<latexrelease>\providecommand\@gobble at AddToHook@args[2][]{}
 %<latexrelease>
 %<latexrelease>\def\RemoveFromHook#1{\@gobble at RemoveFromHook@arg}
diff --git a/base/testfiles-lthooks/github-0401.lvt b/base/testfiles-lthooks/github-0401.lvt
new file mode 100644
index 00000000..e1e095f5
--- /dev/null
+++ b/base/testfiles-lthooks/github-0401.lvt
@@ -0,0 +1,13 @@
+\documentclass{article}
+
+\RequirePackage[0000/00/00]{latexrelease}
+
+\input{regression-test}
+\begin{document}
+\START
+
+\AddToHook{begindocument}[mypackage]{\relax}
+
+\ShowHook{begindocument}
+
+\END
diff --git a/required/firstaid/testfiles/firstaid-000.tlg b/base/testfiles-lthooks/github-0401.tlg
similarity index 81%
copy from required/firstaid/testfiles/firstaid-000.tlg
copy to base/testfiles-lthooks/github-0401.tlg
index ed2129b9..bfbef442 100644
--- a/required/firstaid/testfiles/firstaid-000.tlg
+++ b/base/testfiles-lthooks/github-0401.tlg
@@ -1,3 +1,2 @@
 This is a generated file for the l3build validation system.
 Don't change this file in any respect.
-File loaded in kernel





More information about the latex3-commits mailing list.