projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b93eb68
)
Recognize defstruct slot names in various eieio functions
author
Thuna
<thuna.cing@gmail.com>
Wed, 19 Apr 2023 21:43:22 +0000
(23:43 +0200)
committer
Eli 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
patch
|
blob
|
history
diff --git
a/lisp/emacs-lisp/cl-preloaded.el
b/lisp/emacs-lisp/cl-preloaded.el
index 9445093f1439b17d1eb70d00609e1775e6b74aaa..5235be52996de8a8c8f0c104d5d77fc532975760 100644
(file)
--- a/
lisp/emacs-lisp/cl-preloaded.el
+++ b/
lisp/emacs-lisp/cl-preloaded.el
@@
-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