diff options
| -rw-r--r-- | lisp/emacs-lisp/eieio-core.el | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/eieio-core.el b/lisp/emacs-lisp/eieio-core.el index b6acab2a25a..620b47e68d2 100644 --- a/lisp/emacs-lisp/eieio-core.el +++ b/lisp/emacs-lisp/eieio-core.el | |||
| @@ -1085,9 +1085,10 @@ method invocation orders of the involved classes." | |||
| 1085 | These match if the argument is the name of a subclass of CLASS." | 1085 | These match if the argument is the name of a subclass of CLASS." |
| 1086 | (list eieio--generic-subclass-generalizer)) | 1086 | (list eieio--generic-subclass-generalizer)) |
| 1087 | 1087 | ||
| 1088 | (defun eieio-declare-slots (&rest slots) | 1088 | (defmacro eieio-declare-slots (&rest slots) |
| 1089 | "Declare that SLOTS are known eieio object slot names." | 1089 | "Declare that SLOTS are known eieio object slot names." |
| 1090 | (setq eieio--known-slot-names (append slots eieio--known-slot-names))) | 1090 | `(eval-when-compile |
| 1091 | (setq eieio--known-slot-names (append ',slots eieio--known-slot-names)))) | ||
| 1091 | 1092 | ||
| 1092 | (provide 'eieio-core) | 1093 | (provide 'eieio-core) |
| 1093 | 1094 | ||