[latex3-commits] [git/LaTeX3-latex3-latex3] main: \keys_precompile:nnN rather than :Nnn (230f1cff5)
Joseph Wright
joseph.wright at morningstar2.co.uk
Wed Mar 9 08:31:51 CET 2022
Repository : https://github.com/latex3/latex3
On branch : main
Link : https://github.com/latex3/latex3/commit/230f1cff531f10d70e6d19ceedfa0393384c5e78
>---------------------------------------------------------------
commit 230f1cff531f10d70e6d19ceedfa0393384c5e78
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Wed Mar 9 07:31:51 2022 +0000
\keys_precompile:nnN rather than :Nnn
>---------------------------------------------------------------
230f1cff531f10d70e6d19ceedfa0393384c5e78
l3kernel/CHANGELOG.md | 2 +-
l3kernel/l3keys.dtx | 12 ++++++------
l3kernel/testfiles/m3keys008.lvt | 12 ++++++------
3 files changed, 13 insertions(+), 13 deletions(-)
diff --git a/l3kernel/CHANGELOG.md b/l3kernel/CHANGELOG.md
index d3c297a0b..8719ffc95 100644
--- a/l3kernel/CHANGELOG.md
+++ b/l3kernel/CHANGELOG.md
@@ -8,7 +8,7 @@ this project uses date-based 'snapshot' version identifiers.
## [Unreleased]
### Added
-- `\keys_precompile:Nnn` for conversion of keyvals to fast-to-apply token
+- `\keys_precompile:nnN` for conversion of keyvals to fast-to-apply token
lists
## [2022-02-24]
diff --git a/l3kernel/l3keys.dtx b/l3kernel/l3keys.dtx
index 901ae2532..9397bad86 100644
--- a/l3kernel/l3keys.dtx
+++ b/l3kernel/l3keys.dtx
@@ -884,9 +884,9 @@
%
% \section{Digesting keys}
%
-% \begin{function}[added = 2022-03-04]{\keys_precompile:Nnn}
+% \begin{function}[added = 2022-03-09]{\keys_precompile:nnN}
% \begin{syntax}
-% \cs{keys_precompile:Nnn} \meta{tl} \Arg{module} \Arg{keyval list}
+% \cs{keys_precompile:nnN} \Arg{module} \Arg{keyval list} \meta{tl}
% \end{syntax}
% Parses the \meta{keyval list} as for \cs{keys_set:nn}, placing the
% resulting code for those which set variables or functions into the
@@ -2940,16 +2940,16 @@
% \end{macro}
% \end{macro}
%
-% \begin{macro}{\keys_precompile:Nnn}
+% \begin{macro}{\keys_precompile:nnN}
% A simple wrapper.
% \begin{macrocode}
-\cs_new_protected:Npn \keys_precompile:Nnn #1#2#3
+\cs_new_protected:Npn \keys_precompile:nnN #1#2#3
{
\bool_set_true:N \l_@@_precompile_bool
\tl_clear:N \l_@@_precompile_tl
- \keys_set:nn {#2} {#3}
+ \keys_set:nn {#1} {#2}
\bool_set_false:N \l_@@_precompile_bool
- \tl_set_eq:NN #1 \l_@@_precompile_tl
+ \tl_set_eq:NN #3 \l_@@_precompile_tl
}
% \end{macrocode}
% \end{macro}
diff --git a/l3kernel/testfiles/m3keys008.lvt b/l3kernel/testfiles/m3keys008.lvt
index 496cf9531..18d60ca5f 100644
--- a/l3kernel/testfiles/m3keys008.lvt
+++ b/l3kernel/testfiles/m3keys008.lvt
@@ -34,8 +34,7 @@
key-twelve .tl_set_x:N = \l_tmpb_tl
}
\TIMO
- \keys_precompile:Nnn
- \l_tmpa_tl
+ \keys_precompile:nnN
{ test }
{
key-one = true ,
@@ -51,6 +50,7 @@
key-eleven = footoo ,
key-twelve = \l_tmpa_tl
}
+ \l_tmpa_tl
\tl_show:N \l_tmpa_tl
}
@@ -74,14 +74,14 @@
{#1}
}
\TIMO
- \keys_precompile:Nnn
- \l_tmpa_tl
+ \keys_precompile:nnN
{ test }
{
key-one = choice-one , key-one = choice-three ,
key-two = choice-one , key-two = choice-three ,
key-three = choice-one , key-three = choice-three
}
+ \l_tmpa_tl
\tl_show:N \l_tmpa_tl
}
@@ -94,12 +94,12 @@
key-two .meta:n = {key-one = "#1"}
}
\TIMO
- \keys_precompile:Nnn
- \l_tmpa_tl
+ \keys_precompile:nnN
{ test }
{
key-one = AAA, key-two = BBB
}
+ \l_tmpa_tl
\tl_show:N \l_tmpa_tl
}
More information about the latex3-commits
mailing list.