]> git.eshelyaron.com Git - emacs.git/commit
Fix Flymake's user-visible accessors of diagnostic positions
authorJoão Távora <joaotavora@gmail.com>
Wed, 3 Jul 2019 23:34:26 +0000 (00:34 +0100)
committerJoão Távora <joaotavora@gmail.com>
Wed, 3 Jul 2019 23:38:46 +0000 (00:38 +0100)
commit5b48dab412c61980bca63a67a5d548d07e56b404
tree42a9d05e5c1022321e1c7f98381ef68e76d9d1ac
parent22d99801edb8647c7adad01e6825a12849426419
Fix Flymake's user-visible accessors of diagnostic positions

Diagnostics are supported by overlays, and they can legitimately move
around.  So flymake-diagnostic-beg and flymake-diagnostic-end must
look up the overlay positions, not the immutable slots of the
flymake--diag structure, which become stale.

* lisp/progmodes/flymake.el (version): Bump to 1.0.8.
(flymake-diagnostic-beg, flymake-diagnostic-end): Use diag's
overlay.
(flymake-show-diagnostic): Use flymake-diagnostic-end,
flymake-diagnostic-beg.
lisp/progmodes/flymake.el