diff options
author | João Távora <joaotavora@gmail.com> | 2024-07-18 01:09:10 +0100 |
---|---|---|
committer | João Távora <joaotavora@gmail.com> | 2025-01-14 17:47:17 +0000 |
commit | 0ff82eb48725e15bb87a75d4f937b75c2482c59b (patch) | |
tree | b15b9c8b59cb9d27f010fdfa37e90b538f423470 /lisp/emacs-lisp/edebug.el | |
parent | 3a1b36a39dcd5a860a91a403f96721109203934a (diff) | |
download | emacs-0ff82eb48725e15bb87a75d4f937b75c2482c59b.tar.gz emacs-0ff82eb48725e15bb87a75d4f937b75c2482c59b.tar.bz2 emacs-0ff82eb48725e15bb87a75d4f937b75c2482c59b.zip |
Flymake: more ambitious cleanup in flymake-mode (bug#69809)
Further improve flymake-mode idempotency by not nuke existing overlays.
This means multiple flymake-mode invocations do the same as just one
one, with minimal or no additional side effects. This is good for
people with lots of 'flymake-mode' in hooks.
The foreign diagnostic importation has been refactored into a separate
function and moved to the "really start" section of 'flymake-start'.
The duplication problem appears to be avoided by some heuristics in
flymake-highlight-line.
A new test has been added.
* lisp/progmodes/flymake.el (flymake--import-foreign-diagnostics): New helper
(flymake-start): Use it.
(flymake-mode): Don't nuke overlays here.
* test/lisp/progmodes/flymake-tests.el (foreign-diagnostics): New
test.
Diffstat (limited to 'lisp/emacs-lisp/edebug.el')
0 files changed, 0 insertions, 0 deletions