diff options
| author | Stefan Monnier | 2025-04-06 23:39:40 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2025-04-07 00:06:52 -0400 |
| commit | 71afa12941ebbd6fa2c010064de01db681985279 (patch) | |
| tree | 6a2c7f8ce3098583585672117f63f3435a53c7c7 /java | |
| parent | 308a5ff0f8997a287a496993d92f92c6a8a0f393 (diff) | |
| download | emacs-71afa12941ebbd6fa2c010064de01db681985279.tar.gz emacs-71afa12941ebbd6fa2c010064de01db681985279.zip | |
eieio: Emit compilation warnings a bit more thoroughly
We used to warn about unknown slots only in `oref`: add the same check
for `oset` and `slot-boundp`.
Similarly, we warned about obsolete name args only when calling the
constructors: add the same check to `make-instance`.
* lisp/emacs-lisp/eieio-core.el (eieio--check-slot-name): New function
extracted from the compiler-macro of `eieio-oref`.
(eieio-oref, eieio-oset): Use it.
* lisp/emacs-lisp/eieio.el (slot-boundp): Use it.
(eieio--constructor-macro): Add category to warning.
(make-instance): Add compiler-macro to warn about obsolete name.
Diffstat (limited to 'java')
0 files changed, 0 insertions, 0 deletions