]> git.eshelyaron.com Git - emacs.git/commit
Hook Flymake onto proper checkdoc and byte-compile interfaces
authorJoão Távora <joaotavora@gmail.com>
Sun, 1 Oct 2017 12:30:38 +0000 (13:30 +0100)
committerJoão Távora <joaotavora@gmail.com>
Tue, 3 Oct 2017 13:18:55 +0000 (14:18 +0100)
commit30ea272fe472ed77eab40179f43bb7bee5184912
treed9f10b68676c1d0bc13ad4a242ffe41fccb4dde7
parent2e84179a291c6fce57d5e6c44121d77160487615
Hook Flymake onto proper checkdoc and byte-compile interfaces

The interfaces in bytecomp.el and checkdoc.el are mostly boilerplate,
with little knowledge of actual internals or thought given to the
usefulness of said interfaces in contexts other than Flymake's.

* lisp/emacs-lisp/bytecomp.el
(byte-compile-log-warning-function): New variable.
(byte-compile-log-warning): Use it.
(byte-compile--log-warning-for-byte-compile): New function.

* lisp/emacs-lisp/checkdoc.el
(checkdoc-create-error-function): New variable.
(checkdoc-create-error): Use it.
(checkdoc--create-error-for-checkdoc): New function.xo

* lisp/progmodes/flymake-elisp.el (flymake-elisp--checkdoc-1):
Use checkdoc-create-error-function.
(flymake-elisp--batch-byte-compile): Use
byte-compile-log-warning-function.
lisp/emacs-lisp/bytecomp.el
lisp/emacs-lisp/checkdoc.el
lisp/progmodes/flymake-elisp.el