[latex3-commits] [git/LaTeX3-latex3-latex2e] lthooks: drop most lthooks package loads (c43f564f)

Frank Mittelbach frank.mittelbach at latex-project.org
Thu Jul 16 00:52:52 CEST 2020


Repository : https://github.com/latex3/latex2e
On branch  : lthooks
Link       : https://github.com/latex3/latex2e/commit/c43f564f3231159d5d1b5c0b11b35efa8b959b48

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

commit c43f564f3231159d5d1b5c0b11b35efa8b959b48
Author: Frank Mittelbach <frank.mittelbach at latex-project.org>
Date:   Thu Jul 16 00:52:52 2020 +0200

    drop most lthooks package loads


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

c43f564f3231159d5d1b5c0b11b35efa8b959b48
 base/testfiles-lthooks/filehook-005.lvt |  1 -
 base/testfiles-lthooks/filehook-005.tlg | 10 ++++
 base/testfiles-lthooks/lthooks-000.lvt  |  5 +-
 base/testfiles-lthooks/lthooks-000.tlg  |  9 ----
 base/testfiles-lthooks/lthooks-001.lvt  |  2 +-
 base/testfiles-lthooks/lthooks-002.lvt  |  2 +-
 base/testfiles-lthooks/lthooks-003.lvt  |  2 +-
 base/testfiles-lthooks/lthooks-004.lvt  |  2 +-
 base/testfiles-lthooks/lthooks-005.lvt  |  2 +-
 base/testfiles-lthooks/lthooks-006.lvt  |  2 +-
 base/testfiles-lthooks/lthooks-007.lvt  |  2 +-
 base/testfiles-lthooks/lthooks-008.lvt  |  2 +-
 base/testfiles-lthooks/lthooks-009.lvt  |  5 +-
 base/testfiles-lthooks/lthooks-010.lvt  |  1 -
 base/testfiles-lthooks/lthooks-011.lvt  |  2 +-
 base/testfiles-lthooks/lthooks-012.lvt  |  1 -
 base/testfiles-lthooks/lthooks-013.lvt  |  2 +-
 base/testfiles-lthooks/lthooks-013.tlg  | 82 +++++++++++++++++++++++++++++++++
 base/testfiles-lthooks/lthooks-016.lvt  |  2 +-
 base/testfiles-lthooks/lthooks-017.lvt  |  2 +-
 base/testfiles-lthooks/lthooks-018.lvt  |  2 +-
 base/testfiles-lthooks/lthooks-019.lvt  |  2 +-
 base/testfiles-lthooks/lthooks-020.lvt  |  1 -
 base/testfiles-lthooks/lthooks-021.lvt  |  2 +-
 base/testfiles-lthooks/lthooks-022.lvt  |  1 -
 base/testfiles-lthooks/lthooks-023.lvt  |  1 -
 base/testfiles-lthooks/lthooks-024.lvt  |  1 -
 base/testfiles-lthooks/shipout-000.lvt  |  3 --
 base/testfiles-lthooks/shipout-002.lvt  |  5 +-
 base/testfiles-lthooks/shipout-004.lvt  |  4 +-
 base/testfiles-lthooks/shipout-005.lvt  |  2 -
 31 files changed, 113 insertions(+), 49 deletions(-)

diff --git a/base/testfiles-lthooks/filehook-005.lvt b/base/testfiles-lthooks/filehook-005.lvt
index fd90634d..282d1f3b 100644
--- a/base/testfiles-lthooks/filehook-005.lvt
+++ b/base/testfiles-lthooks/filehook-005.lvt
@@ -33,7 +33,6 @@
   }
 \ExplSyntaxOff
 
-\RequirePackage{lthooks}
 \documentclass{article}
 
 \input{regression-test}
diff --git a/base/testfiles-lthooks/filehook-005.tlg b/base/testfiles-lthooks/filehook-005.tlg
index 834cc8fc..77d406c9 100644
--- a/base/testfiles-lthooks/filehook-005.tlg
+++ b/base/testfiles-lthooks/filehook-005.tlg
@@ -1,5 +1,15 @@
 This is a generated file for the l3build validation system.
 Don't change this file in any respect.
