Function: bytecomp--copy-tree

bytecomp--copy-tree is a byte-compiled function defined in bytecomp.el.gz.

Signature

(bytecomp--copy-tree TREE)

Documentation

Make a copy of TREE, preserving any circular structure therein.

Only conses are traversed and duplicated, not arrays or any other structure.

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/bytecomp.el.gz
(defun bytecomp--copy-tree (tree)
  "Make a copy of TREE, preserving any circular structure therein.
Only conses are traversed and duplicated, not arrays or any other structure."
  (if (consp tree)
      (let ((bytecomp--copy-tree-seen (make-hash-table :test #'eq)))
        (bytecomp--copy-tree-1 tree))
    tree))