[latex3-commits] [latex3/latex3] main: Fix \prop_set_eq:NN for twice the same linked prop (9f18c7067)

github at latex-project.org github at latex-project.org
Tue Feb 13 15:20:08 CET 2024


Repository : https://github.com/latex3/latex3
On branch  : main
Link       : https://github.com/latex3/latex3/commit/9f18c70678e593b41db8831226ef215f86d10929

>---------------------------------------------------------------

commit 9f18c70678e593b41db8831226ef215f86d10929
Author: Bruno Le Floch <blflatex at gmail.com>
Date:   Mon Feb 12 13:21:31 2024 +0100

    Fix \prop_set_eq:NN for twice the same linked prop


>---------------------------------------------------------------

9f18c70678e593b41db8831226ef215f86d10929
 l3kernel/l3prop.dtx              | 2 +-
 l3kernel/testfiles/m3prop007.lvt | 7 +++++++
 l3kernel/testfiles/m3prop007.tlg | 9 +++++++++
 3 files changed, 17 insertions(+), 1 deletion(-)

diff --git a/l3kernel/l3prop.dtx b/l3kernel/l3prop.dtx
index 39f8f2386..3eeeb046a 100644
--- a/l3kernel/l3prop.dtx
+++ b/l3kernel/l3prop.dtx
@@ -1147,7 +1147,7 @@
 \cs_generate_variant:Nn \prop_gset_eq:NN { Nc , cN , cc }
 \cs_new_protected:Npn \@@_set_eq:NNNN #1#2#3#4
   {
-    \cs_if_eq:NNF #1#2
+    \cs_if_eq:NNF #3#4
       {
         \@@_if_flat:NTF #3
           {
diff --git a/l3kernel/testfiles/m3prop007.lvt b/l3kernel/testfiles/m3prop007.lvt
index faf6c93ae..7fda07e17 100644
--- a/l3kernel/testfiles/m3prop007.lvt
+++ b/l3kernel/testfiles/m3prop007.lvt
@@ -561,5 +561,12 @@
       }
   }
 
+\TEST { prop_set_eq~same~prop }
+  {
+    \prop_set_from_keyval:Nn \l_a_prop { a = b , c = d }
+    \prop_set_eq:NN \l_a_prop \l_a_prop
+    \prop_show:N \l_a_prop
+  }
+
 \END
 
diff --git a/l3kernel/testfiles/m3prop007.tlg b/l3kernel/testfiles/m3prop007.tlg
index c12bb0eba..0af5c8cd5 100644
--- a/l3kernel/testfiles/m3prop007.tlg
+++ b/l3kernel/testfiles/m3prop007.tlg
@@ -645,3 +645,12 @@ TEST 28: prop to keyval in halign
 0
 1
 ============================================================
+============================================================
+TEST 29: prop_set_eq same prop
+============================================================
+The linked property list \l_a_prop contains the pairs (without outer braces):
+>  {a}  =>  {b}
+>  {c}  =>  {d}.
+<recently read> }
+l. ...  }
+============================================================





More information about the latex3-commits mailing list.