[latex3-commits] [git/LaTeX3-latex3-latex3] master: Drop l3hooks (e6ddebbd5)
Joseph Wright
joseph.wright at morningstar2.co.uk
Wed Aug 5 08:36:14 CEST 2020
Repository : https://github.com/latex3/latex3
On branch : master
Link : https://github.com/latex3/latex3/commit/e6ddebbd5984f56d0e56ecf3944007fb27bcfc20
>---------------------------------------------------------------
commit e6ddebbd5984f56d0e56ecf3944007fb27bcfc20
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Wed Aug 5 07:36:14 2020 +0100
Drop l3hooks
Now covered more fully in LaTeX2e's lthooks.
>---------------------------------------------------------------
e6ddebbd5984f56d0e56ecf3944007fb27bcfc20
l3trial/l3hooks/build.lua | 23 --
l3trial/l3hooks/l3hooks-code.tex | 56 ----
l3trial/l3hooks/l3hooks.dtx | 475 -------------------------------
l3trial/l3hooks/l3hooks.ins | 60 ----
l3trial/l3hooks/testfiles/m3hooks000.lvt | 19 --
l3trial/l3hooks/testfiles/m3hooks000.tlg | 6 -
l3trial/l3hooks/testfiles/m3hooks001.lvt | 95 -------
l3trial/l3hooks/testfiles/m3hooks001.tlg | 129 ---------
8 files changed, 863 deletions(-)
diff --git a/l3trial/l3hooks/build.lua b/l3trial/l3hooks/build.lua
deleted file mode 100644
index be6aeef9e..000000000
--- a/l3trial/l3hooks/build.lua
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/usr/bin/env texlua
-
--- Build script for LaTeX3 "l3hooks" files
-
--- Identify the bundle and module: the module may be empty in the case where
--- there is no subdivision
-bundle = "l3trial"
-module = "l3hooks"
-
--- Location of main directory: use Unix-style path separators
-maindir = "../.."
-
-typesetfiles = {"l3hooks.dtx", "l3hooks-code.tex"}
-
--- Load the common build code
-dofile(maindir .. "/build-config.lua")
-
--- Find and run the build system
-kpse.set_program_name("kpsewhich")
-if not release_date then
- dofile(kpse.lookup("l3build.lua"))
-end
-
diff --git a/l3trial/l3hooks/l3hooks-code.tex b/l3trial/l3hooks/l3hooks-code.tex
deleted file mode 100644
index b7baeebfc..000000000
--- a/l3trial/l3hooks/l3hooks-code.tex
+++ /dev/null
@@ -1,56 +0,0 @@
-\iffalse meta-comment
-
-File: l3hooks-code.tex
-
-Copyright (C) 2019 The LaTeX3 Project
-
-It may be distributed and/or modified under the conditions of the
-LaTeX Project Public License (LPPL), either version 1.3c of this
-license or (at your option) any later version. The latest version
-of this license is in the file
-
- https://www.latex-project.org/lppl.txt
-
-This file is part of the "l3trial bundle" (The Work in LPPL)
-and all files in that bundle must be distributed together.
-
-The released version of this bundle is available from CTAN.
-
------------------------------------------------------------------------
-
-The development version of the bundle can be found at
-
- https://github.com/latex3/latex3
-
-for those people who are interested.
-
-\fi
-
-\documentclass{l3doc}
-
-\begin{document}
-
-\makeatletter
-\let\DelayPrintIndex\PrintIndex
-\let\PrintIndex\@empty
-\makeatother
-
-\ExplSyntaxOn
-\clist_gput_right:Nn \g_docinput_clist
- {
- l3hooks.dtx ,
- }
-\ExplSyntaxOff
-
-\part{Implementation}
-
-\def\maketitle{}
-\EnableImplementation
-\DisableDocumentation
-\DocInputAgain
-
-\clearpage
-
-\DelayPrintIndex
-
-\end{document}
diff --git a/l3trial/l3hooks/l3hooks.dtx b/l3trial/l3hooks/l3hooks.dtx
deleted file mode 100644
index e03f68478..000000000
--- a/l3trial/l3hooks/l3hooks.dtx
+++ /dev/null
@@ -1,475 +0,0 @@
-% \iffalse meta-comment
-%
-%% File: l3hooks.dtx
-%
-% Copyright(C) 2019 The LaTeX3 Project
-%
-% It may be distributed and/or modified under the conditions of the
-% LaTeX Project Public License (LPPL), either version 1.3c of this
-% license or (at your option) any later version. The latest version
-% of this license is in the file
-%
-% http://www.latex-project.org/lppl.txt
-%
-% This file is part of the "l3trial bundle" (The Work in LPPL)
-% and all files in that bundle must be distributed together.
-%
-% -----------------------------------------------------------------------
-%
-% The development version of the bundle can be found at
-%
-% https://github.com/latex3/latex3
-%
-% for those people who are interested.
-%
-%<*driver|package>
-\RequirePackage{expl3}
-%</driver|package>
-%<*driver>
-\documentclass[full]{l3doc}
-\begin{document}
- \DocInput{\jobname.dtx}
-\end{document}
-%</driver>
-% \fi
-%
-% \title{^^A
-% The \pkg{l3hooks} package\\ Hook management^^A
-% }
-%
-% \author{^^A
-% The \LaTeX3 Project\thanks
-% {^^A
-% E-mail:
-% \href{mailto:latex-team at latex-project.org}
-% {latex-team at latex-project.org}^^A
-% }^^A
-% }
-%
-% \date{Released 2019-05-28}
-%
-% \maketitle
-%
-% \begin{documentation}
-%
-% \section{\pkg{l3hooks} documentation}
-%
-% Hooks are points in a code path where material may be injected by
-% \enquote{user} modules. In \pkg{l3hooks}, each hook entry is given a
-% description made up of the \meta{user} module and an optional sub-description.
-% Hook entries are managed on a global basis.
-%
-% \subsection{Repeated hooks}
-%
-% Repeated hooks may be inserted at multiple positions in a document run, for
-% example at the start of every section. These hooks are created on a per-module
-% basis, allowing multiple \enquote{provider} modules to use simple names for
-% their hooks.
-%
-% Entries may be added to all uses of a hook or strictly to the next use only.
-% This allows one-off effects to be achieved without having to test within
-% the \enquote{user} code.
-%
-% \begin{function}[added = 2019-06-06]
-% {\hook_new:nn}
-% \begin{syntax}
-% \cs{hook_new:nn} \Arg{module} \Arg{hook}
-% \end{syntax}
-% Creates a new \meta{hook} for the \meta{module} specified.
-% \end{function}
-%
-% \begin{function}[added = 2019-06-07]
-% {
-% \hook_gadd_all:nnnn, \hook_gadd_next:nnnn,
-% \hook_gadd_all:nnnnn, \hook_gadd_next:nnnnn,
-% }
-% \begin{syntax}
-% \cs{hook_gadd_all:nnnn} \Arg{provider} \Arg{hook} \Arg{user} \Arg{code}
-% \cs{hook_gadd_all:nnnnn} \Arg{provider} \Arg{hook} \Arg{user} \Arg{desc} \Arg{code}
-% \end{syntax}
-% Adds an entry to the \meta{hook} of the \meta{provider} module. At point
-% of use, this which will execute the \meta{code} from \meta{user} module. Each
-% entry must be unique, and thus repeated use of the
-% same \meta{user} (or \meta{user}/\meta{desc}) will overwrite older
-% entries. Entries are added at the \emph{end} of the hook.
-% \end{function}
-%
-% \begin{function}[added = 2019-06-03]{\hook_use:nn}
-% \begin{syntax}
-% \cs{hook_use:nn} \Arg{module} \Arg{hook}
-% \end{syntax}
-% Inserts the entries in the \meta{hook} for the \meta{module} at this
-% point in the source. The |next| hook entries are inserted \emph{after}
-% those for |all|. The |next| hook is cleared before it is used, thus it
-% is possible for a |next| entry to add to the following |next| hook.
-% \end{function}
-%
-% \begin{function}[added = 2019-06-07]{\hook_show:nn, \hook_log:nn}
-% \begin{syntax}
-% \cs{hook_show:nn} \Arg{module} \Arg{hook}
-% \end{syntax}
-% Displays entries in the \meta{hook} for the \meta{module} in the terminal
-% or writes them to the log, respectively.
-% \end{function}
-%
-% \subsection{Document-wide hooks}
-%
-% Document-wide hooks may be used only once in a document. These are therefore
-% not divided by module but rather have their own interfaces and a single
-% namespace for all hooks. Adding to a document-wide hook after it has been used
-% will raise an error.
-%
-% \begin{function}[added = 2019-06-06]{\hook_document_new:n}
-% \begin{syntax}
-% \cs{hook_document_new:n} \Arg{hook}
-% \end{syntax}
-% Creates a new \meta{hook} for use in a document-wide context. The
-% \meta{hook} may only be used once, after which point it is disable.
-% \end{function}
-%
-% \begin{function}[added = 2019-06-06]
-% {\hook_document_gadd:nnn, \hook_document_gadd:nnnn}
-% \begin{syntax}
-% \cs{hook_document_gadd:nnn} \Arg{hook} \Arg{user} \Arg{code}
-% \cs{hook_document_gadd:nnnn} \Arg{hook} \Arg{user} \Arg{desc} \Arg{code}
-% \end{syntax}
-% Pushes an entry to the document-wide \meta{hook}. As for repeated hooks,
-% the code may be named using just the \meta{user} module name or the
-% \meta{user}/\meta{desc} combination.
-% \end{function}
-%
-% \begin{function}[added = 2019-06-06]{\hook_document_use:n}
-% \begin{syntax}
-% \cs{hook_document_use:n} \Arg{hook}
-% \end{syntax}
-% Inserts the document-wide \meta{hook} at the current position. After this
-% point, the \meta{hook} may not be used again, nor may any material be
-% added to it.
-% \end{function}
-%
-% \begin{function}[added = 2019-06-07]
-% {\hook_document_show:nn, \hook_document_log:nn}
-% \begin{syntax}
-% \cs{hook_document_show:n}\Arg{hook}
-% \end{syntax}
-% Displays entries in the \meta{hook} for the \meta{module} in the terminal
-% or writes them to the log, respectively.
-% \end{function}
-%
-%
-% \end{documentation}
-%
-% \begin{implementation}
-%
-% \section{\pkg{l3hooks} implementation}
-%
-% \begin{macrocode}
-%<*initex|package>
-% \end{macrocode}
-%
-% \begin{macrocode}
-%<@@=hook>
-% \end{macrocode}
-%
-% \begin{macrocode}
-%<*package>
-\ProvidesExplPackage{l3hooks}{2019-05-28}{}
- {L3 Experimental hook management}
-%</package>
-% \end{macrocode}
-%
-% \subsection{Standard hooks}
-%
-% \begin{macro}{\hook_new:nn}
-% Simply create the structures at this point: nothing fancy.
-% \begin{macrocode}
-\cs_new_protected:Npn \hook_new:nn #1#2
- {
- \cs_if_free:cTF { g_@@_next_ #1 _ #2 _seq }
- {
- \prop_new:c { g_@@_all_ #1 _ #2 _prop }
- \prop_new:c { g_@@_next_ #1 _ #2 _prop }
- \seq_new:c { g_@@_all_ #1 _ #2 _seq }
- \seq_new:c { g_@@_next_ #1 _ #2 _seq }
- }
- {
- \__kernel_msg_error:nnnn { hooks }
- { hook-already-defined } {#1} {#2}
- }
- }
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\hook_gadd_all:nnnn, \hook_gadd_next:nnnn}
-% \begin{macro}{\hook_gadd_all:nnnnn, \hook_gadd_next:nnnnn}
-% \begin{macro}{\@@_gadd:nnnnn}
-% Pushing code to a hook requires that we store the order (a sequence) and
-% the code (as a prop). Where a module uses a description for hook content,
-% we simply join that onto the module name.
-% \begin{macrocode}
-\cs_new_protected:Npn \hook_gadd_all:nnnn #1#2#3#4
- { \@@_gadd:nnnnn { all } {#1} {#2} {#3} {#4} }
-\cs_new_protected:Npn \hook_gadd_next:nnnn #1#2#3#4
- { \@@_gadd:nnnnn { next } {#1} {#2} {#3} {#4} }
-\cs_new_protected:Npn \hook_gadd_all:nnnnn #1#2#3#4#5
- { \@@_gadd:nnnnn { all } {#1} {#2} { #3 / #4 } {#5} }
-\cs_new_protected:Npn \hook_gadd_next:nnnnn #1#2#3#4#5
- { \@@_gadd:nnnnn { next } {#1} {#2} { #3 / #4 } {#5} }
-\cs_new_protected:Npn \@@_gadd:nnnnn #1#2#3#4#5
- {
- \seq_if_exist:cTF { g_@@_next_ #2 _ #3 _seq }
- {
- \seq_gremove_all:cn { g_@@_ #1 _ #2 _ #3 _seq } {#4}
- \seq_gput_right:cn { g_@@_ #1 _ #2 _ #3 _seq } {#4}
- \prop_gput:cnn { g_@@_ #1 _ #2 _ #3 _prop } {#4} {#5}
- }
- {
- \__kernel_msg_error:nnnn { hooks }
- { unknown-hook } {#2} {#3}
- }
- }
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\hook_use:nn}
-% \begin{macro}{\@@_use:n}
-% To insert a hook, first we deal with the |all| hook data and then the
-% |next|. The latter is set up such that the insertions will be ready-to-go
-% with a cleared hook, to cover the case where repeated use of the |next|
-% hook is needed.
-% \begin{macrocode}
-\cs_new_protected:Npn \hook_use:nn #1#2
- {
- \cs_if_free:cTF { g_@@_next_ #1 _ #2 _seq }
- {
- \__kernel_msg_error:nnnn { hooks }
- { unknown-hook } {#1} {#2}
- }
- {
- \cs_set:Npn \@@_use:n ##1
- { \prop_item:cn { g_@@_all_ #1 _ #2 _prop } {##1} }
- \seq_map_function:cN { g_@@_all_ #1 _ #2 _seq } \@@_use:n
- \cs_set:Npn \@@_use:n ##1
- {
- \exp_not:f
- {
- \prop_item:cn { g_@@_next_ #1 _ #2 _prop }
- {##1}
- }
- }
- \use:x
- {
- \seq_gclear:c { g_@@_next_ #1 _ #2 _seq }
- \seq_map_function:cN { g_@@_next_ #1 _ #2 _seq }
- \@@_use:n
- }
- }
- }
-\cs_new:Npn \@@_use:n #1 { }
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-%
-% \subsection{Document-wide hooks}
-%
-% \begin{macro}{\hook_document_new:n}
-% A simpler version of the standard set up.
-% \begin{macrocode}
-\cs_new_protected:Npn \hook_document_new:n #1
- {
- \cs_if_free:cTF { g_@@_document_ #1 _seq }
- {
- \prop_new:c { g_@@_document_ #1 _prop }
- \seq_new:c { g_@@_document_ #1 _seq }
- \bool_new:c { g_@@_document_ #1 _used_bool }
- }
- {
- \__kernel_msg_error:nnn { hooks }
- { document-hook-already-defined } {#1}
- }
- }
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\hook_document_gadd:nnn}
-% \begin{macro}{\hook_document_gadd:nnnn}
-% \begin{macro}{\@@_document_gadd:nnn}
-% Much the same as the generic case, but with a check for the hook being
-% disabled.
-% \begin{macrocode}
-\cs_new_protected:Npn \hook_document_gadd:nnn #1#2#3
- { \@@_document_gadd:nnn {#1} {#2} {#3} }
-\cs_new_protected:Npn \hook_document_gadd:nnnn #1#2#3#4
- { \@@_document_gadd:nnn {#1} { #2 / #3 } {#4} }
-\cs_new_protected:Npn \@@_document_gadd:nnn #1#2#3
- {
- \seq_if_exist:cTF { g_@@_document_ #1 _seq }
- {
- \bool_if:cTF { g_@@_document_ #1 _used_bool }
- {
- \__kernel_msg_error:nnnn { hooks }
- { document-hook-used } {#1} { add~to }
- }
- {
- \seq_gremove_all:cn { g_@@_document_ #1 _seq } {#2}
- \seq_gput_right:cn { g_@@_document_ #1 _seq } {#2}
- \prop_gput:cnn { g_@@_document_ #1 _prop } {#2} {#3}
- }
- }
- {
- \__kernel_msg_error:nnn { hooks }
- { unknown-document-hook } {#1}
- }
- }
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\hook_document_use:n}
-% As this can only fire once, we have to check for it being disabled.
-% \begin{macrocode}
-\cs_new_protected:Npn \hook_document_use:n #1
- {
- \cs_if_free:cTF { g_@@_document_ #1 _seq }
- {
- \__kernel_msg_error:nnn { hooks }
- { unknown-document-hook } {#1}
- }
- {
- \bool_if:cTF { g_@@_document_ #1 _used_bool }
- {
- \__kernel_msg_error:nnnn { hooks }
- { document-hook-used } {#1} { use }
- }
- {
- \bool_gset_true:c { g_@@_document_ #1 _used_bool }
- \cs_set:Npn \@@_use:n ##1
- { \prop_item:cn { g_@@_document_ #1 _prop } {##1} }
- \seq_map_function:cN { g_@@_document_ #1 _seq } \@@_use:n
- }
- }
- }
-% \end{macrocode}
-% \end{macro}
-%
-% \subsection{Showing hooks}
-%
-% \begin{macro}{\hook_show:nn, \hook_log:nn}
-% \begin{macro}{\@@_show:Nnn}
-% \begin{macrocode}
-\cs_new_protected:Npn \hook_show:nn #1#2
- { \@@_show:Nnn \msg_show:nnxxxx {#1} {#2} }
-\cs_new_protected:Npn \hook_log:nn #1#2
- { \@@_show:Nnn \msg_log:nnxxxx {#1} {#2} }
-\cs_new_protected:Npn \@@_show:Nnn #1#2#3
- {
- \cs_if_free:cTF { g_@@_next_ #2 _ #3 _seq }
- {
- \__kernel_msg_error:nnnn { hooks }
- { unknown-hook } {#2} {#3}
- }
- {
- #1 { LaTeX/hooks } { show-hook }
- {#2} {#3}
- {
- \seq_map_function:cN { g_@@_all_ #2 _ #3 _seq } \msg_show_item:n
- }
- {
- \seq_map_function:cN { g_@@_next_ #2 _ #3 _seq } \msg_show_item:n
- }
- }
- }
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-%
-% \begin{macro}{\hook_document_show:n, \hook_document_log:n}
-% \begin{macro}{\@@_document_show:Nn}
-% \begin{macrocode}
-\cs_new_protected:Npn \hook_document_show:n #1
- { \@@_document_show:Nn \msg_show:nnxxxx {#1} }
-\cs_new_protected:Npn \hook_document_log:n #1
- { \@@_document_show:Nn \msg_log:nnxxxx {#1} }
-\cs_new_protected:Npn \@@_document_show:Nn #1#2
- {
- \cs_if_free:cTF { g_@@_document_ #2 _seq }
- {
- \__kernel_msg_error:nnn { hooks }
- { unknown-document-hook } {#2}
- }
- {
- #1 { LaTeX/hooks } { show-document-hook }
- {#2}
- { \seq_map_function:cN { g_@@_document_ #2 _seq } \msg_show_item:n }
- { } { }
- }
- }
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-%
-% \subsection{Messages}
-%
-% \begin{macrocode}
-\__kernel_msg_new:nnnn { hooks } { document-hook-already-defined }
- { Hook~'#1'~already~defined. }
- {
- LaTeX~has~been~asked~to~create~a~new~document-wide~hook~'#1'~
- but~this~name~has~already~been~used~elsewhere.
- }
-\__kernel_msg_new:nnnn { hooks } { hook-already-defined }
- { Hook~'#1/#2'~already~defined. }
- {
- LaTeX~has~been~asked~to~create~a~new~hook~'#2'~for~module~'#1'~
- but~this~name~has~already~been~used~elsewhere.
- }
-\__kernel_msg_new:nnnn { hooks } { document-hook-used }
- { Document~hook~'#1'~has~already~been~used. }
- {
- LaTeX~has~been~asked~to~ #2 ~document-wide~hook~'#1'~
- but~this~hook~has~already~been~used.
- }
-\__kernel_msg_new:nnnn { hooks } { unknown-document-hook }
- { Unknown~document-wide~hook~'#1'. }
- {
- LaTeX~has~been~asked~insert~a~document-wide~hook~'#1'~
- but~this~name~has~not~been~defined.
- }
-\__kernel_msg_new:nnnn { hooks } { unknown-hook }
- { Unknown~hook~'#1/#2'. }
- {
- LaTeX~has~been~asked~insert~a~hook~'#2'~for~module~'#1'~
- but~this~name~has~not~been~defined.
- }
-% \end{macrocode}
-%
-% \begin{macrocode}
-\__kernel_msg_new:nnn { hooks } { show-document-hook }
- {
- Document~hook~'#1'~
- \tl_if_empty:nTF {#2}
- { has~no~entries \\ >~ . }
- { contains~entries~: #2 . }
- }
-\__kernel_msg_new:nnn { hooks } { show-hook }
- {
- Module~#1~hook~'#2'~
- \tl_if_empty:nTF {#3}
- { has~no~entries~for~all~uses~ }
- { contains~entries~for~all~uses: #3 \\ }
- \tl_if_empty:nTF {#4}
- { and~has~no~entries~for~the~next~use \\ >~ . }
- { and~has~the~following~entries~for~the~next~use: #4 . }
- }
-% \end{macrocode}
-%
-% \begin{macrocode}
-%</initex|package>
-% \end{macrocode}
-%
-% \end{implementation}
-%
-% \PrintIndex
diff --git a/l3trial/l3hooks/l3hooks.ins b/l3trial/l3hooks/l3hooks.ins
deleted file mode 100644
index 0d4f003a5..000000000
--- a/l3trial/l3hooks/l3hooks.ins
+++ /dev/null
@@ -1,60 +0,0 @@
-\iffalse meta-comment
-
-File: l3hooks.ins
-
-Copyright (C) 2019 The LaTeX3 Project
-
-It may be distributed and/or modified under the conditions of the
-LaTeX Project Public License (LPPL), either version 1.3c of this
-license or (at your option) any later version. The latest version
-of this license is in the file
-
- http://www.latex-project.org/lppl.txt
-
-This file is part of the "l3trial bundle" (The Work in LPPL)
-and all files in that bundle must be distributed together.
-
------------------------------------------------------------------------
-
-The development version of the bundle can be found at
-
- https://github.com/latex3/latex3
-
-for those people who are interested.
-
------------------------------------------------------------------------
-
-Any modification of this file should ensure that the copyright and
-license information is placed in the derived files.
-
-\fi
-
-\input l3docstrip.tex
-\askforoverwritefalse
-
-\preamble
-
-Copyright (C) 2019 The LaTeX3 Project
-
-It may be distributed and/or modified under the conditions of
-the LaTeX Project Public License (LPPL), either version 1.3c of
-this license or (at your option) any later version. The latest
-version of this license is in the file:
-
- http://www.latex-project.org/lppl.txt
-
-This file is part of the "l3hooks bundle" (The Work in LPPL)
-and all files in that bundle must be distributed together.
-
-\endpreamble
-% stop docstrip adding \endinput
-\postamble
-\endpostamble
-
-\keepsilent
-
-\generate{\file{l3hooks.sty}
- {\from{l3hooks.dtx}{package}}
-}
-
-\endbatchfile
diff --git a/l3trial/l3hooks/testfiles/m3hooks000.lvt b/l3trial/l3hooks/testfiles/m3hooks000.lvt
deleted file mode 100644
index f5b392a0c..000000000
--- a/l3trial/l3hooks/testfiles/m3hooks000.lvt
+++ /dev/null
@@ -1,19 +0,0 @@
-%
-% Copyright (C) 2019 The LaTeX3 Project
-%
-
-\documentclass{minimal}
-\input{regression-test}
-
-% Test the package loads properly. To avoid having to regenerate the
-% file whenever expl3 is changed, preload it.
-
-\RequirePackage[enable-debug]{expl3}
-\ExplSyntaxOn
-\debug_on:n { check-declarations , deprecation }
-\ExplSyntaxOff
-
-\START
-\AUTHOR{Joseph Wright}
-\RequirePackage{l3hooks}
-\END
diff --git a/l3trial/l3hooks/testfiles/m3hooks000.tlg b/l3trial/l3hooks/testfiles/m3hooks000.tlg
deleted file mode 100644
index 6dd85a618..000000000
--- a/l3trial/l3hooks/testfiles/m3hooks000.tlg
+++ /dev/null
@@ -1,6 +0,0 @@
-This is a generated file for the LaTeX (2e + expl3) validation system.
-Don't change this file in any respect.
-Author: Joseph Wright
-(l3hooks.sty
-Package: l3hooks ....-..-.. L3 Experimental hook management
-)
diff --git a/l3trial/l3hooks/testfiles/m3hooks001.lvt b/l3trial/l3hooks/testfiles/m3hooks001.lvt
deleted file mode 100644
index 643315b5b..000000000
--- a/l3trial/l3hooks/testfiles/m3hooks001.lvt
+++ /dev/null
@@ -1,95 +0,0 @@
-%
-% Copyright (C) 2019 The LaTeX3 Project
-%
-
-\documentclass{minimal}
-\input{regression-test}
-
-% Test the package loads properly. To avoid having to regenerate the
-% file whenever expl3 is changed, preload it.
-
-\RequirePackage[enable-debug]{expl3}
-\ExplSyntaxOn
-\debug_on:n { check-declarations , deprecation }
-\ExplSyntaxOff
-
-\START
-\AUTHOR{Joseph Wright}
-\RequirePackage{l3hooks}
-
-\ExplSyntaxOn
-
-\TEST { New~hook }
- {
- \hook_new:nn { mypkg } { hook-a }
- \hook_new:nn { mypkg } { hook-b }
- \hook_document_new:n { dochook }
- }
-
-\TEST { New~hook~errors }
- {
- \hook_new:nn { mypkg } { hook-a }
- \hook_new:nn { mypkg } { hook-b }
- \hook_document_new:n { dochook }
- }
-
-\TEST { Push~to~hook }
- {
- \hook_gadd_all:nnnn { mypkg } { hook-a }
- { otherpkg } { \tl_show:n { otherpkg } }
- \hook_gadd_next:nnnn { mypkg } { hook-a }
- { otherpkg } { \tl_show:n { once } }
- \hook_gadd_all:nnnnn { mypkg } { hook-b }
- { otherpkg } { sub-a } { \tl_show:n { not~this } }
- \hook_gadd_all:nnnnn { mypkg } { hook-b }
- { otherpkg } { sub-a } { \tl_show:n { that } }
- \hook_gadd_all:nnnnn { mypkg } { hook-b }
- { otherpkg } { sub-b } { \tl_show:n { the~other } }
- \hook_document_gadd:nnn { dochook }
- { otherpkg } { \tl_show:n { dochook } }
- \hook_document_gadd:nnnn { dochook }
- { thirdpkg } { a } { \tl_show:n { dochook-a } }
- \hook_document_gadd:nnnn { dochook }
- { thirdpkg } { b } { \tl_show:n { dochook-b } }
- }
-
-\TEST { Push~to~hook~errors }
- {
- \hook_gadd_all:nnnn { mypkg } { hook-c }
- { otherpkg } { \tl_show:n { otherpkg } }
- \hook_gadd_next:nnnn { mypkg } { hook-c }
- { otherpkg } { \tl_show:n { once } }
- \hook_document_gadd:nnn { nothook }
- { otherpkg } { \tl_show:n { nothook } }
- }
-
-\TEST { Using~hook }
- {
- \hook_use:nn { mypkg } { hook-a }
- \hook_use:nn { mypkg } { hook-a }
- \hook_use:nn { mypkg } { hook-b }
- \hook_use:nn { mypkg } { hook-b }
- \hook_document_use:n { dochook }
- }
-
-\TEST { Hook~use~errors }
- {
- \hook_use:nn { mypkg } { hook-c }
- \hook_document_use:n { dochook }
- }
-
-\TEST { Show~hooks }
- {
- \OMIT
- \hook_gadd_next:nnnn { mypkg } { hook-a } { newpkg } { foo }
- \TIMO
- \hook_show:nn { mypkg } { hook-a }
- \hook_show:nn { mypkg } { hook-b }
- \OMIT
- \hook_document_new:n { demo }
- \hook_document_gadd:nnn { demo } { entry } { foo }
- \TIMO
- \hook_document_show:n { demo }
- }
-
-\END
\ No newline at end of file
diff --git a/l3trial/l3hooks/testfiles/m3hooks001.tlg b/l3trial/l3hooks/testfiles/m3hooks001.tlg
deleted file mode 100644
index bb6d8c14b..000000000
--- a/l3trial/l3hooks/testfiles/m3hooks001.tlg
+++ /dev/null
@@ -1,129 +0,0 @@
-This is a generated file for the LaTeX (2e + expl3) validation system.
-Don't change this file in any respect.
-Author: Joseph Wright
-(l3hooks.sty
-Package: l3hooks ....-..-.. L3 Experimental hook management
-)
-============================================================
-TEST 1: New hook
-============================================================
-============================================================
-============================================================
-TEST 2: New hook errors
-============================================================
-! LaTeX3 Error: Hook 'mypkg/hook-a' already defined.
-For immediate help type H <return>.
- ...
-l. ... }
-LaTeX has been asked to create a new hook 'hook-a' for module 'mypkg' but this
-name has already been used elsewhere.
-! LaTeX3 Error: Hook 'mypkg/hook-b' already defined.
-For immediate help type H <return>.
- ...
-l. ... }
-LaTeX has been asked to create a new hook 'hook-b' for module 'mypkg' but this
-name has already been used elsewhere.
-! LaTeX3 Error: Hook 'dochook' already defined.
-For immediate help type H <return>.
- ...
-l. ... }
-LaTeX has been asked to create a new document-wide hook 'dochook' but this
-name has already been used elsewhere.
-============================================================
-============================================================
-TEST 3: Push to hook
-============================================================
-============================================================
-============================================================
-TEST 4: Push to hook errors
-============================================================
-! LaTeX3 Error: Unknown hook 'mypkg/hook-c'.
-For immediate help type H <return>.
- ...
-l. ... }
-LaTeX has been asked insert a hook 'hook-c' for module 'mypkg' but this name
-has not been defined.
-! LaTeX3 Error: Unknown hook 'mypkg/hook-c'.
-For immediate help type H <return>.
- ...
-l. ... }
-LaTeX has been asked insert a hook 'hook-c' for module 'mypkg' but this name
-has not been defined.
-! LaTeX3 Error: Unknown document-wide hook 'nothook'.
-For immediate help type H <return>.
- ...
-l. ... }
-LaTeX has been asked insert a document-wide hook 'nothook' but this name has
-not been defined.
-============================================================
-============================================================
-TEST 5: Using hook
-============================================================
-> otherpkg.
-<recently read> }
-l. ... }
-> once.
-<recently read> }
-l. ... }
-> otherpkg.
-<recently read> }
-l. ... }
-> that.
-<recently read> }
-l. ... }
-> the other.
-<recently read> }
-l. ... }
-> that.
-<recently read> }
-l. ... }
-> the other.
-<recently read> }
-l. ... }
-> dochook.
-<recently read> }
-l. ... }
-> dochook-a.
-<recently read> }
-l. ... }
-> dochook-b.
-<recently read> }
-l. ... }
-============================================================
-============================================================
-TEST 6: Hook use errors
-============================================================
-! LaTeX3 Error: Unknown hook 'mypkg/hook-c'.
-For immediate help type H <return>.
- ...
-l. ... }
-LaTeX has been asked insert a hook 'hook-c' for module 'mypkg' but this name
-has not been defined.
-! LaTeX3 Error: Document hook 'dochook' has already been used.
-For immediate help type H <return>.
- ...
-l. ... }
-LaTeX has been asked to use document-wide hook 'dochook' but this hook has
-already been used.
-============================================================
-============================================================
-TEST 7: Show hooks
-============================================================
-Module mypkg hook 'hook-a' contains entries for all uses:
-> {otherpkg}
-and has the following entries for the next use:
-> {newpkg}.
-<recently read> }
-l. ... }
-Module mypkg hook 'hook-b' contains entries for all uses:
-> {otherpkg/sub-a}
-> {otherpkg/sub-b}
-and has no entries for the next use
-> .
-<recently read> }
-l. ... }
-Document hook 'demo' contains entries :
-> {entry}.
-<recently read> }
-l. ... }
-============================================================
More information about the latex3-commits
mailing list.