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

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

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


From: Joseph Turner
Subject: bug#63509: [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


reply via email to

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