diff options
| author | Mattias EngdegÄrd | 2022-06-17 17:06:05 +0200 |
|---|---|---|
| committer | Mattias EngdegÄrd | 2022-06-17 17:25:29 +0200 |
| commit | 73e75e18d170826e1838324d39ac0698948071f8 (patch) | |
| tree | 7ef1b3359cdb6ad2f78c4a90c05e8063384ea0bb /lib/diffseq.h | |
| parent | e9c50055ff989a670d024045aba0050371a28fef (diff) | |
| download | emacs-73e75e18d170826e1838324d39ac0698948071f8.tar.gz emacs-73e75e18d170826e1838324d39ac0698948071f8.zip | |
Warn about misplaced or duplicated function/macro declarations
Doc strings, `declare` and `interactive` forms must appear in that
order and at most once each. Complain if they don't, instead of
silently ignoring the problem (bug#55905).
* lisp/emacs-lisp/byte-run.el (byte-run--parse-body)
(byte-run--parse-declarations): New.
(defmacro, defun): Check for declaration well-formedness as
described above. Clarify doc strings. Refactor some common code.
* test/lisp/emacs-lisp/bytecomp-resources/fun-attr-warn.el:
* test/lisp/emacs-lisp/bytecomp-tests.el (bytecomp-fun-attr-warn):
New test.
Diffstat (limited to 'lib/diffseq.h')
0 files changed, 0 insertions, 0 deletions