[latex3-commits] [git/LaTeX3-latex3-latex3] options: Stick to local data structures (f24f2933d)

Joseph Wright joseph.wright at morningstar2.co.uk
Sat Nov 27 17:37:34 CET 2021


Repository : https://github.com/latex3/latex3
On branch  : options
Link       : https://github.com/latex3/latex3/commit/f24f2933d57e60cfd781f9842810c6721a0bc5a1

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

commit f24f2933d57e60cfd781f9842810c6721a0bc5a1
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Sat Nov 27 16:37:34 2021 +0000

    Stick to local data structures


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

f24f2933d57e60cfd781f9842810c6721a0bc5a1
 l3kernel/l3keys.dtx | 19 +++++++++----------
 1 file changed, 9 insertions(+), 10 deletions(-)

diff --git a/l3kernel/l3keys.dtx b/l3kernel/l3keys.dtx
index 9f449691e..101f35080 100644
--- a/l3kernel/l3keys.dtx
+++ b/l3kernel/l3keys.dtx
@@ -695,7 +695,7 @@
 %   should be one of \texttt{general}, \texttt{preamble} or \texttt{load}.
 % \end{function}
 %
-% \begin{variable}{\g_keys_usage_load_prop, \g_keys_usage_preamble_seq}
+% \begin{variable}{\l_keys_usage_load_prop, \l_keys_usage_preamble_seq}
 %   \pkg{l3keys} itself does \emph{not} attempt to redefine keys based on the
 %   validity scope. Rather, this information is made available with these
 %   two variables. The property list holds an entry for each module (prefix).
@@ -1650,11 +1650,11 @@
 %    \end{macrocode}
 % \end{variable}
 %
-% \begin{variable}{\g_keys_usage_load_prop, \g_keys_usage_preamble_seq}
+% \begin{variable}{\l_keys_usage_load_prop, \l_keys_usage_preamble_seq}
 %   Global data for document-level information.
 %    \begin{macrocode}
-\prop_new:N \g_keys_usage_load_prop
-\seq_new:N \g_keys_usage_preamble_seq
+\prop_new:N \l_keys_usage_load_prop
+\seq_new:N \l_keys_usage_preamble_seq
 %    \end{macrocode}
 % \end{variable}
 %
@@ -2191,19 +2191,19 @@
           {
             \@@_usage_aux:n
               { \clist_remove:NV \l_@@_tmpa_tl \l_keys_path_str }
-            \seq_gremove:NV \g_keys_usage_preamble_seq \l_keys_path_str
+            \seq_remove:NV \l_keys_usage_preamble_seq \l_keys_path_str
           }
         { load }
           {
             \@@_usage_aux:n
               { \clist_put_right:NV \l_@@_tmpa_tl \l_keys_path_str }
-            \seq_gremove:NV \g_keys_usage_preamble_seq \l_keys_path_str
+            \seq_remove:NV \l_keys_usage_preamble_seq \l_keys_path_str
           }
         { preamble }
           {
             \@@_usage_aux:n
               { \clist_remove:NV \l_@@_tmpa_tl \l_keys_path_str }
-            \seq_gput:NV \g_keys_usage_preamble_seq \l_keys_path_str
+            \seq_put:NV \l_keys_usage_preamble_seq \l_keys_path_str
           }
       }
       {
@@ -2214,11 +2214,10 @@
   }
 \cs_new_protected:Npn \@@_usage_aux:n #1
   {
-    \prop_get:NVNF \g_keys_usage_load_prop \l_@@_module_str
+    \prop_get:NVNF \l_keys_usage_load_prop \l_@@_module_str
       \l_@@_tmpa_tl
       { \tl_clear:N \l_@@_tmpa_tl }
-    
-    \prop_gput:NVV \g_keys_usage_load_prop \l_@@_module_str
+    \prop_put:NVV \l_keys_usage_load_prop \l_@@_module_str
       \l_@@_tmpa_tl
   }
 %    \end{macrocode}





More information about the latex3-commits mailing list.