Function: clone

clone is a byte-compiled function defined in eieio.el.gz.

Signature

(clone OBJ &rest PARAMS)

Documentation

Make a copy of OBJ, and then supply PARAMS.

PARAMS is a parameter list of the same form used by initialize-instance.

When overloading clone, be sure to call call-next-method first and modify the returned object.

View in manual

Implementations

(clone (OBJ eieio-named) &rest PARAMS) in `eieio-base.el'.

Clone OBJ, initializing `:parent' to OBJ. All slots are unbound, except those initialized with PARAMS.

(clone (OBJ eieio-instance-inheritor) &rest PARAMS) in `eieio-base.el'.

Clone OBJ, initializing `:parent' to OBJ. All slots are unbound, except those initialized with PARAMS.

(clone (OBJ eieio-default-superclass) &rest PARAMS) in `eieio.el'.

Make a copy of OBJ, and then apply PARAMS.

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/eieio.el.gz
(cl-defgeneric clone (obj &rest params)
  "Make a copy of OBJ, and then supply PARAMS.
PARAMS is a parameter list of the same form used by `initialize-instance'.

When overloading `clone', be sure to call `call-next-method'
first and modify the returned object.")