[latex3-commits] [latex3/latex3] main: Standarise variants for \prop_(g)put_if_new:Nnn (see #1257) (c14e17894)
github at latex-project.org
github at latex-project.org
Fri Sep 8 19:12:31 CEST 2023
Repository : https://github.com/latex3/latex3
On branch : main
Link : https://github.com/latex3/latex3/commit/c14e178949dc1a4e86c6e560d8574235502e2fda
>---------------------------------------------------------------
commit c14e178949dc1a4e86c6e560d8574235502e2fda
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Fri Sep 8 13:30:29 2023 +0100
Standarise variants for \prop_(g)put_if_new:Nnn (see #1257)
TL shows a mix of n/V/x types, so round out to
a full set. The two c-type variants were entirely unused in TL, so can safely be tided up for the present. That also means no need to add
a full set of c-type variants.
so
>---------------------------------------------------------------
c14e178949dc1a4e86c6e560d8574235502e2fda
l3kernel/CHANGELOG.md | 1 +
l3kernel/l3prop.dtx | 24 ++++++++++++++++++------
2 files changed, 19 insertions(+), 6 deletions(-)
diff --git a/l3kernel/CHANGELOG.md b/l3kernel/CHANGELOG.md
index d5f289deb..0967b3213 100644
--- a/l3kernel/CHANGELOG.md
+++ b/l3kernel/CHANGELOG.md
@@ -9,6 +9,7 @@ this project uses date-based 'snapshot' version identifiers.
### Changed
- Standardise variants for `\prop_(g)put:Nnn`
+- Standardise variants for `\prop_(g)put_if_new:Nnn`
- Standardise variants for `\prop_(g)remove:Nn`
## [2023-08-29]
diff --git a/l3kernel/l3prop.dtx b/l3kernel/l3prop.dtx
index 2c36239e3..0f92ccd29 100644
--- a/l3kernel/l3prop.dtx
+++ b/l3kernel/l3prop.dtx
@@ -199,8 +199,12 @@
%
% \begin{function}
% {
-% \prop_put_if_new:Nnn, \prop_put_if_new:cnn,
-% \prop_gput_if_new:Nnn, \prop_gput_if_new:cnn
+% \prop_put_if_new:Nnn, \prop_put_if_new:NnV, \prop_put_if_new:Nnx,
+% \prop_put_if_new:NVn, \prop_put_if_new:NVV, \prop_put_if_new:NVx,
+% \prop_put_if_new:Nxn, \prop_put_if_new:NxV, \prop_put_if_new:Nxx,
+% \prop_gput_if_new:Nnn, \prop_gput_if_new:NnV, \prop_gput_if_new:Nnx,
+% \prop_gput_if_new:NVn, \prop_gput_if_new:NVV, \prop_gput_if_new:NVx,
+% \prop_gput_if_new:Nxn, \prop_gput_if_new:NxV, \prop_gput_if_new:Nxx,
% }
% \begin{syntax}
% \cs{prop_put_if_new:Nnn} \meta{property list} \Arg{key} \Arg{value}
@@ -1257,9 +1261,17 @@
% \end{macro}
%
% \begin{macro}[tested = m3prop002]
-% {\prop_put_if_new:Nnn, \prop_put_if_new:cnn}
+% {
+% \prop_put_if_new:Nnn, \prop_put_if_new:NnV, \prop_put_if_new:Nnx,
+% \prop_put_if_new:NVn, \prop_put_if_new:NVV, \prop_put_if_new:NVx,
+% \prop_put_if_new:Nxn, \prop_put_if_new:NxV, \prop_put_if_new:Nxx
+% }
% \begin{macro}[tested = m3prop002]
-% {\prop_gput_if_new:Nnn, \prop_gput_if_new:cnn}
+% {
+% \prop_gput_if_new:Nnn, \prop_gput_if_new:NnV, \prop_gput_if_new:Nnx,
+% \prop_gput_if_new:NVn, \prop_gput_if_new:NVV, \prop_gput_if_new:NVx,
+% \prop_gput_if_new:Nxn, \prop_gput_if_new:NxV, \prop_gput_if_new:Nxx
+% }
% \begin{macro}{\@@_put_if_new:NNnn}
% Adding conditionally also splits. If the key is already present,
% the three brace groups given by \cs{@@_split:NnTF} are removed.
@@ -1281,8 +1293,8 @@
{ }
{ #1 #2 { \exp_not:o {#2} \l_@@_internal_tl } }
}
-\cs_generate_variant:Nn \prop_put_if_new:Nnn { c }
-\cs_generate_variant:Nn \prop_gput_if_new:Nnn { c }
+\cs_generate_variant:Nn \prop_put_if_new:Nnn { NnV , Nnx , NVn , NVV , NVx , Nx , NxV , Nxx }
+\cs_generate_variant:Nn \prop_gput_if_new:Nnn { NnV , Nnx , NVn , NVV , NVx , Nx , NxV , Nxx }
% \end{macrocode}
% \end{macro}
% \end{macro}
More information about the latex3-commits
mailing list.