[latex3-commits] [git/LaTeX3-latex3-latex2e] gh356: Copy the change for gh/356 in ltfiles.dtx over to ltfilehook.dtx fofr gh/121 (b663ee4d)
Johannes Braams
texniek at braams.xs4all.nl
Fri Jul 17 00:00:27 CEST 2020
Repository : https://github.com/latex3/latex2e
On branch : gh356
Link : https://github.com/latex3/latex2e/commit/b663ee4dd1fd5b56df907e549b3598cb17fbab9a
>---------------------------------------------------------------
commit b663ee4dd1fd5b56df907e549b3598cb17fbab9a
Author: Johannes Braams <texniek at braams.xs4all.nl>
Date: Fri Jul 17 00:00:27 2020 +0200
Copy the change for gh/356 in ltfiles.dtx over to ltfilehook.dtx fofr gh/121
>---------------------------------------------------------------
b663ee4dd1fd5b56df907e549b3598cb17fbab9a
base/ltfilehook.dtx | 19 +++++++++++++------
1 file changed, 13 insertions(+), 6 deletions(-)
diff --git a/base/ltfilehook.dtx b/base/ltfilehook.dtx
index 33776a2f..427614c4 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.6f}
+\providecommand\ltfilehookversion{v0.6g}
\providecommand\ltfilehookdate{2020/07/16}
% \end{macrocode}
%
@@ -544,15 +544,22 @@
% Now we just hook into \cs{set at curr@file} to add
% \cs{@filehook at set@curr at file} at the end, after \cs{@curr at file} is
% set.
+% \changes{0.69}{2020-70-16}}{When the argument is empty return an
+% empty macro instead of \texttt{csnameendcsname} (gh.121)}
% \begin{macrocode}
\def\set at curr@file#1{%
\begingroup
- \escapechar\m at ne
- \xdef\@curr at file{%
- \expandafter\expandafter\expandafter\unquote at name
- \expandafter\expandafter\expandafter{%
- \expandafter\string
+ \def\reserved at a{#1}%
+ \ifx\reserved at a\@empty
+ \xdef\@curr at file{}%
+ \else
+ \escapechar\m at ne
+ \xdef\@curr at file{%
+ \expandafter\expandafter\expandafter\unquote at name
+ \expandafter\expandafter\expandafter{%
+ \expandafter\string
\csname\@firstofone#1\@empty\endcsname}}%
+ \fi
\endgroup
\@filehook at set@curr at file{\@curr at file}%
}
More information about the latex3-commits
mailing list.