]> git.eshelyaron.com Git - emacs.git/commit
Fix a bug in Flymake handling of region-specific reports
authorJoão Távora <joaotavora@gmail.com>
Fri, 15 Jun 2018 14:48:59 +0000 (15:48 +0100)
committerJoão Távora <joaotavora@gmail.com>
Fri, 15 Jun 2018 14:49:44 +0000 (15:49 +0100)
commit115decb07d99be74c114141a6745cfd3603c7aaf
treed19f9e60fa532c55aa2bea7f37a3f1bd47c8451f
parent4221809b00e526892b7ff3979b3829eb493f0616
Fix a bug in Flymake handling of region-specific reports

The backend's diagnostic list must be updated too, not just cleared.

* lisp/progmodes/flymake.el (flymake--diag): Add overlay field.
(flymake--highlight-line): Return created overlay.
(flymake--handle-report): Iterate the backend's diagnostics, not
the overlays.  Set diagnostic overlay.
(flymake--run-backend): Don't clean diagnostic list here.
(flymake-mode): Call delete-overlay directly.
lisp/progmodes/flymake.el