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
.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

View File

@ -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}"

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.)
.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