]> git.eshelyaron.com Git - emacs.git/commitdiff
(eieio--generic-subclass-specializers): Autoload class
authorStefan Monnier <monnier@iro.umontreal.ca>
Fri, 8 Mar 2024 16:57:22 +0000 (11:57 -0500)
committerEshel Yaron <me@eshelyaron.com>
Mon, 11 Mar 2024 09:21:28 +0000 (10:21 +0100)
* lisp/emacs-lisp/eieio-core.el (eieio--generic-subclass-specializers):
Don't forget to handle autoloaded classes.

(cherry picked from commit 345cdd7a70558cd47c2ab3e124e2352debaa57cb)

lisp/emacs-lisp/eieio-core.el

index 9a73e7c74418024f0106f58723c104a5e1e54bf7..a2f7c4172a3f96b8c9844340968f9022c30dc9a5 100644 (file)
@@ -1079,6 +1079,8 @@ method invocation orders of the involved classes."
 
 (defun eieio--generic-subclass-specializers (tag &rest _)
   (when (cl--class-p tag)
+    (when (eieio--class-p tag)
+      (setq tag (eieio--full-class-object tag))) ;Autoload, if applicable.
     (mapcar (lambda (class) `(subclass ,class))
             (cl--class-allparents tag))))