+(../l3backend-dvips.def
+File: l3backend-dvips.def ....-..-.. L3 backend support: dvips
+\l__pdf_internal_box=\box...
+\g__pdf_backend_object_int=\count...
+\l__pdf_backend_content_box=\box...
+\l__pdf_backend_model_box=\box...
+\g__pdf_backend_annotation_int=\count...
+\g__pdf_backend_link_int=\count...
+\g__pdf_backend_link_sf_int=\count...
+)
 No file filehook-005.aux.
 LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line ....
 LaTeX Font Info:    ... okay on input line ....
diff --git a/base/testfiles-lthooks/lthooks-000.lvt b/base/testfiles-lthooks/lthooks-000.lvt
index eca25665..9ac1df10 100644
--- a/base/testfiles-lthooks/lthooks-000.lvt
+++ b/base/testfiles-lthooks/lthooks-000.lvt
@@ -11,9 +11,8 @@
 
 \START
 
-\usepackage
-  [debug,debug-shipout]
-  {lthooks}
+\DebugHookOn
+\DebugShipoutOn
 
 \begin{document}
 
diff --git a/base/testfiles-lthooks/lthooks-000.tlg b/base/testfiles-lthooks/lthooks-000.tlg
index 39ebbdfb..62224a89 100644
--- a/base/testfiles-lthooks/lthooks-000.tlg
+++ b/base/testfiles-lthooks/lthooks-000.tlg
@@ -1,14 +1,5 @@
 This is a generated file for the l3build validation system.
 Don't change this file in any respect.
-(lthooks.sty
-(../xparse.sty
-Package: xparse ....-..-.. L3 Experimental document command parser
-(../xparse-generic.tex))
-Package: lthooks ....-..-.. vv... Hook management interface for LaTeX2e
-(etoolbox-ltx.sty
-Package: etoolbox-ltx ....-..-.. v... e-TeX tools for LaTeX (JAW) ---- PATCHED version for lthooks!!!!
-\etb at tempcnta=\count...
-) (filehook-ltx.sty))
 Update code for hook 'begindocument' on input line ...:
 Code labels for sorting:
  l3backend-dvips
diff --git a/base/testfiles-lthooks/lthooks-001.lvt b/base/testfiles-lthooks/lthooks-001.lvt
index 6c4390ec..8eb54738 100644
--- a/base/testfiles-lthooks/lthooks-001.lvt
+++ b/base/testfiles-lthooks/lthooks-001.lvt
@@ -7,7 +7,7 @@
 
 \input{regression-test}
 
-\usepackage[debug]{lthooks}
+\DebugHookOn
 
 \START
 
diff --git a/base/testfiles-lthooks/lthooks-002.lvt b/base/testfiles-lthooks/lthooks-002.lvt
index 3b69b8d8..0a9f92fc 100644
--- a/base/testfiles-lthooks/lthooks-002.lvt
+++ b/base/testfiles-lthooks/lthooks-002.lvt
@@ -7,7 +7,7 @@
 
 \input{regression-test}
 
-\usepackage[debug]{lthooks}
+\DebugHookOn
 
 \START
 
diff --git a/base/testfiles-lthooks/lthooks-003.lvt b/base/testfiles-lthooks/lthooks-003.lvt
index e0e82841..0550d267 100644
--- a/base/testfiles-lthooks/lthooks-003.lvt
+++ b/base/testfiles-lthooks/lthooks-003.lvt
@@ -15,7 +15,7 @@
 
 \input{regression-test}
 
-\usepackage[debug]{lthooks}
+\DebugHookOn
 
 \START
 
diff --git a/base/testfiles-lthooks/lthooks-004.lvt b/base/testfiles-lthooks/lthooks-004.lvt
index f8d9fff0..41858ff4 100644
--- a/base/testfiles-lthooks/lthooks-004.lvt
+++ b/base/testfiles-lthooks/lthooks-004.lvt
@@ -9,7 +9,7 @@
 
 \input{regression-test}
 
-\usepackage[debug]{lthooks}
+\DebugHookOn
 
 \START
 
