mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
New function eieio-declare-slots
* lisp/emacs-lisp/eieio-core.el (eieio-declare-slots): New function to suppress compiler warnings about unknown slots.
This commit is contained in:
parent
a07c647a2a
commit
1250a24f8e
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue