[latex3-commits] [git/LaTeX3-latex3-latex2e] chk-end-module: Detect missing \IncludeInRelease{0000/00/00} (7247cbd3)

PhelypeOleinik phelype.oleinik at latex-project.org
Sun Feb 6 19:17:07 CET 2022


Repository : https://github.com/latex3/latex2e
On branch  : chk-end-module
Link       : https://github.com/latex3/latex2e/commit/7247cbd35bca9ac9f6c2f3242cb0b7c484b9d4cb

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

commit 7247cbd35bca9ac9f6c2f3242cb0b7c484b9d4cb
Author: PhelypeOleinik <phelype.oleinik at latex-project.org>
Date:   Sun Feb 6 15:17:07 2022 -0300

    Detect missing \IncludeInRelease{0000/00/00}


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

7247cbd35bca9ac9f6c2f3242cb0b7c484b9d4cb
 base/changes.txt |  5 +++++
 base/ltvers.dtx  | 21 +++++++++++++++++++--
 2 files changed, 24 insertions(+), 2 deletions(-)

diff --git a/base/changes.txt b/base/changes.txt
index 0768de67..0f25a8cf 100644
--- a/base/changes.txt
+++ b/base/changes.txt
@@ -7,6 +7,11 @@ completeness or accuracy and it contains some references to files that
 are not part of the distribution.
 ================================================================================
 
+2022-02-06  Phelype Oleinik  <phelype.oleinik at latex-project.org>
+
+	* ltvers.dtx (subsection{Declaring an all-new module}):
+	Detect missing \IncludeInRelease{0000/00/00} in a new module.
+
 2022-02-05  Joseph Wright  <Joseph.Wright at latex-project.org>
 
 	* ltkeys.dtx (section{Plain \TeX}):
diff --git a/base/ltvers.dtx b/base/ltvers.dtx
index 0bf753f2..fd72d911 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/06 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/06}
+%           {Detect missing \cs{IncludeInRelease}\texttt{\{0000/00/00\}} in module.}
 %    \begin{macrocode}
 \let\if at skipping@module\iffalse
 \def\@skipping at moduletrue{\let\if at skipping@module\iftrue}
@@ -394,7 +396,22 @@
     \@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{%
+  \begingroup
+    \long\def\in@@##1\EndModuleRelease{}%
+    \edef\in@@{\unexpanded\expandafter{\in@@#1{}{}\EndModuleRelease}}%
+  \expandafter\endgroup
+  \ifx\in@@\@empty
+  \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.