[latex3-commits] [git/LaTeX3-latex3-latex2e] keyval-detect: The keyval loop handles user input, so it needs private quarks (f6ddf60f)

Joseph Wright joseph.wright at morningstar2.co.uk
Wed Aug 31 08:27:16 CEST 2022


Repository : https://github.com/latex3/latex2e
On branch  : keyval-detect
Link       : https://github.com/latex3/latex2e/commit/f6ddf60f7b3a065c9ef7f75a540f887620703155

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

commit f6ddf60f7b3a065c9ef7f75a540f887620703155
Author: PhelypeOleinik <phelype.oleinik at latex-project.org>
Date:   Tue Aug 30 21:28:58 2022 -0300

    The keyval loop handles user input, so it needs private quarks


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

f6ddf60f7b3a065c9ef7f75a540f887620703155
 base/ltcmd.dtx | 31 ++++++++++++++++++++++---------
 1 file changed, 22 insertions(+), 9 deletions(-)

diff --git a/base/ltcmd.dtx b/base/ltcmd.dtx
index e1944af7..133f075d 100644
--- a/base/ltcmd.dtx
+++ b/base/ltcmd.dtx
@@ -324,6 +324,19 @@
 %    \end{macrocode}
 % \end{variable}
 %
+% \begin{variable}{\q_@@_recursion_tail,\q_@@_recursion_stop}
+% \begin{macro}{\@@_if_recursion_tail_stop_do:Nn}
+% \begin{macro}{\@@_use_i_delimit_by_q_recursion_stop:nw}
+%   Quarks and functions for internal processing.
+%    \begin{macrocode}
+\quark_new:N \q_@@_recursion_tail
+\quark_new:N \q_@@_recursion_stop
+\__kernel_quark_new_test:N \@@_if_recursion_tail_stop_do:Nn
+%    \end{macrocode}
+% \end{macro}
+% \end{macro}
+% \end{variable}
+%
 % \begin{variable}{\l_@@_tmp_prop, \l_@@_tmpa_tl, \l_@@_tmpb_tl}
 % \begin{macro}{\@@_tmp:w}
 %   Scratch space.
@@ -4042,7 +4055,7 @@
 %   very much predictable types of input, we hard-code what constitutes
 %   math mode opening and closing.  At the very beginning, the default
 %   key (|#1|) and the argument as given by the user (|#2|) are placed
-%   right after the \cs{q_recursion_stop}, so that when the recursion
+%   right after the \cs{q_@@_recursion_stop}, so that when the recursion
 %   ends, the macros \cs{@@_arg_to_keyvalue_set_default:nn} or
 %   \cs{@@_arg_to_keyvalue_set_keyvalue:nn} can be used to grab these
 %   two items and set the \cs{ProcessedArgument} accordingly.
@@ -4050,9 +4063,9 @@
 \cs_new_protected:Npn \@@_arg_to_keyvalue_auxv:nn #1#2
   {
     \@@_arg_to_keyvalue_loop:w #2
-      \q_recursion_tail \q_recursion_stop {#1} {#2}
+      \q_@@_recursion_tail \q_@@_recursion_stop {#1} {#2}
   }
-\cs_new_protected:Npn \@@_arg_to_keyvalue_loop:w #1 \q_recursion_stop
+\cs_new_protected:Npn \@@_arg_to_keyvalue_loop:w #1 \q_@@_recursion_stop
   {
     \tl_if_head_is_N_type:nTF {#1}
       { \@@_arg_to_keyvalue_loop_N_type:N }
@@ -4061,7 +4074,7 @@
           { \@@_arg_to_keyvalue_loop_group:n }
           { \@@_arg_to_keyvalue_loop_space:w }
       }
-        #1 \q_recursion_stop
+        #1 \q_@@_recursion_stop
   }
 \cs_new_protected:Npn \@@_arg_to_keyvalue_loop_group:n #1
   { \@@_arg_to_keyvalue_loop:w }
@@ -4069,11 +4082,11 @@
   { \@@_arg_to_keyvalue_loop:w }
 \cs_new_protected:Npn \@@_arg_to_keyvalue_loop_N_type:N #1
   {
-    \quark_if_recursion_tail_stop_do:Nn #1
+    \@@_if_recursion_tail_stop_do:Nn #1
       { \@@_arg_to_keyvalue_set_default:nn }
     \str_if_eq:nnTF {#1} { = }
       {
-        \use_i_delimit_by_q_recursion_stop:nw
+        \@@_use_i_delimit_by_q_recursion_stop:nw
           { \@@_arg_to_keyvalue_set_keyvalue:nn }
       }
       {
@@ -4084,7 +4097,7 @@
           { \@@_arg_to_keyvalue_loop:w }
       }
   }
-\cs_new_protected:Npn \@@_arg_to_keyvalue_math:w #1 \q_recursion_stop
+\cs_new_protected:Npn \@@_arg_to_keyvalue_math:w #1 \q_@@_recursion_stop
   {
     \tl_if_head_is_N_type:nTF {#1}
       { \@@_arg_to_keyvalue_math_N_type:N }
@@ -4093,11 +4106,11 @@
           { \@@_arg_to_keyvalue_math_group:n }
           { \@@_arg_to_keyvalue_math_space:w }
       }
-        #1 \q_recursion_stop
+        #1 \q_@@_recursion_stop
   }
 \cs_new_protected:Npn \@@_arg_to_keyvalue_math_N_type:N #1
   {
-    \quark_if_recursion_tail_stop_do:Nn #1
+    \@@_if_recursion_tail_stop_do:Nn #1
       { \@@_arg_to_keyvalue_set_default:nn }
     \bool_lazy_or:nnTF
         { \token_if_math_toggle_p:N #1 }





More information about the latex3-commits mailing list.