diff options
| author | Mattias EngdegÄrd | 2023-09-17 12:49:40 +0200 |
|---|---|---|
| committer | Mattias EngdegÄrd | 2023-09-17 17:16:35 +0200 |
| commit | f8ea47ebf45c5ea0cd788667f7bdb805f42e08e0 (patch) | |
| tree | e494cdd6d08b6a38de3ce5d346feb2eb3f501e1c /java/org | |
| parent | e0070fc574a8621b2fbb1aaca678b974a3dc5fd5 (diff) | |
| download | emacs-f8ea47ebf45c5ea0cd788667f7bdb805f42e08e0.tar.gz emacs-f8ea47ebf45c5ea0cd788667f7bdb805f42e08e0.zip | |
Expanded defcustom type byte-compilation warnings (bug#65852)
Warn about more kinds of mistakes in :type arguments of `defcustom`
and `define-widget`. These include:
- misplaced keyword args, as in (const red :tag "A reddish hue")
- missing subordinate types, as in (repeat :tag "List of names")
or (choice list string)
- duplicated values, as in (choice (const yes) (const yes))
- misplaced `other` member, as in
(choice (const red) (other nil) (const blue))
- various type name mistakes, as in (vector bool functionp)
* lisp/emacs-lisp/bytecomp.el (byte-compile--defcustom-type-quoted)
(byte-compile-nogroup-warn): Remove.
(byte-compile-normal-call): Remove call to the above.
(bytecomp--cus-warn, bytecomp--check-cus-type)
(bytecomp--custom-declare): New.
Diffstat (limited to 'java/org')
0 files changed, 0 insertions, 0 deletions