[latex3-commits] [latex3/latex3] main: Standardise variants for \prop_(g)remove:Nn (see #1257) (f95e69127)
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/f95e691275621fcf9cb2c5cc9c778a1613704a69
>---------------------------------------------------------------
commit f95e691275621fcf9cb2c5cc9c778a1613704a69
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Fri Sep 8 13:21:12 2023 +0100
Standardise variants for \prop_(g)remove:Nn (see #1257)
No v-type here as currently there is no use at
all in TL, but add x-type as there are use cases.
Despite a few generations of o-type variants,
there are no actual uses in TL so we skip that.
>---------------------------------------------------------------
f95e691275621fcf9cb2c5cc9c778a1613704a69
l3kernel/CHANGELOG.md | 1 +
l3kernel/l3prop.dtx | 24 ++++++++++++++++--------
2 files changed, 17 insertions(+), 8 deletions(-)
diff --git a/l3kernel/CHANGELOG.md b/l3kernel/CHANGELOG.md
index 6ffae7761..d5f289deb 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)remove:Nn`
## [2023-08-29]
diff --git a/l3kernel/l3prop.dtx b/l3kernel/l3prop.dtx
index aac5b0ce2..2c36239e3 100644
--- a/l3kernel/l3prop.dtx
+++ b/l3kernel/l3prop.dtx
@@ -350,8 +350,10 @@
%
% \begin{function}[added = 2012-05-12]
% {
-% \prop_remove:Nn, \prop_remove:NV, \prop_remove:cn, \prop_remove:cV,
-% \prop_gremove:Nn, \prop_gremove:NV, \prop_gremove:cn, \prop_gremove:cV
+% \prop_remove:Nn, \prop_remove:NV, \prop_remove:Nx,
+% \prop_remove:cn, \prop_remove:cV, \prop_remove:cx,
+% \prop_gremove:Nn, \prop_gremove:NV, \prop_gremove:Nx,
+% \prop_gremove:cn, \prop_gremove:cV, \prop_gremove:cx
% }
% \begin{syntax}
% \cs{prop_remove:Nn} \meta{property list} \Arg{key}
@@ -966,9 +968,15 @@
% \end{macro}
%
% \begin{macro}[tested = m3prop002]
-% {\prop_remove:Nn, \prop_remove:NV, \prop_remove:cn, \prop_remove:cV}
+% {
+% \prop_remove:Nn, \prop_remove:NV, \prop_remove:Nx,
+% \prop_remove:cn, \prop_remove:cV, \prop_remove:cx
+% }
% \begin{macro}[tested = m3prop002]
-% {\prop_gremove:Nn, \prop_gremove:NV, \prop_gremove:cn, \prop_gremove:cV}
+% {
+% \prop_gremove:Nn, \prop_gremove:NV, \prop_gremove:Nx,
+% \prop_gremove:cn, \prop_gremove:cV, \prop_gremove:cx
+% }
% Deleting from a property starts by splitting the list.
% If the key is present in the property list, the returned value is ignored.
% If the key is missing, nothing happens.
@@ -985,10 +993,10 @@
{ \tl_gset:Nn #1 { ##1 ##3 } }
{ }
}
-\cs_generate_variant:Nn \prop_remove:Nn { NV }
-\cs_generate_variant:Nn \prop_remove:Nn { c , cV }
-\cs_generate_variant:Nn \prop_gremove:Nn { NV }
-\cs_generate_variant:Nn \prop_gremove:Nn { c , cV }
+\cs_generate_variant:Nn \prop_remove:Nn { NV , Nx }
+\cs_generate_variant:Nn \prop_remove:Nn { c , cV , cx }
+\cs_generate_variant:Nn \prop_gremove:Nn { NV , Nx }
+\cs_generate_variant:Nn \prop_gremove:Nn { c , cV , cx }
% \end{macrocode}
% \end{macro}
% \end{macro}
More information about the latex3-commits
mailing list.