From 36fcdce88635a9aec3b42f91407c70039e152b0a Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Mon, 25 Jul 2022 10:27:15 +0200 Subject: [PATCH] docs: concisely describe how the linter behaves --- doc/nano.texi | 5 +++++ doc/nanorc.5 | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/doc/nano.texi b/doc/nano.texi index 07c332ff..8cf0f744 100644 --- a/doc/nano.texi +++ b/doc/nano.texi @@ -1482,6 +1482,11 @@ Invokes a full-buffer-processing program (if the active syntax defines one). @item linter Invokes a syntax-checking program (if the active syntax defines one). +If this program produces lines of the form "filename:linenum:charnum: +some message", then the cursor will be put at the indicated position +in the mentioned file while showing "some message" on the status bar. +You can move from message to message with @kbd{PgUp} and @kbd{PgDn}, +and leave linting mode with @kbd{^C} or @kbd{Enter}. @item justify Justifies the current paragraph (or the marked region). diff --git a/doc/nanorc.5 b/doc/nanorc.5 index 747c3df3..7acb0be2 100644 --- a/doc/nanorc.5 +++ b/doc/nanorc.5 @@ -691,6 +691,11 @@ Invokes a full-buffer-processing program (if the active syntax defines one). .TP .B linter Invokes a syntax-checking program (if the active syntax defines one). +If this program produces lines of the form "filename:linenum:charnum: +some message", then the cursor will be put at the indicated position +in the mentioned file while showing "some message" on the status bar. +You can move from message to message with and , +and leave linting mode with \fB^C\fR or . .TP .B justify Justifies the current paragraph (or the marked region).