nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 91155486c70255edea6beb599c6d07dcc8abe073
parent 63f2be7a2f70fd967e043149d1bf1eeeeb1bd175
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Tue, 23 Oct 2018 19:26:45 +0200

docs: document the slightly changed workings of the --view option

Diffstat:
Mdoc/nano.1 | 2++
Mdoc/nano.texi | 12++++++++----
Mdoc/nanorc.5 | 4+++-
3 files changed, 13 insertions(+), 5 deletions(-)

diff --git a/doc/nano.1 b/doc/nano.1 @@ -245,6 +245,8 @@ default behavior of saving a file in the format that it had. .TP .BR \-v ", " \-\-view Just view the file and disallow editing: read-only mode. +This mode allows the user to open also other files for viewing, +unless \fB--restricted\fR is given too. .TP .BR \-w ", " \-\-nowrap Disable the hard-wrapping of long lines. This option conflicts with diff --git a/doc/nano.texi b/doc/nano.texi @@ -374,9 +374,11 @@ default behavior of saving a file in the format that it had. @item -v @itemx --view -Don't allow the contents of the file to be altered. Note that this -option should NOT be used in place of correct file permissions to -implement a read-only file. +Don't allow the contents of the file to be altered: read-only mode. +This mode allows the user to open also other files for viewing, +unless @option{--restricted} is given too. +(Note that this option should NOT be used in place of correct +file permissions to implement a read-only file.) @item -w @itemx --nowrap @@ -911,7 +913,9 @@ default behavior of saving a file in the format that it had. (This option has no effect when you also use @code{set noconvert}.) @item set view -Disallow file modification. +Disallow file modification: read-only mode. +This mode allows the user to open also other files for viewing, +unless @option{--restricted} is given on the command line. @anchor{Whitespace} @item set whitespace "@var{string}" diff --git a/doc/nanorc.5 b/doc/nanorc.5 @@ -280,7 +280,9 @@ default behavior of saving a file in the format that it had. (This option has no effect when you also use \fBset noconvert\fR.) .TP .B set view -Disallow file modification. +Disallow file modification: read-only mode. +This mode allows the user to open also other files for viewing, +unless \fB--restricted\fR is given on the command line. .TP .B set whitespace "\fIstring\fP" Set the two characters used to indicate the presence of tabs and