Commit 1250a24f authored by Lars Ingebrigtsen's avatar Lars Ingebrigtsen

New function eieio-declare-slots

* lisp/emacs-lisp/eieio-core.el (eieio-declare-slots): New
function to suppress compiler warnings about unknown slots.
parent a07c647a
......@@ -1085,6 +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)
"Declare that SLOTS are known eieio object slot names."
(setq eieio--known-slot-names (append slots eieio--known-slot-names)))
(provide 'eieio-core)
;;; eieio-core.el ends here
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment