[latex3-commits] [latex3/latex3] main: Use gset in l3debug (ccd16aaa4)
github at latex-project.org
github at latex-project.org
Mon Feb 19 21:49:09 CET 2024
Repository : https://github.com/latex3/latex3
On branch : main
Link : https://github.com/latex3/latex3/commit/ccd16aaa4ea174f7920bb1d4563d849781399eb2
>---------------------------------------------------------------
commit ccd16aaa4ea174f7920bb1d4563d849781399eb2
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Mon Feb 19 20:49:09 2024 +0000
Use gset in l3debug
>---------------------------------------------------------------
ccd16aaa4ea174f7920bb1d4563d849781399eb2
l3kernel/l3debug.dtx | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/l3kernel/l3debug.dtx b/l3kernel/l3debug.dtx
index 9aa392ed5..06eaed5ff 100644
--- a/l3kernel/l3debug.dtx
+++ b/l3kernel/l3debug.dtx
@@ -105,7 +105,7 @@
%
% \begin{macro}{\debug_on:n, \debug_off:n, \@@_all_on:, \@@_all_off:}
% \begin{macrocode}
-\cs_set_protected:Npn \debug_on:n #1
+\cs_gset_protected:Npn \debug_on:n #1
{
\exp_args:No \clist_map_inline:nn { \tl_to_str:n {#1} }
{
@@ -113,7 +113,7 @@
{ \msg_error:nnn { debug } { debug } {##1} }
}
}
-\cs_set_protected:Npn \debug_off:n #1
+\cs_gset_protected:Npn \debug_off:n #1
{
\exp_args:No \clist_map_inline:nn { \tl_to_str:n {#1} }
{
@@ -154,12 +154,12 @@
% \enquote{non-suspended} version of \cs{@@_suspended:T}.
% \begin{macrocode}
\tl_new:N \l_@@_suspended_tl { }
-\cs_set_protected:Npn \debug_suspend:
+\cs_gset_protected:Npn \debug_suspend:
{
\tl_put_right:Nn \l_@@_suspended_tl { . }
\cs_set_eq:NN \@@_suspended:T \use:n
}
-\cs_set_protected:Npn \debug_resume:
+\cs_gset_protected:Npn \debug_resume:
{
\__kernel_tl_set:Nx \l_@@_suspended_tl
{ \tl_tail:N \l_@@_suspended_tl }
More information about the latex3-commits
mailing list.