[latex3-commits] [git/LaTeX3-latex3-latex2e] options: Use family <-> module mapping to track activation (c529a5b6)
Joseph Wright
joseph.wright at morningstar2.co.uk
Wed Jan 12 18:26:18 CET 2022
Repository : https://github.com/latex3/latex2e
On branch : options
Link : https://github.com/latex3/latex2e/commit/c529a5b6c12cd04cdc3b2889d09b0684426dec1b
>---------------------------------------------------------------
commit c529a5b6c12cd04cdc3b2889d09b0684426dec1b
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Tue Nov 30 20:39:03 2021 +0000
Use family <-> module mapping to track activation
>---------------------------------------------------------------
c529a5b6c12cd04cdc3b2889d09b0684426dec1b
base/ltkeys.dtx | 15 +++++----------
1 file changed, 5 insertions(+), 10 deletions(-)
diff --git a/base/ltkeys.dtx b/base/ltkeys.dtx
index 24b8717b..25774143 100644
--- a/base/ltkeys.dtx
+++ b/base/ltkeys.dtx
@@ -151,13 +151,6 @@
% \end{macrocode}
% \end{variable}
%
-% \begin{variable}{\l_@@_options_module_prop}
-% To track non-standard module names.
-% \begin{macrocode}
-\prop_new:N \l_@@_options_module_prop
-% \end{macrocode}
-% \end{variable}
-%
% \begin{macro}{\@@_options:Nn}
% \begin{macro}{\@@_options_end:}
% The main function calls functions to collect up the global and local
@@ -165,12 +158,14 @@
% underlying functions to actually do the processing. So that a suitable
% message is produced if the option is unknown, the special
% \texttt{unknown} key is set if it does not already exist for the
-% current family, and is cleaned up afterwards if required.
+% current family, and is cleaned up afterwards if required. To allow
+% the \LaTeXe{} layer to know this mechanism is active, and to deal
+% with the key family not matching the file name, we store the family
+% in all cases.
% \begin{macrocode}
\cs_new_protected:Npn \@@_options:Nn #1#2
{
- \str_if_eq:nVF {#2} \@currname
- { \prop_put:NnV \l_@@_options_module_prop {#2} \@currname }
+ \cs_gset_nopar:cpn { opt at fam@\@currname.\@currext } {#2}
\cs_set_protected:Npn \@@_option_end: { }
\clist_clear:N \l_@@_options_clist
\@@_options_global:Nn #1 {#2}
More information about the latex3-commits
mailing list.