diff --git a/base/testfiles-lthooks/lthooks-005.lvt b/base/testfiles-lthooks/lthooks-005.lvt
index b06c435f..c89a8a7e 100644
--- a/base/testfiles-lthooks/lthooks-005.lvt
+++ b/base/testfiles-lthooks/lthooks-005.lvt
@@ -9,7 +9,7 @@
 
 \input{regression-test}
 
-\usepackage[debug]{lthooks}
+\DebugHookOn
 
 \START
 
diff --git a/base/testfiles-lthooks/lthooks-006.lvt b/base/testfiles-lthooks/lthooks-006.lvt
index 462e1a25..9c0747b5 100644
--- a/base/testfiles-lthooks/lthooks-006.lvt
+++ b/base/testfiles-lthooks/lthooks-006.lvt
@@ -9,7 +9,7 @@
 
 \input{regression-test}
 
-\usepackage[debug]{lthooks}
+\DebugHookOn
 
 \START
 
diff --git a/base/testfiles-lthooks/lthooks-007.lvt b/base/testfiles-lthooks/lthooks-007.lvt
index c66e8015..f53beabb 100644
--- a/base/testfiles-lthooks/lthooks-007.lvt
+++ b/base/testfiles-lthooks/lthooks-007.lvt
@@ -9,7 +9,7 @@
 
 \input{regression-test}
 
-\usepackage[debug]{lthooks}
+\DebugHookOn
 
 \START
 
diff --git a/base/testfiles-lthooks/lthooks-008.lvt b/base/testfiles-lthooks/lthooks-008.lvt
index dca1e462..8a009855 100644
--- a/base/testfiles-lthooks/lthooks-008.lvt
+++ b/base/testfiles-lthooks/lthooks-008.lvt
@@ -11,7 +11,7 @@
 
 \AtEndDocument{\typeout{legacy before hook code loaded}}
 
-\usepackage[debug]{lthooks}
+\DebugHookOn
 
 \AtEndDocument{\typeout{legacy after hook code loaded code}}
 
diff --git a/base/testfiles-lthooks/lthooks-009.lvt b/base/testfiles-lthooks/lthooks-009.lvt
index 5c9c1af7..c4aa2adc 100644
--- a/base/testfiles-lthooks/lthooks-009.lvt
+++ b/base/testfiles-lthooks/lthooks-009.lvt
@@ -9,9 +9,8 @@
 
 \input{regression-test}
 
-\usepackage[debug,debug-shipout]{lthooks}
-
-
+\DebugHookOn
+\DebugShipoutOn
 
 \START
 
diff --git a/base/testfiles-lthooks/lthooks-010.lvt b/base/testfiles-lthooks/lthooks-010.lvt
index eca3d8e5..96d67878 100644
--- a/base/testfiles-lthooks/lthooks-010.lvt
+++ b/base/testfiles-lthooks/lthooks-010.lvt
@@ -9,7 +9,6 @@
 
 \input{regression-test}
 
-\usepackage{lthooks}
 
 
 \START
diff --git a/base/testfiles-lthooks/lthooks-011.lvt b/base/testfiles-lthooks/lthooks-011.lvt
index 4020ca7d..c515bbf6 100644
--- a/base/testfiles-lthooks/lthooks-011.lvt
+++ b/base/testfiles-lthooks/lthooks-011.lvt
@@ -7,7 +7,7 @@
 
 \input{regression-test}
 
-\usepackage[debug]{lthooks}
+\DebugHookOn
 
 \START
 
diff --git a/base/testfiles-lthooks/lthooks-012.lvt b/base/testfiles-lthooks/lthooks-012.lvt
index 197868ae..cd36d7a8 100644
--- a/base/testfiles-lthooks/lthooks-012.lvt
+++ b/base/testfiles-lthooks/lthooks-012.lvt
@@ -9,7 +9,6 @@
 
 \input{regression-test}
 
-\usepackage{lthooks}
 
 
 \ExplSyntaxOn
diff --git a/base/testfiles-lthooks/lthooks-013.lvt b/base/testfiles-lthooks/lthooks-013.lvt
index 8ef9003e..6a7acfdd 100644
--- a/base/testfiles-lthooks/lthooks-013.lvt
+++ b/base/testfiles-lthooks/lthooks-013.lvt
@@ -9,7 +9,7 @@
 
 \input{regression-test}
 
