]> git.eshelyaron.com Git - emacs.git/commitdiff
* Make comp ignore EIEIO classes (bug#70141)
authorAndrea Corallo <acorallo@gnu.org>
Mon, 8 Apr 2024 09:21:37 +0000 (11:21 +0200)
committerEshel Yaron <me@eshelyaron.com>
Wed, 10 Apr 2024 20:28:11 +0000 (22:28 +0200)
* lisp/emacs-lisp/comp-cstr.el (comp--all-classes): Ignore EIEIO classes.

(cherry picked from commit c9d7721db6eeda8efa7b5a49c9a4bcaacd078791)

lisp/emacs-lisp/comp-cstr.el

index 718217c38ac20fdc67eedafe525277bad1c5f41b..6509def76a2f951f87dd91578a7854fbb2a506ab 100644 (file)
@@ -89,7 +89,10 @@ Integer values are handled in the `range' slot.")
   "Return all non built-in type names currently defined."
   (let (res)
     (mapatoms (lambda (x)
-                (when (cl-find-class x)
+                (when-let ((class (cl-find-class x))
+                           ;; Ignore EIEIO classes as they can be
+                           ;; redefined at runtime.
+                           (gate (not (eq 'eieio--class (type-of class)))))
                   (push x res)))
               obarray)
     res))