[latex3-commits] [latex3/latex2e] develop: Generate simpler variant for \cs_generate_from_arg_count:NNnn (3ab16f4c)

github at latex-project.org github at latex-project.org
Thu May 25 20:36:56 CEST 2023


Repository : https://github.com/latex3/latex2e
On branch  : develop
Link       : https://github.com/latex3/latex2e/commit/3ab16f4c54b1f01523f9c8df0a0a190dfd902705

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

commit 3ab16f4c54b1f01523f9c8df0a0a190dfd902705
Author: Yukai Chou <muzimuzhi at gmail.com>
Date:   Thu May 25 21:27:52 2023 +0800

    Generate simpler variant for \cs_generate_from_arg_count:NNnn
    
    It's first n-arg already accepts an <int expr>.


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

3ab16f4c54b1f01523f9c8df0a0a190dfd902705
 base/ltcmd.dtx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/base/ltcmd.dtx b/base/ltcmd.dtx
index 5f019cdc..9fe3b904 100644
--- a/base/ltcmd.dtx
+++ b/base/ltcmd.dtx
@@ -738,10 +738,10 @@
     \int_zero:N \l_@@_current_arg_int
     \@@_tl_mapthread_function:NNN \l_@@_args_tl \l_@@_defaults_tl
       \@@_defaults_def:nn
-    \cs_generate_from_arg_count:NNVo \@@_tmp:w \cs_set:Npn
+    \cs_generate_from_arg_count:NNno \@@_tmp:w \cs_set:Npn
       \l_@@_current_arg_int \l_@@_tmpa_tl
   }
-\cs_generate_variant:Nn \cs_generate_from_arg_count:NNnn { NNVo }
+\cs_generate_variant:Nn \cs_generate_from_arg_count:NNnn { NNno }
 \cs_new_protected:Npn \@@_defaults_def:nn
   {
     \int_incr:N \l_@@_current_arg_int





More information about the latex3-commits mailing list.