[latex3-commits] [git/LaTeX3-latex3-latex2e] gh606: Initialise, then make one-time, then use, then clear (89e358c1)
PhelypeOleinik
phelype.oleinik at latex-project.org
Mon Sep 6 03:16:18 CEST 2021
Repository : https://github.com/latex3/latex2e
On branch : gh606
Link : https://github.com/latex3/latex2e/commit/89e358c1cadfba01cab9a10c45fdcc47ce8d654a
>---------------------------------------------------------------
commit 89e358c1cadfba01cab9a10c45fdcc47ce8d654a
Author: PhelypeOleinik <phelype.oleinik at latex-project.org>
Date: Sun Sep 5 22:16:18 2021 -0300
Initialise, then make one-time, then use, then clear
Initialisation has to be done before making the hook one-time, otherwise
the sorting routine goes off the tracks with the changed `reversed` tl.
The hook is then directly used with `\@@_use_initialized:n` so that it
doesn't try initialisation again.
>---------------------------------------------------------------
89e358c1cadfba01cab9a10c45fdcc47ce8d654a
base/lthooks.dtx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/base/lthooks.dtx b/base/lthooks.dtx
index 290f6f18..e4e9be20 100644
--- a/base/lthooks.dtx
+++ b/base/lthooks.dtx
@@ -4818,8 +4818,9 @@
{
\@@_if_execute_immediately:nF {#1}
{
+ \@@_preamble_hook:n {#1}
\@@_use_once_set:n {#1}
- \hook_use:n {#1}
+ \@@_use_initialized:n {#1}
\@@_use_once_clear:n {#1}
}
}
More information about the latex3-commits
mailing list.