[latex3-commits] [git/LaTeX3-latex3-latex2e] IfBlank: Detect missing \IncludeInRelease{0000/00/00} in a module (3a2cda1f)
PhelypeOleinik
phelype.oleinik at latex-project.org
Mon Feb 28 19:26:17 CET 2022
Repository : https://github.com/latex3/latex2e
On branch : IfBlank
Link : https://github.com/latex3/latex2e/commit/3a2cda1f4868a0c5f66b32b340fe8d1d61215b3b
>---------------------------------------------------------------
commit 3a2cda1f4868a0c5f66b32b340fe8d1d61215b3b
Author: PhelypeOleinik <phelype.oleinik at latex-project.org>
Date: Mon Feb 28 15:26:17 2022 -0300
Detect missing \IncludeInRelease{0000/00/00} in a module
>---------------------------------------------------------------
3a2cda1f4868a0c5f66b32b340fe8d1d61215b3b
base/changes.txt | 16 +++++++++++++---
base/latexrelease.dtx | 4 +++-
base/ltvers.dtx | 18 ++++++++++++++++--
3 files changed, 32 insertions(+), 6 deletions(-)
diff --git a/base/changes.txt b/base/changes.txt
index 7ee92423..be7ab3cb 100644
--- a/base/changes.txt
+++ b/base/changes.txt
@@ -6,6 +6,16 @@ completeness or accuracy and it contains some references to files that
are not part of the distribution.
================================================================================
+2022-02-28 Phelype Oleinik <phelype.oleinik at latex-project.org>
+
+ * ltvers.dtx (subsection{Declaring an all-new module}):
+ Detect a missing \IncludeInRelease{0000/00/00} in a new module.
+
+2022-02-28 Phelype Oleinik <phelype.oleinik at latex-project.org>
+
+ * latexrelease.dtx, ltexpl.dtx, ltcmd.dtx:
+ Move most make-harmless redefinitions to right after ltexpl.dtx.
+
2022-02-19 Frank Mittelbach <Frank.Mittelbach at latex-project.org>
* ltcmd.dtx (subsection{User functions}):
@@ -61,7 +71,7 @@ are not part of the distribution.
* ltmeta.dtx:
Adapted bundle name to new name `LaTeX-lab'
-2021-12-31 Phelype Oleinik <phelype.oleinik at latex-project.org>
+2021-12-31 Phelype Oleinik <phelype.oleinik at latex-project.org>
* ltcmd.dtx (subsubsection{Showing the definition of a command}):
Make \ShowCommand stop for interaction with ltcmd (gh/739)
@@ -191,7 +201,7 @@ All changes above are only part of the development branch for the next release.
# 2021-11-15 Release
#########################
-2021-10-20 Phelype Oleinik <phelype.oleinik at latex-project.org>
+2021-10-20 Phelype Oleinik <phelype.oleinik at latex-project.org>
* ltcmdhooks.dtx (subsubsection{Patching by expansion and redefinition}):
Fix patching of commands that contain parameter tokens (gh/697)
@@ -229,7 +239,7 @@ All changes above are only part of the development branch for the next release.
* classes.dtx, doc.dtx, makeindx.dtx, preload.dtx, slides.dtx, array.dtx
Removed old references to latex.tex or latex.dtx (gh/685)
-2021-09-28 Phelype Oleinik <phelype.oleinik at latex-project.org>
+2021-09-28 Phelype Oleinik <phelype.oleinik at latex-project.org>
* ltcmdhooks.dtx (subsection{Patching commands}):
Make patching of commands with generic cmd hooks a global operation (gh/674)
diff --git a/base/latexrelease.dtx b/base/latexrelease.dtx
index 3765cee7..d3e63729 100644
--- a/base/latexrelease.dtx
+++ b/base/latexrelease.dtx
@@ -40,7 +40,7 @@
%<*latexrelease>
% \fi
% \ProvidesFile{latexrelease.dtx}
- [2022/02/23 v1.0o LaTeX release emulation and tests
+ [2022/02/28 v1.0o LaTeX release emulation and tests
(including releases up to \latexreleaseversion)]
% \iffalse
%</latexrelease>
@@ -753,6 +753,8 @@ of this package available from CTAN}
% Now a one-off for |ltcmd.dtx|: we need to make \cs{NewDocumentCommand}
% not complain on an already existing command, but it has to be done
% after \cs{NewDocumentCommand}, so this is separate:
+% \changes{v1.0o}{2022/02/28}
+% {Move most redefinitions to right after ltexpl.dtx}
% \begin{macrocode}
\cs_gset_protected:Npn \latexrelease at postltcmd
{
diff --git a/base/ltvers.dtx b/base/ltvers.dtx
index 4193975b..415f4ed6 100644
--- a/base/ltvers.dtx
+++ b/base/ltvers.dtx
@@ -33,7 +33,7 @@
%<*driver>
% \fi
\ProvidesFile{ltvers.dtx}
- [2021/08/10 v1.1h LaTeX Kernel (Version Info)]
+ [2022/02/28 v1.1i LaTeX Kernel (Version Info)]
% \iffalse
\documentclass{ltxdoc}
\GetFileInfo{ltvers.dtx}
@@ -365,6 +365,8 @@
% \changes{v1.1f}{2021/03/18}{Added \cs{NewModuleRelease}.}
% \changes{v1.1g}{2021/04/16}
% {\cs{NewModuleRelease} with the same arguments as \cs{IncludeInRelease}.}
+% \changes{v1.1i}{2022/02/28}
+% {Detect a missing \cs{IncludeInRelease}\texttt{\{0000/00/00\}}.}
% \begin{macrocode}
\let\if at skipping@module\iffalse
\def\@skipping at moduletrue{\let\if at skipping@module\iftrue}
@@ -394,7 +396,19 @@
\@skipping at moduletrue
\expandafter\new at module@skip
\fi}
-\long\def\new at module@skip#1\IncludeInRelease{\IncludeInRelease}
+\long\def\new at module@skip#1\IncludeInRelease{%
+ \long\def\reserved at a##1\EndModuleRelease{}%
+ \if\relax\detokenize\expandafter{\reserved at a#1{}{}\EndModuleRelease}\relax
+ \else
+ \@latex at error{Missing mandatory \string\IncludeInRelease{0000/00/00}}\@ehc
+ \expandafter\@secondoftwo
+ \fi
+ \@gobble
+ {\@expandtwoargs\IncludeInRelease
+ {0000/00/00}{\new at modulename}%
+ {ERROR! Emergency recovery}%
+ #1}%
+ \IncludeInRelease}
\def\EndModuleRelease{%
\ifx\new at modulename\@empty
\@latex at error{Extra \string\EndModuleRelease.}\@eha
More information about the latex3-commits
mailing list.