emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#63509: closed ([PATCH] Make copy-tree work with records)


From: GNU bug Tracking System
Subject: bug#63509: closed ([PATCH] Make copy-tree work with records)
Date: Fri, 19 May 2023 06:08:01 +0000

Your message dated Fri, 19 May 2023 09:07:10 +0300
with message-id <83zg60ua5t.fsf@gnu.org>
and subject line Re: bug#63509: [PATCH] Make copy-tree work with records
has caused the debbugs.gnu.org bug report #63509,
regarding [PATCH] Make copy-tree work with records
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
63509: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=63509
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- 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

Attachment: 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 ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]