]> 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 13:18:54 +0000 (14:18 +0100)
commite0df7b9699539a6831dd7d72d6845d2995fb619e
treef94fa89ece1463c79b0e015fa95f4d2fc12b9b9b
parent73601787b45d08cdd5026ea36ff680bd49076950
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