mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
Fix compilation warning i eieio-base
* lisp/emacs-lisp/eieio-base.el (clone): Use eieio-object-class instead of obsolete function class-of.
This commit is contained in:
parent
6697cbf8f8
commit
98ba1c6b52
1 changed files with 1 additions and 1 deletions
|
|
@ -71,7 +71,7 @@ All slots are unbound, except those initialized with PARAMS."
|
||||||
(let ((nobj (if (stringp (car params))
|
(let ((nobj (if (stringp (car params))
|
||||||
(cl-call-next-method obj (pop params))
|
(cl-call-next-method obj (pop params))
|
||||||
(cl-call-next-method obj))))
|
(cl-call-next-method obj))))
|
||||||
(dolist (descriptor (eieio-class-slots (class-of nobj)))
|
(dolist (descriptor (eieio-class-slots (eieio-object-class nobj)))
|
||||||
(let ((slot (eieio-slot-descriptor-name descriptor)))
|
(let ((slot (eieio-slot-descriptor-name descriptor)))
|
||||||
(slot-makeunbound nobj slot)))
|
(slot-makeunbound nobj slot)))
|
||||||
(when params
|
(when params
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue