]> git.eshelyaron.com Git - emacs.git/commitdiff
Recognize defstruct slot names in various eieio functions
authorThuna <thuna.cing@gmail.com>
Wed, 19 Apr 2023 21:43:22 +0000 (23:43 +0200)
committerEli Zaretskii <eliz@gnu.org>
Wed, 3 May 2023 11:44:59 +0000 (14:44 +0300)
* lisp/emacs-lisp/cl-preloaded.el (cl-struct-define): Set
each slot's name's 'slot-name' property so that
'eieio--known-slot-name-p' can recognize them.  (Bug#62959)

Copyright-paperwork-exempt: yes

lisp/emacs-lisp/cl-preloaded.el

index 9445093f1439b17d1eb70d00609e1775e6b74aaa..5235be52996de8a8c8f0c104d5d77fc532975760 100644 (file)
@@ -176,6 +176,7 @@ supertypes from the most specific to least specific.")
                        (i 0)
                        (offset (if type 0 1)))
                    (dolist (slot slots)
+                     (put (car slot) 'slot-name t)
                      (let* ((props (cl--plist-to-alist (cddr slot)))
                             (typep (assq :type props))
                             (type (if (null typep) t