]> git.eshelyaron.com Git - emacs.git/commit
Flymake and backends exchange hints abouts changed regions
authorJoão Távora <joaotavora@gmail.com>
Fri, 15 Jun 2018 11:17:37 +0000 (12:17 +0100)
committerJoão Távora <joaotavora@gmail.com>
Fri, 15 Jun 2018 13:59:42 +0000 (14:59 +0100)
commit3e7dff88928b568f8d4126c7fe2251662d140be6
treecc16b002a6bf1b4515e6f92f7ac9b2e8a62d2f67
parentaeb6b2e31fea5d3fa78e2f8a0895dc86f6b4a7a6
Flymake and backends exchange hints abouts changed regions

* lisp/progmodes/flymake.el (flymake--delete-own-overlays): Accept
BEG and END.  Rename from flymake-delete-own-overlays.
(flymake-diagnostic-functions): Describe :region, :recent-changes
in docstring.
(flymake--handle-report): Accept REGION.
(flymake--run-backend): Accept optional ARGS to pass to backend
fn.
(flymake--recent-changes): New buffer-local variable.
(flymake-start): Call flymake--run-backend with recent changes.
(flymake-mode): Initialize flymake--recent-changes.  Call
flymake--delete-own-overlays.
(flymake-after-change-function): Collect recent changes.

* doc/misc/flymake.texi (Backend functions): Describe
:recent-changes and :region.

* etc/NEWS (Flymake): Mention improvements in backend communication.
doc/misc/flymake.texi
etc/NEWS
lisp/progmodes/flymake.el