-\usepackage{lthooks}
+\DebugHookOn
 
 \START
 
diff --git a/base/testfiles-lthooks/lthooks-013.tlg b/base/testfiles-lthooks/lthooks-013.tlg
index 6610597c..7bb95d71 100644
--- a/base/testfiles-lthooks/lthooks-013.tlg
+++ b/base/testfiles-lthooks/lthooks-013.tlg
@@ -1,5 +1,10 @@
 This is a generated file for the l3build validation system.
 Don't change this file in any respect.
+**** Add to hook env/itemize/begin (top-level) on input line ... <- \typeout {begin env itemize}
+**** Add to hook env/itemize/end (top-level) on input line ... <- \typeout {end env itemize}
+**** Add to hook env/itemize/begin (foo) on input line ... <- \typeout {env itemize first}
+**** Add to hook file/foo (top-level) on input line ... <- \typeout {file foo}
+**** Add to hook file/bar (top-level) on input line ... <- \typeout {file bar}
 The hook 'env/itemize/begin':
  Code chunks:
     top-level -> \typeout {begin env itemize}
@@ -31,9 +36,86 @@ The hook 'file/foo':
 The hook 'env/itemize/began':
  Hook is not declared!
  The hook is empty.
+**** Add to undeclared hook baz (top-level) on input line ... <- missing decl
 The hook 'bar':
  Hook is not declared!
  The hook is empty.
