[latex3-commits] [git/LaTeX3-latex3-latex2e] lthooks: and here the updated one (e0cac8ff)
Frank Mittelbach
frank.mittelbach at latex-project.org
Wed Jul 15 17:02:39 CEST 2020
Repository : https://github.com/latex3/latex2e
On branch : lthooks
Link : https://github.com/latex3/latex2e/commit/e0cac8ffef371eda07c9addd8788e55ed91c2ceb
>---------------------------------------------------------------
commit e0cac8ffef371eda07c9addd8788e55ed91c2ceb
Author: Frank Mittelbach <frank.mittelbach at latex-project.org>
Date: Wed Jul 15 17:02:39 2020 +0200
and here the updated one
>---------------------------------------------------------------
e0cac8ffef371eda07c9addd8788e55ed91c2ceb
base/ltfilehook.dtx | 16 +++++++++-------
1 file changed, 9 insertions(+), 7 deletions(-)
diff --git a/base/ltfilehook.dtx b/base/ltfilehook.dtx
index 20261680..7c6be846 100644
--- a/base/ltfilehook.dtx
+++ b/base/ltfilehook.dtx
@@ -17,7 +17,7 @@
% for those people who are interested or want to report an issue.
%
% \begin{macrocode}
-\providecommand\ltfilehookversion{v0.6d}
+\providecommand\ltfilehookversion{v0.6e}
\providecommand\ltfilehookdate{2020/07/15}
% \end{macrocode}
%
@@ -490,7 +490,7 @@
% exist no hooks should be executed.
% \begin{macrocode}
\let\InputIfFileExists\@undefined
-\DeclareRobustCommand \InputIfFileExists[2]{%
+\DeclareRobustCommand \InputIfFileExists[3]{%
\@filehook at file@push
\IfFileExists{#1}%
{%
@@ -533,9 +533,9 @@
% \begin{macrocode}
\UseHook{file/after/\CurrentFile}%
\UseHook{file/after}%
- \@filehook at file@pop \@gobble
+ \@filehook at file@pop
}%
- {\@filehook at file@pop \@firstofone}%
+ {\@filehook at file@pop #3}%
}
% \end{macrocode}
% \end{macro}
@@ -699,8 +699,7 @@
\expandafter\let\csname\@currname.\@currext-h@@k\endcsname\@empty
\InputIfFileExists
{\@currname.\@currext}%
- {}%
- {\@missingfileerror\@currname\@currext}%
+ {%
%-----------------------------------------
\ifx\@currext\@pkgextension
\UseHook{package/before}%
@@ -713,6 +712,8 @@
\fi
\@filehook at file@push
%-----------------------------------------
+ }%
+ {\@missingfileerror\@currname\@currext}%
\expandafter\let\csname unprocessedoptions-\@currname.\@currext\endcsname
\@@unprocessedoptions
\csname\@currname.\@currext-h@@k\endcsname
@@ -725,7 +726,7 @@
\fi
\expandafter\let
\csname unprocessedoptions-\@currname.\@currext\endcsname
- \@undefined}%
+ \@undefined
%-----------------------------------------
\ifx\@currext\@pkgextension
\UseHook{package/after/\@currname}%
@@ -738,6 +739,7 @@
\fi
\@filehook at file@pop
%-----------------------------------------
+ }%
\@ifl at ter\@currext{#1}{#3}{}%
{\@latex at warning@no at line
{You have requested,\on at line,
More information about the latex3-commits
mailing list.