[latex3-commits] [git/LaTeX3-latex3-latex2e] gh888: Documentation, \changes and changes.txt (85ca79b4)
PhelypeOleinik
phelype.oleinik at latex-project.org
Fri Aug 19 05:01:06 CEST 2022
Repository : https://github.com/latex3/latex2e
On branch : gh888
Link : https://github.com/latex3/latex2e/commit/85ca79b4f6ba0e04632149babbbadffb729e6e1d
>---------------------------------------------------------------
commit 85ca79b4f6ba0e04632149babbbadffb729e6e1d
Author: PhelypeOleinik <phelype.oleinik at latex-project.org>
Date: Fri Aug 19 00:01:06 2022 -0300
Documentation, \changes and changes.txt
>---------------------------------------------------------------
85ca79b4f6ba0e04632149babbbadffb729e6e1d
base/changes.txt | 8 +++++++-
base/ltfilehook.dtx | 15 +++++++++++++--
2 files changed, 20 insertions(+), 3 deletions(-)
diff --git a/base/changes.txt b/base/changes.txt
index e02fdbac..be7a89d4 100644
--- a/base/changes.txt
+++ b/base/changes.txt
@@ -6,6 +6,12 @@ completeness or accuracy and it contains some references to files that
are not part of the distribution.
================================================================================
+2022-08-18 Phelype Oleinik <phelype.oleinik at latex-project.org>
+
+ * ltfilehook.dtx (subsection{Preventing a package from loading}):
+ Inhibit checking the loaded version when package is load-disabled,
+ and write to the .log (gh/888).
+
2022-08-13 Marcel Krüger <Marcel.Krueger at latex-project.org>
* ltluatex.dtx:
@@ -557,7 +563,7 @@ All changes above are only part of the development branch for the next release.
Use \msg_... instead of \__kernel_msg... commands for normalized
error and warning commands.
- * ltfilehooks.dtx, lthooks.dtx, ltpara.dtx:
+ * ltfilehook.dtx, lthooks.dtx, ltpara.dtx:
Internal changes to message names
* ltcmd.dtx:
diff --git a/base/ltfilehook.dtx b/base/ltfilehook.dtx
index 198198db..c8503de8 100644
--- a/base/ltfilehook.dtx
+++ b/base/ltfilehook.dtx
@@ -31,8 +31,8 @@
%%% From File: ltfilehook.dtx
%
% \begin{macrocode}
-\providecommand\ltfilehookversion{v1.0m}
-\providecommand\ltfilehookdate{2022/04/01}
+\providecommand\ltfilehookversion{v1.0n}
+\providecommand\ltfilehookdate{2022/08/18}
% \end{macrocode}
%
%<*driver>
@@ -1513,6 +1513,17 @@
\global\@namedef{@pkg-disable@#1.\@pkgextension}{#2}}
% \end{macrocode}
%
+% \changes{v1.0n}{2022/08/18}{Inhibit checking the loaded version when
+% package is load-disabled, and write to the .log (gh/888)}
+% Here we check if a control sequence named
+% \cs[no-index]{@pkg-disable@\meta{name}.sty} is defined, and if so
+% don't use the package loading code |#2|, but use the replacement
+% code stored in that control sequence, write something to the log,
+% and then prevent \cs{@onefilewithoptions} from sanity-checking the
+% requested package date (the \tn{expandafter} here triggers one in
+% \cs{@onefilewithoptions} that ends a conditional there, and the
+% \tn{@gobbletwo} removes the date checking code from the input
+% stream).
% \begin{macrocode}
\def\@disable at packageload@do#1#2{%
\@ifundefined{@pkg-disable@#1}%
More information about the latex3-commits
mailing list.