+Update code for hook 'begindocument' on input line ...:
+Code labels for sorting:
+ l3backend-dvips
+Data structure for label rules:
+ l3backend-dvips = 0 -> 
+Handled code for l3backend-dvips
+Update code for hook 'enddocument' on input line ...:
+Update code for hook 'rmfamily' on input line ...:
+Update code for hook 'sffamily' on input line ...:
+Update code for hook 'ttfamily' on input line ...:
+Update code for hook 'defaultfamily' on input line ...:
+Update code for hook 'documentclass' on input line ...:
+Code labels for sorting:
+ legacy
+Data structure for label rules:
+ legacy = 0 -> 
+Handled code for legacy
+Update code for hook 'begindocument/end' on input line ...:
+Update code for hook 'enddocument/afterlastpage' on input line ...:
+Update code for hook 'enddocument/afteraux' on input line ...:
+Update code for hook 'enddocument/info' on input line ...:
+  normal rule kernel/warnings|kernel/filelist: > found
+Code labels for sorting:
+ kernel/filelist and kernel/warnings
+Data structure for label rules:
+ kernel/filelist = 0 -> kernel/warnings
+ kernel/warnings = 1 -> 
+Handled code for kernel/filelist
+Handled code for kernel/warnings
+Update code for hook 'enddocument/end' on input line ...:
+Update code for hook 'shipout/before' on input line ...:
+Update code for hook 'shipout/foreground' on input line ...:
+Update code for hook 'shipout/background' on input line ...:
+Update code for hook 'shipout/firstpage' on input line ...:
+Code labels for sorting:
+ l3backend-dvips
+Data structure for label rules:
+ l3backend-dvips = 0 -> 
+Handled code for l3backend-dvips
+Update code for hook 'shipout/lastpage' on input line ...:
+Update code for hook 'env/itemize/begin' on input line ...:
+  normal rule top-level|foo: > found
+Code labels for sorting:
+ top-level and foo
+Data structure for label rules:
+ top-level = 1 -> 
+ foo = 0 -> top-level
+Handled code for foo
+Handled code for top-level
+Update code for hook 'env/itemize/end' on input line ...:
+Code labels for sorting:
+ top-level
+Data structure for label rules:
+ top-level = 0 -> 
+Handled code for top-level
+Update code for hook 'file/foo' on input line ...:
+Code labels for sorting:
+ top-level
+Data structure for label rules:
+ top-level = 0 -> 
+Handled code for top-level
+Update code for hook 'file/bar' on input line ...:
+Code labels for sorting:
+ top-level
+Data structure for label rules:
+ top-level = 0 -> 
+Handled code for top-level
+All initialized (non-empty) hooks:
+ begindocument -> \cs_if_exist:cT {ver at color.sty}{\cs_set_protected:Npn \__color_backend_pickup:N ##1{\exp_args:NV \tl_if_head_is_space:nTF \current at color {\tl_set:Nx ##1{{spot}{\exp_after:wN \use:n \current at color \c_space_tl 1}}}{\exp_last_unbraced:Nx \__color_backend_pickup:w {\current at color }\s__color_stop ##1}}\cs_new_protected:Npn \__color_backend_pickup:w ##1 ##2\s__color_stop ##3{\tl_set:Nn ##3{{##1}{##2}}}}\cs_new_eq:NN \__graphics_backend_getbb_eps:n \graphics_read_bb:n \g__hook_begindocument_next_code_tl  
+ documentclass -> \ifx \@normalsize \@undefined \let \@normalsize \normalsize \fi \g__hook_documentclass_next_code_tl  
+ enddocument/info -> \@dofilelist \@enddocument at kernel@warnings \g__hook_enddocument/info_next_code_tl  
+ shipout/firstpage -> \bool_lazy_and:nnT {\cs_if_exist_p:N \g__kernel_backend_header_bool }{\g__kernel_backend_header_bool }{\__kernel_backend_literal:n {header=l3backend-dvips.pro}}\g__hook_shipout/firstpage_next_code_tl  
+ env/itemize/begin -> \typeout {env itemize first}\typeout {begin env itemize}\g__hook_env/itemize/begin_next_code_tl  
+ env/itemize/end -> \typeout {end env itemize}\g__hook_env/itemize/end_next_code_tl  
+ file/foo -> \typeout {file foo}\g__hook_file/foo_next_code_tl  
+ file/bar -> \typeout {file bar}\g__hook_file/bar_next_code_tl  
 No file lthooks-013.aux.
 LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line ....
 LaTeX Font Info:    ... okay on input line ....
diff --git a/base/testfiles-lthooks/lthooks-016.lvt b/base/testfiles-lthooks/lthooks-016.lvt
index d53f3719..dd4cd774 100644
--- a/base/testfiles-lthooks/lthooks-016.lvt
+++ b/base/testfiles-lthooks/lthooks-016.lvt
@@ -9,7 +9,7 @@
 
 \input{regression-test}
 
-\usepackage[debug]{lthooks}
+\DebugHookOn
 
 \START
 
diff --git a/base/testfiles-lthooks/lthooks-017.lvt b/base/testfiles-lthooks/lthooks-017.lvt
index 20b5b1a4..6ef4a806 100644
--- a/base/testfiles-lthooks/lthooks-017.lvt
+++ b/base/testfiles-lthooks/lthooks-017.lvt
@@ -9,7 +9,7 @@
 
 \input{regression-test}
 
-\usepackage[debug]{lthooks}
+\DebugHookOn
 
 \START
 
diff --git a/base/testfiles-lthooks/lthooks-018.lvt b/base/testfiles-lthooks/lthooks-018.lvt
index d41c186b..9f86fb77 100644
--- a/base/testfiles-lthooks/lthooks-018.lvt
+++ b/base/testfiles-lthooks/lthooks-018.lvt
@@ -9,7 +9,7 @@
 
 \input{regression-test}
 
-\usepackage[debug]{lthooks}
+\DebugHookOn
 
 \begin{document}
 
diff --git a/base/testfiles-lthooks/lthooks-019.lvt b/base/testfiles-lthooks/lthooks-019.lvt
index 7a970f4a..ef9b754b 100644
--- a/base/testfiles-lthooks/lthooks-019.lvt
+++ b/base/testfiles-lthooks/lthooks-019.lvt
@@ -7,7 +7,7 @@
 
 \input{regression-test}
 
-\usepackage[debug]{lthooks}
+\DebugHookOn
 
 \START
 
diff --git a/base/testfiles-lthooks/lthooks-020.lvt b/base/testfiles-lthooks/lthooks-020.lvt
index de4dfb61..b018b82b 100644
--- a/base/testfiles-lthooks/lthooks-020.lvt
+++ b/base/testfiles-lthooks/lthooks-020.lvt
@@ -10,7 +10,6 @@
 
 \input{regression-test}
 
-\usepackage{lthooks}
 
 \START
 
diff --git a/base/testfiles-lthooks/lthooks-021.lvt b/base/testfiles-lthooks/lthooks-021.lvt
index 84e612bc..2dd9a8ae 100644
--- a/base/testfiles-lthooks/lthooks-021.lvt
+++ b/base/testfiles-lthooks/lthooks-021.lvt
@@ -9,7 +9,7 @@
 
 \input{regression-test}
 
-\usepackage[debug]{lthooks}
+\DebughookOn
 
 \begin{document}
 
diff --git a/base/testfiles-lthooks/lthooks-022.lvt b/base/testfiles-lthooks/lthooks-022.lvt
index 03ff6d2c..78c2b7eb 100644
--- a/base/testfiles-lthooks/lthooks-022.lvt
+++ b/base/testfiles-lthooks/lthooks-022.lvt
@@ -7,7 +7,6 @@
 
 \input{regression-test}
 
-\usepackage{lthooks}
 
 \START
 \NewHook{foo}
diff --git a/base/testfiles-lthooks/lthooks-023.lvt b/base/testfiles-lthooks/lthooks-023.lvt
index 186dbd83..0c336198 100644
--- a/base/testfiles-lthooks/lthooks-023.lvt
+++ b/base/testfiles-lthooks/lthooks-023.lvt
@@ -7,7 +7,6 @@
 
 \input{regression-test}
 
-\usepackage{lthooks}
 
 \START
 
diff --git a/base/testfiles-lthooks/lthooks-024.lvt b/base/testfiles-lthooks/lthooks-024.lvt
index 782fb651..3154af46 100644
--- a/base/testfiles-lthooks/lthooks-024.lvt
+++ b/base/testfiles-lthooks/lthooks-024.lvt
@@ -7,7 +7,6 @@
 
 \input{regression-test}
 
-\usepackage{lthooks}
 
 \START
 
diff --git a/base/testfiles-lthooks/shipout-000.lvt b/base/testfiles-lthooks/shipout-000.lvt
index f5688d7d..5804c7b7 100644
--- a/base/testfiles-lthooks/shipout-000.lvt
+++ b/base/testfiles-lthooks/shipout-000.lvt
@@ -9,9 +9,6 @@
 
 \input{regression-test}
 
-\usepackage
-%    [debug]
-    {lthooks}
 
 \START
 
diff --git a/base/testfiles-lthooks/shipout-002.lvt b/base/testfiles-lthooks/shipout-002.lvt
index 2b807fce..479fc489 100644
--- a/base/testfiles-lthooks/shipout-002.lvt
+++ b/base/testfiles-lthooks/shipout-002.lvt
@@ -9,10 +9,7 @@
 
 \input{regression-test}
 
-\usepackage
-    [debug-shipout]
-    {lthooks}
-
+\DebugShipoutOn
 
 \showoutput
 
diff --git a/base/testfiles-lthooks/shipout-004.lvt b/base/testfiles-lthooks/shipout-004.lvt
index 620e4fcc..01f6eeb3 100644
--- a/base/testfiles-lthooks/shipout-004.lvt
+++ b/base/testfiles-lthooks/shipout-004.lvt
@@ -9,9 +9,7 @@
 
 \input{regression-test}
 
-\usepackage
-    [debug-shipout]
-    {lthooks}
+\DebugShipoutOn
 
 
 \AtEndDvi{\typeout{Last page?}}
diff --git a/base/testfiles-lthooks/shipout-005.lvt b/base/testfiles-lthooks/shipout-005.lvt
index 8ee1c24f..4062d700 100644
--- a/base/testfiles-lthooks/shipout-005.lvt
+++ b/base/testfiles-lthooks/shipout-005.lvt
@@ -9,8 +9,6 @@
 
 \input{regression-test}
 
-\usepackage
-    {lthooks}
 
 
 \showoutput





More information about the latex3-commits mailing list.