[latex3-commits] [l3svn] r6315 - Clean up upon error when generating cs from argument count

noreply at latex-project.org noreply at latex-project.org
Sun Nov 22 23:49:22 CET 2015


Author: bruno
Date: 2015-11-22 23:49:22 +0100 (Sun, 22 Nov 2015)
New Revision: 6315

Modified:
   trunk/l3kernel/l3basics.dtx
Log:
Clean up upon error when generating cs from argument count

Previously, using \cs_generate_from_arg_count:NNnn with a
number of arguments outside of [0,9] would leave the fourth
argument of \cs_generate_from_arg_count:NNnn in the input
stream after producing an error.  \use_none:n avoids that.


Modified: trunk/l3kernel/l3basics.dtx
===================================================================
--- trunk/l3kernel/l3basics.dtx	2015-11-22 22:02:05 UTC (rev 6314)
+++ trunk/l3kernel/l3basics.dtx	2015-11-22 22:49:22 UTC (rev 6315)
@@ -2729,6 +2729,7 @@
       {
         \__msg_kernel_error:nnxx { kernel } { bad-number-of-arguments }
           { \token_to_str:N #1 } { \int_eval:n {#3} }
+        \use_none:n
       }
       {#4}
   }



More information about the latex3-commits mailing list