]> git.eshelyaron.com Git - emacs.git/commit
Prevent empty diagnostic tags vector hiding main fontification
authorBrian Leung <bkleung89@gmail.com>
Tue, 1 Mar 2022 15:59:05 +0000 (07:59 -0800)
committerJoão Távora <joaotavora@gmail.com>
Wed, 2 Mar 2022 10:35:25 +0000 (10:35 +0000)
commit4f1f06375a219178ba681a6101af1fece73024b0
treec9351b8d1e67d321bd5ce68b9dc6eb6a6cfcec55
parent8b31247f1c6626b289e75460e0d0978bf446e05a
Prevent empty diagnostic tags vector hiding main fontification

* eglot.el (eglot-handle-notification): Require that the resulting
list of faces is non-empty and that each face corresponds only to a
known tag.

For unknown tags, we don't pass any additional face information to
Flymake, and instead expect it to make the appropriate overlay with
the "severity" property of the Diagnostic.

Co-authored-by: João Távora <joaotavora@gmail.com>
GitHub-reference: fix https://github.com/joaotavora/eglot/issues/851
lisp/progmodes/eglot.el