From 9dd6407bea15f3ceb6b4f2cdca0c3b492b4c0cb6 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Mon, 17 Dec 2018 16:05:35 +0100 Subject: [PATCH] docs: correct the descriptions of 'speller' and 'linter' functions Since the last release, the linter function is bound separately and no longer masks or overrides the speller function. --- doc/nano.texi | 8 +++++--- doc/nanorc.5 | 7 +++---- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/doc/nano.texi b/doc/nano.texi index cdadd8d8..bc089858 100644 --- a/doc/nano.texi +++ b/doc/nano.texi @@ -982,7 +982,6 @@ on the system and will be silently ignored otherwise.) @item linter @var{program} [@var{arg} @dots{}] Use the given @var{program} to do a syntax check on the current buffer. -(This overrides the speller function.) @item comment "@var{string}" Use the given string for commenting and uncommenting lines. @@ -1177,8 +1176,11 @@ Shows the current cursor position: the line, column, and character positions. Counts the number of words, lines and characters in the current buffer. @item speller -Invokes a spell-checking program (or linting program, -if the active syntax defines such a thing). +Invokes a spell-checking program, either the default one, or the one +defined by @option{--speller} or @code{set speller}. + +@item linter +Invokes a syntax-checking program (if the active syntax defines one). @item justify Justifies the current paragraph. A paragraph is a group of contiguous lines diff --git a/doc/nanorc.5 b/doc/nanorc.5 index 21af1a79..cdfaf8eb 100644 --- a/doc/nanorc.5 +++ b/doc/nanorc.5 @@ -343,7 +343,6 @@ system and will be silently ignored otherwise.) .TP .BI linter " program " \fR[ "arg " \fR...] Use the given \fIprogram\fR to run a syntax check on the current buffer. -(This overrides the speller function.) .TP .BI "comment """ string """ Use the given \fIstring\fR for commenting and uncommenting lines. @@ -534,11 +533,11 @@ Shows the current cursor position: the line, column, and character positions. Counts the number of words, lines and characters in the current buffer. .TP .B speller -Invokes a spell-checking program (or linting program, -if the active syntax defines such a thing). +Invokes a spell-checking program, either the default one, or the one +defined by \fB\-\-speller\fR or \fBset speller\fR. .TP .B linter -A synonym of \fBspeller\fR (for when the speller has not been configured). +Invokes a syntax-checking program (if the active syntax defines one). .TP .B justify Justifies the current paragraph. A paragraph is a group of contiguous lines