[latex3-commits] [latex3/latex3] main: Correct placement of debug switching (996ca537f)
github at latex-project.org
github at latex-project.org
Tue Feb 20 08:16:57 CET 2024
Repository : https://github.com/latex3/latex3
On branch : main
Link : https://github.com/latex3/latex3/commit/996ca537fec61ba59158d11608fce8669319db7f
>---------------------------------------------------------------
commit 996ca537fec61ba59158d11608fce8669319db7f
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Tue Feb 20 07:16:57 2024 +0000
Correct placement of debug switching
>---------------------------------------------------------------
996ca537fec61ba59158d11608fce8669319db7f
l3kernel/l3sys.dtx | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/l3kernel/l3sys.dtx b/l3kernel/l3sys.dtx
index 4662df727..1fe5607de 100644
--- a/l3kernel/l3sys.dtx
+++ b/l3kernel/l3sys.dtx
@@ -700,12 +700,15 @@
{ \__kernel_sys_configuration_load:n { l3debug } }
\bool_gset_true:N \g_@@_debug_bool
}
-\cs_if_exist:NT \@onefilewithoptions
+\cs_if_exist:NT \@expl at finalise@setup@@@@
{
- \AtBeginDocument
+ \tl_gput_right:Nn \@expl at finalise@setup@@@@
{
- \cs_gset_protected:Npn \sys_load_debug:
- { \msg_error:nn { sys } { load-debug-in-preamble } }
+ \AtBeginDocument
+ {
+ \cs_gset_protected:Npn \sys_load_debug:
+ { \msg_error:nn { sys } { load-debug-in-preamble } }
+ }
}
}
% \end{macrocode}
More information about the latex3-commits
mailing list.