]> git.eshelyaron.com Git - emacs.git/commit
Move lexical-binding warning from checkdoc to byte-compiler
authorMattias Engdegård <mattiase@acm.org>
Sun, 15 Oct 2023 20:01:06 +0000 (22:01 +0200)
committerMattias Engdegård <mattiase@acm.org>
Sat, 21 Oct 2023 13:12:55 +0000 (15:12 +0200)
commita3db503351e9a8720cdea2f1ca42d55d2de684e2
tree299791970977df508b580a64040e86f7e1f30782
parent12c8cdb60cc41fb17a85c7e3f75f91cca2d60483
Move lexical-binding warning from checkdoc to byte-compiler

This warning is much more appropriate for the compiler, since lexical
binding affects what it can reason and warn about, than for checkdoc
as the warning has no bearing to documentation at all.
The move also improves the reach of the warning.

* etc/NEWS: Update.
* lisp/emacs-lisp/checkdoc.el (checkdoc-lexical-binding-flag)
(checkdoc-file-comments-engine): Move warning from here....
* lisp/emacs-lisp/bytecomp.el (byte-compile-file): ...to here.
* test/lisp/emacs-lisp/bytecomp-resources/no-byte-compile.el:
* test/lisp/emacs-lisp/bytecomp-tests.el
(bytecomp-tests--unescaped-char-literals)
(bytecomp-tests-function-put, bytecomp-tests--not-writable-directory)
(bytecomp-tests--target-file-no-directory):
Update tests.
(bytecomp-tests--log-from-compilation)
(bytecomp-tests--lexical-binding-cookie): New test.
etc/NEWS
lisp/emacs-lisp/bytecomp.el
lisp/emacs-lisp/checkdoc.el
test/lisp/emacs-lisp/bytecomp-resources/no-byte-compile.el
test/lisp/emacs-lisp/bytecomp-tests.el