]> git.eshelyaron.com Git - emacs.git/commit
Tweak Flymake commands flymake-goto-[next/prev]-error
authorJoão Távora <joaotavora@gmail.com>
Wed, 27 Sep 2017 11:42:20 +0000 (12:42 +0100)
committerJoão Távora <joaotavora@gmail.com>
Tue, 3 Oct 2017 00:03:20 +0000 (01:03 +0100)
commit2b48161ff386ce77b0d081565f05f6aebe4957f2
treea6eb2ae0092e6b019de589b484675bde99eec57c
parent4ae24d782b3477a41c0791067d437011651fb006
Tweak Flymake commands flymake-goto-[next/prev]-error

Add filters, useful for backends like the upcoming
flymake-elisp-checkdoc backend, for example, which litters everything
with low-priority notes.

Also re-implement wraparound for flymake-goto-next-error. Manual
mentions this, so it's probably a good idea to keep it.  Added a new
customization variable flymake-wrap-around to control it.

* lisp/progmodes/flymake.el (flymake-goto-prev-error)
(flymake-goto-next-error): Accept FILTER argument.
(flymake-wrap-around): New variable.
(flymake-goto-next-error): Wrap around according to flymake-wrap-around.

* test/lisp/progmodes/flymake-tests.el
(different-diagnostic-types, dummy-backends): Pass FILTER to
flymake-goto-prev-error.
(different-diagnostic-types)
(dummy-backends): Use flymake-wrap-around.
lisp/progmodes/flymake.el
test/lisp/progmodes/flymake-tests.el