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

master
Benno Schulenberg 2018-10-23 19:26:45 +02:00
parent 63f2be7a2f
commit 91155486c7
3 changed files with 13 additions and 5 deletions

View File

@ -245,6 +245,8 @@ default behavior of saving a file in the format that it had.
.TP .TP
.BR \-v ", " \-\-view .BR \-v ", " \-\-view
Just view the file and disallow editing: read-only mode. 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 .TP
.BR \-w ", " \-\-nowrap .BR \-w ", " \-\-nowrap
Disable the hard-wrapping of long lines. This option conflicts with Disable the hard-wrapping of long lines. This option conflicts with

View File

@ -374,9 +374,11 @@ default behavior of saving a file in the format that it had.
@item -v @item -v
@itemx --view @itemx --view
Don't allow the contents of the file to be altered. Note that this Don't allow the contents of the file to be altered: read-only mode.
option should NOT be used in place of correct file permissions to This mode allows the user to open also other files for viewing,
implement a read-only file. 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 @item -w
@itemx --nowrap @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}.) (This option has no effect when you also use @code{set noconvert}.)
@item set view @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} @anchor{Whitespace}
@item set whitespace "@var{string}" @item set whitespace "@var{string}"

View File

@ -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.) (This option has no effect when you also use \fBset noconvert\fR.)
.TP .TP
.B set view .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 .TP
.B set whitespace "\fIstring\fP" .B set whitespace "\fIstring\fP"
Set the two characters used to indicate the presence of tabs and Set the two characters used to indicate the presence of tabs and