]> git.eshelyaron.com Git - emacs.git/commit
Allow flymake diagnostic types to have shorter names
authorJoão Távora <joaotavora@gmail.com>
Sat, 2 Nov 2019 16:38:53 +0000 (16:38 +0000)
committerJoão Távora <joaotavora@gmail.com>
Sat, 2 Nov 2019 16:38:53 +0000 (16:38 +0000)
commitadb5f45d7bc4612916a5b8e4bd2b92d49119b57a
tree7a4f87c4e8023ad8765734d4a2fcab6bff8fe680
parent455e753a2b8fa2e83d23be1771f3371ba90b85f9
Allow flymake diagnostic types to have shorter names

Eglot, a third-party package which uses Flymake, has its own
diagnostic types such as 'eglot-error', 'eglot-warning', etc...  While
not being too long, they will not fit in the type column of the "list
all diagnostics" buffer.  This commit allows diagnostic types to have
user-defined names and also assigns names to the default categories.

* doc/misc/flymake.texi (Flymake error types): Describe
flymake-type-name prop.

* lisp/progmodes/flymake.el (flymake--diagnostics-buffer-entries):
Use type names.
(flymake-error, flymake-warning, flymake-note): Give these
diagnostic categories default type names.
doc/misc/flymake.texi
lisp/progmodes/flymake.el