mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-30 19:53:09 +00:00
Change the eieio-declare-slots function into a macro
* lisp/emacs-lisp/eieio-core.el (eieio-declare-slots): Change into a compile-only macro.
This commit is contained in:
parent
1250a24f8e
commit
c0b322e33c
@ -1085,9 +1085,10 @@ method invocation orders of the involved classes."
|
||||
These match if the argument is the name of a subclass of CLASS."
|
||||
(list eieio--generic-subclass-generalizer))
|
||||
|
||||
(defun eieio-declare-slots (&rest slots)
|
||||
(defmacro eieio-declare-slots (&rest slots)
|
||||
"Declare that SLOTS are known eieio object slot names."
|
||||
(setq eieio--known-slot-names (append slots eieio--known-slot-names)))
|
||||
`(eval-when-compile
|
||||
(setq eieio--known-slot-names (append ',slots eieio--known-slot-names))))
|
||||
|
||||
(provide 'eieio-core)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user