From a14c8943258810b5fca09b9dbdd8a7c40d7bdd07 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Mon, 17 Aug 2020 14:20:03 +0200 Subject: [PATCH] docs: add a cross-reference from 'findbracket' to 'set matchbrackets' --- doc/nano.texi | 7 ++++--- doc/nanorc.5 | 6 +++--- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/doc/nano.texi b/doc/nano.texi index 67276db2..8109017f 100644 --- a/doc/nano.texi +++ b/doc/nano.texi @@ -861,8 +861,9 @@ Display line numbers to the left of the text area. @item set locking Enable vim-style lock-files for when editing files. +@anchor{@code{set matchbrackets}} @item set matchbrackets "@var{characters}" -Set the opening and closing brackets that can be found by bracket +Specify the opening and closing brackets that can be found by bracket searches. This may not include blank characters. The opening set must come before the closing set, and the two sets must be in the same order. The default value is @t{"(<[@{)>]@}"}. @@ -1423,8 +1424,8 @@ Goes to a specific line (and column if specified). Negative numbers count from the end of the file (and end of the line). @item findbracket -Moves the cursor to the bracket (brace, parenthesis, etc.) that matches -(pairs) with the one under the cursor. +Moves the cursor to the bracket (or brace or parenthesis, etc.) that matches +(pairs) with the one under the cursor. @xref{@code{set matchbrackets}}. @item anchor Places an anchor at the current line, or removes it when already present. diff --git a/doc/nanorc.5 b/doc/nanorc.5 index e17f032e..25850ce1 100644 --- a/doc/nanorc.5 +++ b/doc/nanorc.5 @@ -172,7 +172,7 @@ Display line numbers to the left of the text area. Enable vim-style lock-files for when editing files. .TP .BI "set matchbrackets """ characters """ -Set the opening and closing brackets that can be found by bracket +Specify the opening and closing brackets that can be found by bracket searches. This may not include blank characters. The opening set must come before the closing set, and the two sets must be in the same order. The default value is "\fB(<[{)>]}\fP". @@ -723,8 +723,8 @@ Goes to a specific line (and column if specified). Negative numbers count from the end of the file (and end of the line). .TP .B findbracket -Moves the cursor to the bracket (brace, parenthesis, etc.) that matches -(pairs) with the one under the cursor. +Moves the cursor to the bracket (or brace or parenthesis, etc.) that matches +(pairs) with the one under the cursor. See \fBset matchbrackets\fR. .TP .B anchor Places an anchor at the current line, or removes it when already present.