[latex3-commits] [latex3/latex2e] mk/taggingsocket: Make plug definitions non-protected in ltsockets (485170851)

github at latex-project.org github at latex-project.org
Sun Oct 27 12:59:01 CET 2024


Repository : https://github.com/latex3/latex2e
On branch  : mk/taggingsocket
Link       : https://github.com/latex3/latex2e/commit/48517085136bfbda075ab7417646542ef300faac

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

commit 48517085136bfbda075ab7417646542ef300faac
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date:   Sun Oct 27 12:59:01 2024 +0100

    Make plug definitions non-protected in ltsockets


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

48517085136bfbda075ab7417646542ef300faac
 base/changes.txt   | 3 ++-
 base/ltsockets.dtx | 5 +++--
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/base/changes.txt b/base/changes.txt
index c8434e2b0..c4b71ccdf 100644
--- a/base/changes.txt
+++ b/base/changes.txt
@@ -11,7 +11,8 @@ not part of the distribution.
 	Adapt two argument tagging sockets to preserve second argument when the socket is disabled.
 	Add expandable versions of tagging socket use commands.
 	* ltsocket.dtx
-	Add expandable versions of \socket_use_expandable:n
+	Add expandable versions of \socket_use_expandable:n.
+	Make internal plug definitions non-protected to allow expandable use.
 
 2024-10-26  Yukai Chou <muzimuzhi at gmail.com>
 	* ltcounts.dtx (subsection{Environment Counter Macros}):
diff --git a/base/ltsockets.dtx b/base/ltsockets.dtx
index ccedec867..ffeef1e12 100644
--- a/base/ltsockets.dtx
+++ b/base/ltsockets.dtx
@@ -836,6 +836,7 @@
 %  
 %  
 %  \begin{macro}{\socket_new_plug:nnn,\socket_set_plug:nnn}
+%    \changes{v0.9b}{2024/10/27}{Make plug definition non-protected}
 %    
 %    Declaring a code for a socket is just making a definition, taking
 %    the number of arguments from the saved int.
@@ -850,7 +851,7 @@
           {
             \cs_generate_from_arg_count:cNnn
               { @@_#1_plug_#2:w }
-              \cs_new_protected:Npn
+              \cs_new:Npn
               { \int_use:c { c_@@_#1_args_int } }
               {#3}
 %    \end{macrocode}
@@ -878,7 +879,7 @@
           {
             \cs_generate_from_arg_count:cNnn
               { @@_#1_plug_#2:w }
-              \cs_set_protected:Npn
+              \cs_set:Npn
               { \int_use:c { c_@@_#1_args_int } }
               {#3}
             \@@_debug_term:n





More information about the latex3-commits mailing list.