diff options
| author | João Távora | 2019-11-02 16:38:53 +0000 |
|---|---|---|
| committer | João Távora | 2019-11-02 16:38:53 +0000 |
| commit | adb5f45d7bc4612916a5b8e4bd2b92d49119b57a (patch) | |
| tree | 7a4f87c4e8023ad8765734d4a2fcab6bff8fe680 /doc/misc | |
| parent | 455e753a2b8fa2e83d23be1771f3371ba90b85f9 (diff) | |
| download | emacs-adb5f45d7bc4612916a5b8e4bd2b92d49119b57a.tar.gz emacs-adb5f45d7bc4612916a5b8e4bd2b92d49119b57a.zip | |
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.
Diffstat (limited to 'doc/misc')
| -rw-r--r-- | doc/misc/flymake.texi | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/misc/flymake.texi b/doc/misc/flymake.texi index cedf1d84f90..21653b4a6d0 100644 --- a/doc/misc/flymake.texi +++ b/doc/misc/flymake.texi | |||
| @@ -337,6 +337,11 @@ error. If the overlay property @code{priority} is not specified in | |||
| 337 | it and help sort overlapping overlays. | 337 | it and help sort overlapping overlays. |
| 338 | 338 | ||
| 339 | @item | 339 | @item |
| 340 | @vindex flymake-type-name | ||
| 341 | @code{flymake-type-name} is a string used to succinctly name the error | ||
| 342 | type, in case the name of the symbol associated with it is very long. | ||
| 343 | |||
| 344 | @item | ||
| 340 | @vindex flymake-category | 345 | @vindex flymake-category |
| 341 | @code{flymake-category} is a symbol whose property list is considered | 346 | @code{flymake-category} is a symbol whose property list is considered |
| 342 | the default for missing values of any other properties. | 347 | the default for missing values of any other properties. |