]> git.eshelyaron.com Git - emacs.git/commit
Flymake: more powerful flymake-make-diagnostic and rework manual
authorJoão Távora <joaotavora@gmail.com>
Thu, 17 Apr 2025 21:00:39 +0000 (22:00 +0100)
committerEshel Yaron <me@eshelyaron.com>
Tue, 22 Apr 2025 14:08:23 +0000 (16:08 +0200)
commit565992c3f14817263779f7adc2124fd3419d174f
treef8216e12de8bb1c9d005ec3a766be5a20c4f0cb7
parentaa8ddc885684aae4cc451d9e3c07a4e1be9c32e9
Flymake: more powerful flymake-make-diagnostic and rework manual

Flymake backends may now explicitly specify an origin and a code for a
diagnostic in addition to the textual description.  This change lays
groundwork for richer diagnostic listings and user options for
summarizing diagnostics, addressing bug#77439 and bug#77480.

* doc/misc/flymake.texi (Flymake API): Rename from "Extending
Flymake".  Rework.
(Inspecting diagnostics): New section.

* lisp/progmodes/flymake.el (flymake--diag): Add origin, code and
message.  Remove text.
(flymake-make-diagnostic): Support new origin, code and message.
(flymake-diagnostic-text): Rework.

(cherry picked from commit 0fe05a920adc457d6f4adca71979059b8e2d0253)
doc/misc/flymake.texi
lisp/progmodes/flymake.el