[latex3-commits] [git/LaTeX3-latex3-latex2e] hotfix/gh464: Add missing \changes and changes.txt entries (bbf9e8a0)

PhelypeOleinik phelype.oleinik at latex-project.org
Thu Jan 7 17:30:00 CET 2021


Repository : https://github.com/latex3/latex2e
On branch  : hotfix/gh464
Link       : https://github.com/latex3/latex2e/commit/bbf9e8a09611a4b544be38364b03c8ee38e209fa

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

commit bbf9e8a09611a4b544be38364b03c8ee38e209fa
Author: PhelypeOleinik <phelype.oleinik at latex-project.org>
Date:   Thu Jan 7 13:30:00 2021 -0300

    Add missing \changes and changes.txt entries


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

bbf9e8a09611a4b544be38364b03c8ee38e209fa
 base/changes.txt    | 8 ++++++++
 base/ltfilehook.dtx | 6 ++++--
 base/lthooks.dtx    | 9 ++++++---
 3 files changed, 18 insertions(+), 5 deletions(-)

diff --git a/base/changes.txt b/base/changes.txt
index cc8d59b6..2da5424a 100644
--- a/base/changes.txt
+++ b/base/changes.txt
@@ -10,6 +10,14 @@ are not part of the distribution.
 All changes above are only part of the development branch for the next release.
 ================================================================================
 
+2020-12-18  Phelype Oleinik  <phelype.oleinik at latex-project.org>
+
+	* lthooks.dtx:
+	Preserve trailing slash in file hook name if the file name is empty (gh/464).
+
+	* ltfilehook.dtx:
+	Restore \CurrentFile(Path)(Used) after the file is input (gh/464).
+
 #########################
 # 2020-10-01 PL 3 Release
 #########################
diff --git a/base/ltfilehook.dtx b/base/ltfilehook.dtx
index bd690fcd..e5ea6bb2 100644
--- a/base/ltfilehook.dtx
+++ b/base/ltfilehook.dtx
@@ -31,8 +31,8 @@
 %%% From File: ltfilehook.dtx
 %
 %    \begin{macrocode}
-\providecommand\ltfilehookversion{v1.0d}
-\providecommand\ltfilehookdate{2020/11/24}
+\providecommand\ltfilehookversion{v1.0e}
+\providecommand\ltfilehookdate{2021/01/07}
 %    \end{macrocode}
 %
 %<*driver>
@@ -758,6 +758,8 @@
 %    the file name and extension are returned so that file hooks can
 %    refer to the file by their name only.  The path to the file is
 %    returned in \cs{CurrentFilePath}.
+%    \changes{v1.0e}{2021/01/07}{Restore \cs[no-index]{CurrentFile(Path)(Used)}
+%      after the input (gh/464)}
 %    \begin{macrocode}
   \edef\reserved at a{%
     \@expl@@@filehook at file@pop at assign@@nnnn
diff --git a/base/lthooks.dtx b/base/lthooks.dtx
index 765bf608..790de1a4 100644
--- a/base/lthooks.dtx
+++ b/base/lthooks.dtx
@@ -31,8 +31,8 @@
 %%% From File: lthooks.dtx
 %
 %    \begin{macrocode}
-\def\lthooksversion{v1.0g}
-\def\lthooksdate{2020/12/18}
+\def\lthooksversion{v1.0h}
+\def\lthooksdate{2021/01/07}
 %    \end{macrocode}
 %
 %<*driver>
@@ -2530,8 +2530,11 @@
 %    \end{macrocode}
 %   This function is always called after testing if the argument is a
 %   file hook with \cs{@@_if_file_hook:wTF}, so we can assume it has
-%   three parts, so we use \verb|#1/#2/#3 //| instead of just
+%   three parts (it is either \verb|file/before/...| or
+%   \verb|file/after/...|), so we use \verb|#1/#2/#3 //| instead of just
 %   \verb|#1 //| to prevent losing a slash if the file name is empty.
+%   \changes{v1.0h}{2021/01/07}{Assume hook name has at least three
+%     nonempty parts (gh/464)}
 %    \begin{macrocode}
 \cs_new:Npn \@@_strip_double_slash:w #1/#2/#3 // #4 \s_@@_mark
   {





More information about the latex3-commits mailing list.