all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Optionally use copy-tree for cl struct copier
@ 2023-09-10 18:42 Joseph Turner
  2023-09-10 18:51 ` Joseph Turner
  0 siblings, 1 reply; 4+ messages in thread
From: Joseph Turner @ 2023-09-10 18:42 UTC (permalink / raw)
  To: Emacs Devel Mailing List; +Cc: Adam Porter

Would you be open to adding an option to cl-defstruct that would alias
the copier function to (lambda (obj) (copy-tree obj t)) instead of
copy-sequence?

If so, what kind of syntax would you want? Maybe something like

(cl-defstruct (foo (:copier nil :recursive t)) a b c)



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-09-10 18:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-10 18:42 Optionally use copy-tree for cl struct copier Joseph Turner
2023-09-10 18:51 ` Joseph Turner
2023-09-10 18:58   ` Joseph Turner
2023-09-10 18:58   ` Joseph Turner

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.