[latex3-commits] [latex3/latex3] gh940-keys-meta: Extend to cover .meta:nn (c6a23d7a9)
github at latex-project.org
github at latex-project.org
Sun May 21 21:24:06 CEST 2023
Repository : https://github.com/latex3/latex3
On branch : gh940-keys-meta
Link : https://github.com/latex3/latex3/commit/c6a23d7a91608f87256e0f547a9fa4e2005209a3
>---------------------------------------------------------------
commit c6a23d7a91608f87256e0f547a9fa4e2005209a3
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Fri May 19 15:55:35 2023 +0100
Extend to cover .meta:nn
>---------------------------------------------------------------
c6a23d7a91608f87256e0f547a9fa4e2005209a3
l3kernel/l3keys.dtx | 2 +-
l3kernel/testfiles/m3keys004.lvt | 12 ++++++++----
l3kernel/testfiles/m3keys004.tlg | 6 ++++++
3 files changed, 15 insertions(+), 5 deletions(-)
diff --git a/l3kernel/l3keys.dtx b/l3kernel/l3keys.dtx
index 654f85c0c..733524e56 100644
--- a/l3kernel/l3keys.dtx
+++ b/l3kernel/l3keys.dtx
@@ -2127,7 +2127,7 @@
\cs_new_protected:Npn \@@_meta_make:nn #1#2
{
\exp_args:NV \@@_cmd_set_direct:nn
- \l_keys_path_str { \keys_set:nn {#1} {#2} }
+ \l_keys_path_str { \@@_set:nn {#1} {#2} }
}
% \end{macrocode}
% \end{macro}
diff --git a/l3kernel/testfiles/m3keys004.lvt b/l3kernel/testfiles/m3keys004.lvt
index d251bd09b..24f73a289 100644
--- a/l3kernel/testfiles/m3keys004.lvt
+++ b/l3kernel/testfiles/m3keys004.lvt
@@ -260,14 +260,18 @@
B1 .groups:n = main ,
B2 .code:n = \TYPE { B2 } ,
B2 .groups:n = main ,
- meta .meta:n = { B1 , A2 } ,
- meta .groups:n = { init , main }
+ meta-a .meta:n = { B1 , A2 } ,
+ meta-a .groups:n = { init , main } ,
+ meta-b .meta:nn = { } { B1 , A2 } ,
+ meta-b .groups:n = { init , main }
}
\TIMO
\keys_set_groups:nnn { } { init } { B1 , A1 , A2 , B2 }
\keys_set_groups:nnn { } { main } { B1 , A1 , A2 , B2 }
- \keys_set_groups:nnn { } { init } { meta , B1 , A1 , A2 , B2 }
- \keys_set_groups:nnn { } { main } { meta , B1 , A1 , A2 , B2 }
+ \keys_set_groups:nnn { } { init } { meta-a , B1 , A1 , A2 , B2 }
+ \keys_set_groups:nnn { } { main } { meta-a , B1 , A1 , A2 , B2 }
+ \keys_set_groups:nnn { } { init } { meta-b , B1 , A1 , A2 , B2 }
+ \keys_set_groups:nnn { } { main } { meta-b , B1 , A1 , A2 , B2 }
}
\TEST { Nesting ~ setting }
diff --git a/l3kernel/testfiles/m3keys004.tlg b/l3kernel/testfiles/m3keys004.tlg
index d895f2905..f269b544a 100644
--- a/l3kernel/testfiles/m3keys004.tlg
+++ b/l3kernel/testfiles/m3keys004.tlg
@@ -161,6 +161,12 @@ A2
B1
B1
B2
+A2
+A1
+A2
+B1
+B1
+B2
============================================================
============================================================
TEST 9: Nesting setting
More information about the latex3-commits
mailing list.