summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/multisession.el
diff options
context:
space:
mode:
authorMattias EngdegÄrd <mattiase@acm.org>2022-06-17 17:06:05 +0200
committerMattias EngdegÄrd <mattiase@acm.org>2022-06-17 17:25:29 +0200
commit73e75e18d170826e1838324d39ac0698948071f8 (patch)
tree7ef1b3359cdb6ad2f78c4a90c05e8063384ea0bb /lisp/emacs-lisp/multisession.el
parente9c50055ff989a670d024045aba0050371a28fef (diff)
downloademacs-73e75e18d170826e1838324d39ac0698948071f8.tar.gz
emacs-73e75e18d170826e1838324d39ac0698948071f8.tar.bz2
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 'lisp/emacs-lisp/multisession.el')
0 files changed, 0 insertions, 0 deletions