]> git.eshelyaron.com Git - emacs.git/commit
Add `next-error' support for flymake diagnostics buffers
authorMatthew Tromp <matthewktromp@gmail.com>
Tue, 22 Apr 2025 19:27:58 +0000 (15:27 -0400)
committerEshel Yaron <me@eshelyaron.com>
Sat, 10 May 2025 08:47:26 +0000 (10:47 +0200)
commit3cc77e0ba1d2c6e016196e1586eaf36c0951cfa1
treef24fcc53e29e070fb9df7aab04ad09eb35da94c3
parent016bc5ac7b16f850ac67d37b70767079c35d0335
Add `next-error' support for flymake diagnostics buffers

This adds `next-error' support for flymake diagnostics buffers.
Buffers created with `flymake-show-buffer-diagnostics' and
`flymake-show-project-diagnostics' are now next-error enabled,
and `next-error' and `previous-error' will navigate through
their listed diagnostics.
* lisp/progmodes/flymake.el (flymake-current-diagnostic-line)
(flymake--diagnostics-next-error): Add.
(flymake-show-diagnostic, flymake-show-buffer-diagnostics)
(flymake-show-project-diagnostics): Set next-error-last-buffer.
(flymake--tabulated-setup): Set next-error-function.
(Bug#77809)

Copyright-paperwork-exempt: yes
(cherry picked from commit ee8b4eaca12af0ef6bf0d37780efaa558c25d45e)
lisp/progmodes/flymake.el