[latex3-commits] [git/LaTeX3-latex3-latex3] options: Stick to local data structures (3f7452203)
Joseph Wright
joseph.wright at morningstar2.co.uk
Mon Jan 10 18:19:26 CET 2022
Repository : https://github.com/latex3/latex3
On branch : options
Link : https://github.com/latex3/latex3/commit/3f7452203dcf91e8770a5046c37b4dce523d75cb
>---------------------------------------------------------------
commit 3f7452203dcf91e8770a5046c37b4dce523d75cb
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Sat Nov 27 16:37:34 2021 +0000
Stick to local data structures
>---------------------------------------------------------------
3f7452203dcf91e8770a5046c37b4dce523d75cb
l3kernel/l3keys.dtx | 19 +++++++++----------
1 file changed, 9 insertions(+), 10 deletions(-)
diff --git a/l3kernel/l3keys.dtx b/l3kernel/l3keys.dtx
index e35679f86..abf7776af 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.