]> git.eshelyaron.com Git - emacs.git/commit
Correctly filter Flymake diagnostic types shown in mode-line
authorJoão Távora <joaotavora@gmail.com>
Tue, 5 Jun 2018 13:31:38 +0000 (14:31 +0100)
committerJoão Távora <joaotavora@gmail.com>
Tue, 5 Jun 2018 14:18:04 +0000 (15:18 +0100)
commitaadac04923c9ae47f0bccc706857b94166c9d355
treed9eb075294247addb0292705e5026fd147b42624
parentfb759a75007d38a8aea6e8c1a22bbc004453a73f
Correctly filter Flymake diagnostic types shown in mode-line

Thus, if a package foo has its own types foo-error and
foo-warning, and if the buffer has no errors, the mode-line
will correctly show `[0 0]' (zero errors and warnings) instead
of `[0 0 0 0]' (zero errors, zero foo-errors, zero warnings,
zero  foo-warnings).

* lisp/progmodes/flymake.el
(flymake--mode-line-format): Coalesce diagnostic types based on
the severity, not the symbol.
lisp/progmodes/flymake.el