]> git.eshelyaron.com Git - emacs.git/commitdiff
Mention next-error-function in flymake-mode doc string
authorLars Ingebrigtsen <larsi@gnus.org>
Wed, 18 May 2022 12:13:16 +0000 (14:13 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Wed, 18 May 2022 13:33:57 +0000 (15:33 +0200)
* lisp/progmodes/flymake.el (flymake-mode): Note that you can set
next-error-function (bug#32322).

lisp/progmodes/flymake.el

index b5f4fff3c310053f0c7e326045c1ed4d9d91db6f..46a4fdfa3737e8592bab41c302515362c1036d50 100644 (file)
@@ -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