emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 960008aa98 1/2: Mention next-error-function in flymake-mode doc s


From: Lars Ingebrigtsen
Subject: master 960008aa98 1/2: Mention next-error-function in flymake-mode doc string
Date: Wed, 18 May 2022 09:34:03 -0400 (EDT)

branch: master
commit 960008aa982e0481c77ef6a8b871e9c4b3014491
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    Mention next-error-function in flymake-mode doc string
    
    * lisp/progmodes/flymake.el (flymake-mode): Note that you can set
    next-error-function (bug#32322).
---
 lisp/progmodes/flymake.el | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/lisp/progmodes/flymake.el b/lisp/progmodes/flymake.el
index b5f4fff3c3..46a4fdfa37 100644
--- a/lisp/progmodes/flymake.el
+++ b/lisp/progmodes/flymake.el
@@ -1102,6 +1102,13 @@ The commands `flymake-goto-next-error' and
 `flymake-goto-prev-error' can be used to navigate among Flymake
 diagnostics annotated in the buffer.
 
+By default, `flymake-mode' doesn't override the \\[next-error] command, but
+if you're using Flymake a lot (and don't use the regular compilation
+mechanisms that often), if can be useful to put something like
+the following in your init file:
+
+  (setq next-error-function \\='flymake-goto-next-error)
+
 The visual appearance of each type of diagnostic can be changed
 by setting properties `flymake-overlay-control', `flymake-bitmap'
 and `flymake-severity' on the symbols of diagnostic types (like



reply via email to

[Prev in Thread] Current Thread [Next in Thread]