CVS code -
+- General:
+ - Fix option descriptions. At least one of the two parts of
+ +LINE,COLUMN must be specified at all times; COLUMN is not the
+ only optional value. Also fix a wording problem in
+ -W/--wordbounds. Changes to usage(), nano.1, nanorc.5,
+ rnano.1, nano.texi, and nanorc.sample.in. (DLR)
GNU nano 1.3.12 - 2006.06.26
- General:
.\" warranty.
.\"
.\" $Id$
-.TH NANO 1 "version 1.3.12" "June 7, 2006"
+.TH NANO 1 "version 1.9.99pre1" "June 26, 2006"
.\" Please adjust this date whenever revising the manpage.
.\"
.SH SYNOPSIS
.B nano
-.I [OPTIONS]\ [[\+LINE[,COLUMN]]\ FILE]...
+.I [OPTIONS]\ [[\+LINE,COLUMN]\ FILE]...
.br
.SH DESCRIPTION
.SH OPTIONS
.TP
-.B \+\fILINE\fP[,\fICOLUMN\fP]
+.B \+\fILINE\fP,\fICOLUMN\fP
Places cursor at line number \fILINE\fP and column number \fICOLUMN\fP
-on startup, instead of the default of line 1, column 1.
+(at least one of which must be specified) on startup, instead of the
+default of line 1, column 1.
.TP
.B \-?
Same as \fB-h (\-\-help)\fP.
.\" warranty.
.\"
.\" $Id$
-.TH NANORC 5 "version 1.3.12" "May 24, 2006"
+.TH NANORC 5 "version 1.9.99pre1" "June 26, 2006"
.\" Please adjust this date whenever revising the manpage.
.\"
.SH NAME
.TP
.B set/unset wordbounds
Detect word boundaries more accurately by treating punctuation
-characters as part of a word.
+characters as parts of words.
.TP
.B syntax "\fIstr\fP" ["\fIfileregex\fP" ... ]
Defines a syntax named \fIstr\fP which can be activated via the
.\" warranty.
.\"
.\" $Id$
-.TH RNANO 1 "version 1.3.12" "May 1, 2006"
+.TH RNANO 1 "version 1.9.99pre1" "June 26, 2006"
.\" Please adjust this date whenever revising the manpage.
.\"
.SH NAME
.SH SYNOPSIS
.B rnano
-.I [OPTIONS]\ [[\+LINE[,COLUMN]]\ FILE]...
+.I [OPTIONS]\ [[\+LINE,COLUMN]\ FILE]...
.br
.SH DESCRIPTION
.SH OPTIONS
.TP
-.B \+\fILINE\fP[,\fICOLUMN\fP]
+.B \+\fILINE\fP,\fICOLUMN\fP
Places cursor at line number \fILINE\fP and column number \fICOLUMN\fP
-on startup, instead of the default of line 1, column 1.
+(at least one of which must be specified) on startup, instead of the
+default of line 1, column 1.
.TP
.B \-?
Same as \fB-h (\-\-help)\fP.
# set whitespace " "
## Detect word boundaries more accurately by treating punctuation
-## characters as part of a word.
+## characters as parts of words.
# set wordbounds
@c Run 'makeinfo' rather than 'texinfo-format-buffer'.
@smallbook
@set EDITION 0.1
-@set VERSION 1.3.12
-@set UPDATED 20 Jun 2006
+@set VERSION 1.9.99pre1
+@set UPDATED 26 Jun 2006
@dircategory Editors
@direntry
@titlepage
@title GNU @code{nano}
@subtitle a small and friendly text editor.
-@subtitle version 1.3.12
+@subtitle version 1.9.99pre1
@author Chris Allegretta
@page
@quotation
@code{nano [OPTION]@dots{} [[+LINE] FILE]@dots{}}
+@code{nano [OPTION]@dots{} [[+,COLUMN] FILE]@dots{}}
+
@code{nano [OPTION]@dots{} [[+LINE,COLUMN] FILE]@dots{}}
@end quotation
@code{nano} takes the following options from the command line:
@table @code
-@item +LINE[,COLUMN]
-Start at line number LINE and column number COLUMN instead of the
-default of line 1, column 1.
+@item +LINE,COLUMN
+Start at line number LINE and column number COLUMN (at least one of
+which must be specified) instead of the default of line 1, column 1.
@item -?
Same as @code{-h, --help}.
@item -W, --wordbounds
Detect word boundaries more accurately by treating punctuation
-characters as part of a word.
+characters as parts of words.
@item -Y <str>, --syntax=<str>
Specify a specific syntax highlighting from the nanorc to use, if
/* Explain how to properly use nano and its command line options. */
void usage(void)
{
- printf(_("Usage: nano [OPTIONS] [[+LINE[,COLUMN]] FILE]...\n\n"));
+ printf(_("Usage: nano [OPTIONS] [[+LINE,COLUMN] FILE]...\n\n"));
printf(
#ifdef HAVE_GETOPT_LONG
_("Option\t\tGNU long option\t\tMeaning\n")
#endif
);
print_opt("-h, -?", "--help", N_("Show this message"));
- print_opt(_("+LINE[,COLUMN]"), "",
+ print_opt(_("+LINE,COLUMN"), "",
N_("Start at line LINE, column COLUMN"));
#ifndef NANO_TINY
print_opt("-A", "--smarthome", N_("Enable smart home key"));