]> git.eshelyaron.com Git - emacs.git/commit
Flymake: protect against problematic invalid diagnostics
authorJoão Távora <joaotavora@gmail.com>
Thu, 26 Oct 2023 13:20:41 +0000 (14:20 +0100)
committerJoão Távora <joaotavora@gmail.com>
Thu, 26 Oct 2023 13:21:04 +0000 (14:21 +0100)
commit309823ff7796416414cee8c6f4d2650615c19f64
treebd1115635b27cc8b21dbf8e7fa54df9a3d45a214
parent7c668eb75b3e59819c9c3ddf00ed38cb89d3ca18
Flymake: protect against problematic invalid diagnostics

If a backend reports a diagnostic which is out of bounds, it still
lives in flymake--state and will still be cleaned up in the next run
of flymake--publish-diagnostics.  But if flymake--highlight-line
doesn't give it an overlay (which it didn't until now), things will
break afterwards.

See bug#66759 and https://github.com/joaotavora/eglot/discussions/1311

* lisp/progmodes/flymake.el (flymake--highlight-line): Set
flymake--diag-overlay earlier.
(Version): Bump to 1.3.7.
lisp/progmodes/flymake.el