]> 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 13:18:54 +0000 (14:18 +0100)
commit73601787b45d08cdd5026ea36ff680bd49076950
treecc6161f0f10f6ec97e8b43d582b1c73395617935
parent5ec7d738655db209ef7375e340d3d2b0ae5fc3da
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