]> git.eshelyaron.com Git - emacs.git/commit
eieio-core.el: Always put a parent in the parents of a class
authorStefan Monnier <monnier@iro.umontreal.ca>
Thu, 7 Mar 2024 22:45:41 +0000 (17:45 -0500)
committerEshel Yaron <me@eshelyaron.com>
Mon, 11 Mar 2024 09:16:59 +0000 (10:16 +0100)
commitfe63c3481e8ab6d2e98c328ff308d8a3328ebd8e
tree717fddc4cecfb103ce32224e1cd3ec743932f8b4
parentf20c20036f7c2e1d84c5f03e9e23f41372e416c5
eieio-core.el: Always put a parent in the parents of a class

* lisp/emacs-lisp/eieio-core.el (eieio-defclass-internal):
Always put a parent in the `parents` slot of the class.

* lisp/emacs-lisp/eieio.el (eieio-class-parents): Remove the
`eieio-default-superclass` if it's the only parent.
(child-of-class-p): Handle all classes in the parents.
(eieio-default-superclass): Adjust docstring.

(cherry picked from commit 945af4d9d11192d262f4fabbc66ee83f5beefc86)
lisp/emacs-lisp/eieio-core.el
lisp/emacs-lisp/eieio.el