[latex3-commits] [git/LaTeX3-latex3-latex2e] firstaid: take out drafts for filhook and srclfile (07b8d318)

Frank Mittelbach frank.mittelbach at latex-project.org
Sat Sep 26 14:21:25 CEST 2020


Repository : https://github.com/latex3/latex2e
On branch  : firstaid
Link       : https://github.com/latex3/latex2e/commit/07b8d318dbc711287fa29618afff9b30ecbc77b8

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

commit 07b8d318dbc711287fa29618afff9b30ecbc77b8
Author: Frank Mittelbach <frank.mittelbach at latex-project.org>
Date:   Sat Sep 26 14:21:25 2020 +0200

    take out drafts for filhook and srclfile


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

07b8d318dbc711287fa29618afff9b30ecbc77b8
 base/format.ins     |   3 -
 base/ltfilehook.dtx | 182 +---------------------------------------------------
 2 files changed, 2 insertions(+), 183 deletions(-)

diff --git a/base/format.ins b/base/format.ins
index bad21deb..8796d16d 100644
--- a/base/format.ins
+++ b/base/format.ins
@@ -239,9 +239,6 @@ the system are in the document `cfgguide.tex'.
 
 \generate{\file{structuredlog.sty}{\from{ltfilehook.dtx}{structuredlog}}}
 
-%drafts to get removed
-\generate{\file{filehook-ltx.sty}{\from{ltfilehook.dtx}{filehook-draft}}}
-\generate{\file{srclfile-ltx.sty}{\from{ltfilehook.dtx}{scrlfile-draft}}}
 
 
 
diff --git a/base/ltfilehook.dtx b/base/ltfilehook.dtx
index 26dba351..24ba88f5 100644
--- a/base/ltfilehook.dtx
+++ b/base/ltfilehook.dtx
@@ -31,8 +31,8 @@
 %%% From File: ltfilehook.dtx
 %
 %    \begin{macrocode}
-\providecommand\ltfilehookversion{v1.0a}
-\providecommand\ltfilehookdate{2020/08/30}
+\providecommand\ltfilehookversion{v1.0b}
+\providecommand\ltfilehookdate{2020/09/26}
 %    \end{macrocode}
 %
 %<*driver>
@@ -1532,184 +1532,6 @@
 %    \end{macrocode}
 %
 %
-% \subsection{Package \pkg{filehook} emulation}
-%
-%    This is a partial implementation of the  \pkg{filehook}
-%    interfaces. It is only meant for guidance in case that package
-%    gets updated to use the hook management.
-%
-%    Not implemented are:
-%\begin{verbatim}
-%  \AtBeginOfFiles
-%  \AtEndOfFiles
-%  \AtBeginOfInputs
-%  \AtEndOfInputs
-%  \AtBeginOfInputFile
-%  \AtEndOfInputFile
-%\end{verbatim}
-%
-%    \begin{macrocode}
-%<*filehook-draft>
-%    \end{macrocode}
-%
-%    \begin{macrocode}
-\newcommand\AtBeginOfEveryFile [1]
-  {\AddToHook{file/before}{#1}}
-\newcommand\AtEndOfEveryFile [1]
-  {\AddToHook{file/after}{#1}}
-%    \end{macrocode}
-%    
-%    \begin{macrocode}
-\newcommand\AtBeginOfIncludes [1]
-  {\AddToHook{include/before}{#1}}
-\newcommand\AtEndOfIncludes [1]
-  {\AddToHook{include/end}{#1}}
-\newcommand\AfterIncludes [1]
-  {\AddToHook{include/after}{#1}}
-%    \end{macrocode}
-%    
-%    \begin{macrocode}
-\newcommand\AtBeginOfPackages [1]
-  {\AddToHook{package/before}{#1}}
-\newcommand\AtEndOfPackages [1]
-  {\AddToHook{package/after}{#1}}
-%    \end{macrocode}
-%    
-%    \begin{macrocode}
-\newcommand\AtBeginOfClasses [1]
-  {\AddToHook{class/before}{#1}}
-\newcommand\AtEndOfClasses [1]
-  {\AddToHook{class/after}{#1}}
-%    \end{macrocode}
-%
-%    For normal files we drop the \texttt{.tex} extension for now:
-%    \begin{macrocode}
-\newcommand\AtBeginOfFile [2]
-  {\AddToHook{file/before/#1}{#2}}
-\newcommand\AtEndOfFile [2]
-  {\AddToHook{file/after/#1}{#2}}
-%    \end{macrocode}
-%    
-%    \begin{macrocode}
-\DeclareDocumentCommand \AtBeginOfPackageFile {smm}
-   {\IfBooleanTF{#1}%
-     {\@ifpackageloaded{#2}%
-         {#3}%
-         {\AddToHook{package/before/#2}{#3}}}%
-     {\AddToHook{package/before/#2}{#3}}%
-   }
-\DeclareDocumentCommand \AtEndOfPackageFile {smm}
-   {\IfBooleanTF{#1}%
-     {\@ifpackageloaded{#2}%
-         {#3}%
-         {\AddToHook{package/after/#2}{#3}}}%
-     {\AddToHook{package/after/#2}{#3}}%
-   }
-%    \end{macrocode}
-%
-%    Are the * forms here of any use? I know they are use 3--4 times
-%    on CTAN but I wonder if those are real or mistaken usages.  
-%    \begin{macrocode}
-\DeclareDocumentCommand \AtBeginOfClassFile {smm}
-   {\IfBooleanTF{#1}%
-     {\@ifclassloaded{#2}%
-         {#3}%
-         {\AddToHook{class/before/#2}{#3}}}%
-     {\AddToHook{class/before/#2}{#3}}%
-   }
-\DeclareDocumentCommand \AtEndOfClassFile {smm}
-   {\IfBooleanTF{#1}%
-     {\@ifclassloaded{#2}%
-         {#3}%
-         {\AddToHook{class/after/#2}{#3}}}%
-     {\AddToHook{class/after/#2}{#3}}%
-   }
-%    \end{macrocode}
-%    
-%    \begin{macrocode}
-\newcommand\AtBeginOfIncludeFile [2]
-  {\AddToHook{include/before/#1}{#2}}
-\newcommand\AtEndOfIncludeFile [2]
-  {\AddToHook{include/end/#1}{#2}}
-\newcommand\AfterIncludeFile [2]
-  {\AddToHook{include/after/#1}{#2}}
-%    \end{macrocode}
-%
-%
-%    This is missing some interfaces so disabling the package isn't
-%    really correct, but then this code above is not supposed to stay
-%    like this anyway.
-%    \begin{macrocode}
-\expandafter\let\csname ver at filehook.sty\endcsname\fmtversion
-\@namedef {ver at filehook.sty}{2020/10/01}
-%    \end{macrocode}
-%
-%
-%    \begin{macrocode}
-%</filehook-draft>
-%    \end{macrocode}
-%
-%
-%
-%
-% \subsection{Package \pkg{scrlfile} emulation}
-%
-%    This is a partial implementation of the  \pkg{scrlfile}
-%    interfaces. It is only meant for guidance in case that package
-%    gets updated to use the hook management.
-%
-%    \begin{macrocode}
-%<*scrlfile-draft>
-%    \end{macrocode}
-%
-%    I think this is roughly correct (using the \texttt{file/...}
-%    hooks rather than the class or package hooks at least for the
-%    \cs{After...} commands but it needs some further verification.
-%
-%    The star and plus variants haven't been implemented so far, this
-%    is only a rough draft.
-%    \begin{macrocode}
-\newcommand\BeforeClass[2]
-  {\AddToHook{file/before/#1.cls}{#2}}
-\newcommand\AfterClass [2]
-  {\AddToHook{file/after/#1.cls}{#2}}
-\newcommand\AfterAtEndOfClass [2]
-  {\AddToHook{class/after/#1}{#2}}
-%    \end{macrocode}
-%
-%    \begin{macrocode}
-\newcommand\BeforePackage [2]
-  {\AddToHook{package/before/#1.sty}{#2}}
-\newcommand\AfterPackage [2]
-  {\AddToHook{file/after/#1.sty}{#2}}
-\newcommand\AfterEndOfPackage [2]
-  {\AddToHook{package/after/#1}{#2}}
-%    \end{macrocode}
-%
-%    \begin{macrocode}
-\newcommand\BeforeFile [2]
-  {%
-  \typeout{BeforeFile: #1!!!}%
-   \AddToHook{file/before/#1}{#2}}
-\newcommand\AfterFile [2]
-  {%
-    \typeout{AfterFile: #1!!!}%
-    \AddToHook{file/after/#1}{#2}}
-%    \end{macrocode}
-%
-%    This is missing some interfaces so disabling the package isn't
-%    really correct, but then this code above is not supposed to stay
-%    like this anyway.
-%    \begin{macrocode}
-\expandafter\let\csname ver at scrlfile.sty\endcsname\fmtversion
-\@namedef {ver at scrlfile.sty}{2020/10/01}
-%    \end{macrocode}
-%
-%    \begin{macrocode}
-%</scrlfile-draft>
-%    \end{macrocode}
-%
-%
 %
 %    \Finale
 %





More information about the latex3-commits mailing list.