mirror of
https://github.com/masscollaborationlabs/emacs.git
synced 2025-07-19 02:10:10 +00:00
Fix bugs in eieio-oref-default related to class symbols
* lisp/emacs-lisp/eieio-core.el (class-p): Handle symbol properly. (eieio-oref-default): Handle class properly.
This commit is contained in:
parent
691b73f153
commit
b6a792bc62
1 changed files with 2 additions and 1 deletions
|
@ -769,7 +769,8 @@ Fills in OBJ's SLOT with its default value."
|
|||
(cl-check-type obj (or eieio-object class))
|
||||
(cl-check-type slot symbol)
|
||||
(let* ((cl (cond ((symbolp obj) (cl--find-class obj))
|
||||
(t (eieio--object-class obj))))
|
||||
((eieio-object-p obj) (eieio--object-class obj))
|
||||
(t obj)))
|
||||
(c (eieio--slot-name-index cl slot)))
|
||||
(if (not c)
|
||||
;; It might be missing because it is a :class allocated slot.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue