--- Begin Message ---
|
Subject: |
[PATCH] Make copy-tree work with records |
|
Date: |
Sun, 14 May 2023 20:57:17 -0700 |
Hello,
copy-tree does not currently work with records:
(cl-defstruct foo bar)
(let* ((rec (make-foo :bar "hello"))
(copy (copy-tree rec t)))
(setf (foo-bar copy) "goodbye")
(foo-bar rec))
Expected "hello"; actual "goodbye".
Attached patch fixes this behavior.
Please tell me if I misunderstand the intended behavior of copy-tree.
Thank you,
Joseph
0001-Make-copy-tree-work-with-records.patch
Description: Text Data
--- End Message ---
--- Begin Message ---
|
Subject: |
Re: bug#63509: [PATCH] Make copy-tree work with records |
|
Date: |
Fri, 19 May 2023 09:07:10 +0300 |
> From: Joseph Turner <joseph@breatheoutbreathe.in>
> Cc: monnier@iro.umontreal.ca, 63509@debbugs.gnu.org
> Date: Thu, 18 May 2023 12:05:57 -0700
>
> Please let me know if any further changes need to be made!
Thanks, installed on master, and closing the bug.
--- End Message ---