From 3be819844c40a64059ce49b56a24f9693b3e261b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Nikolaus?= Date: Mon, 8 Dec 2025 12:06:26 +0100 Subject: [PATCH] Handle class object in slot 0 on Emacs 30+ Emacs 30+ stores an EIEIO class object in slot 0 instead of a symbol. Convert it to the class name symbol to preserve the expected representation and maintain compatibility with older Emacs and existing data. --- closql.el | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/closql.el b/closql.el index a2ad447..8072799 100644 --- a/closql.el +++ b/closql.el @@ -506,7 +506,12 @@ (cl-coerce (let* ((length (length object)) (vector (make-vector length -1))) (dotimes (i length) - (aset vector i (aref object i))) + (let ((elt (aref object i))) + (aset vector i + ;; In Emacs 30+, slot 0 is a class object, not a symbol. + (if (and (= i 0) (eieio--class-p elt)) + (eieio--class-name elt) + elt)))) vector) type))