]> git.eshelyaron.com Git - emacs.git/commit
Fancy Flymake mode-line construct displays status
authorJoão Távora <joaotavora@gmail.com>
Wed, 27 Sep 2017 01:31:58 +0000 (02:31 +0100)
committerJoão Távora <joaotavora@gmail.com>
Tue, 3 Oct 2017 00:03:20 +0000 (01:03 +0100)
commit4a110bf81682496697ca792a71ebf93e388e86a2
tree6a9fccbfda80bdaf15ce921e9acb9e4aa8157c56
parent2b48161ff386ce77b0d081565f05f6aebe4957f2
Fancy Flymake mode-line construct displays status

Imitates compilation-mode's mode-line a bit, and uses its faces.

* lisp/progmodes/flymake.el
(flymake-error, flymake-warning, flymake-note): Add
mode-line-face to these flymake error types.
(flymake-note): Notes don't need a noisy fringe bitmap.
(flymake-lighter): Delete.
(flymake--update-lighter): Delete.
(flymake--mode-line-format): New function and variable.
(flymake--diagnostics-table): New buffer-local variable.
(flymake--handle-report): Don't update "lighters".  Affect
flymake--diagnostics-table.
(flymake--run-backend): Init flymake--diagnostics-table for backend.
(flymake-mode): Use flymake--mode-line-format.
(flymake-mode): Don't update lighter.
(flymake--highlight-line): Be more careful when overriding a
nil default overlay property.
lisp/progmodes/flymake.el