]> 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 00:07:32 +0000 (01:07 +0100)
commitc1661fc80c4e0a33e986ca113b0eee21bde036a3
tree4f6821f3629653e20da84f99a388c42fdc7c258e
parent3ecfe98cafa031f0e50da0a189434b9e2749e436
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