options: stop recognizing the obsolete --morespace and --smooth
They have been no-ops for a year. Also remove their documentation entries. (The nanorc options still remain -- to be removed next year.)master
parent
ec457dc33a
commit
aa70f3d95e
10
doc/nano.1
10
doc/nano.1
|
@ -155,11 +155,6 @@ hard-wrapping occurs or when text is justified.
|
||||||
.BR \-N ", " \-\-noconvert
|
.BR \-N ", " \-\-noconvert
|
||||||
Disable automatic conversion of files from DOS/Mac format.
|
Disable automatic conversion of files from DOS/Mac format.
|
||||||
.TP
|
.TP
|
||||||
.BR \-O ", " \-\-morespace
|
|
||||||
Obsolete and ignored option, since the line below the title bar is included
|
|
||||||
into the editing space by default. If you prefer to keep this line blank,
|
|
||||||
use \fB\-e\fR or \fB\-\-emptyline\fR.
|
|
||||||
.TP
|
|
||||||
.BR \-P ", " \-\-positionlog
|
.BR \-P ", " \-\-positionlog
|
||||||
For the 200 most recent files, log the last position of the cursor,
|
For the 200 most recent files, log the last position of the cursor,
|
||||||
and place it at that position again upon reopening such a file.
|
and place it at that position again upon reopening such a file.
|
||||||
|
@ -180,11 +175,6 @@ different name if it already has one; and don't make backup files.
|
||||||
Restricted mode can also be activated by invoking \fBnano\fP
|
Restricted mode can also be activated by invoking \fBnano\fP
|
||||||
with any name beginning with 'r' (e.g. "rnano").
|
with any name beginning with 'r' (e.g. "rnano").
|
||||||
.TP
|
.TP
|
||||||
.BR \-S ", " \-\-smooth
|
|
||||||
Obsolete and ignored option, since smooth scrolling has become the default.
|
|
||||||
If you prefer the chunk-by-chunk scrolling behavior,
|
|
||||||
use \fB\-j\fR or \fB\-\-jumpyscrolling\fR.
|
|
||||||
.TP
|
|
||||||
.BR \-T\ \fInumber ", " \-\-tabsize= \fInumber
|
.BR \-T\ \fInumber ", " \-\-tabsize= \fInumber
|
||||||
Set the size (width) of a tab to \fInumber\fP columns. The value of
|
Set the size (width) of a tab to \fInumber\fP columns. The value of
|
||||||
\fInumber\fP must be greater than 0. The default value is 8.
|
\fInumber\fP must be greater than 0. The default value is 8.
|
||||||
|
|
|
@ -97,7 +97,7 @@ as is reasonable while offering a superset of Pico's functionality.
|
||||||
Pico differ.
|
Pico differ.
|
||||||
|
|
||||||
Starting with version 4.0, @command{nano} no longer hard-wraps an overlong
|
Starting with version 4.0, @command{nano} no longer hard-wraps an overlong
|
||||||
line by default. It further uses smooth scrolling by default, and by
|
line by default. It further uses linewise scrolling by default, and by
|
||||||
default includes the line below the title bar into the editing area.
|
default includes the line below the title bar into the editing area.
|
||||||
|
|
||||||
If you want the old, Pico behavior back, you can use the
|
If you want the old, Pico behavior back, you can use the
|
||||||
|
@ -239,12 +239,6 @@ hard-wrapping occurs or when text is justified.
|
||||||
@itemx --noconvert
|
@itemx --noconvert
|
||||||
Disable automatic conversion of files from DOS/Mac format.
|
Disable automatic conversion of files from DOS/Mac format.
|
||||||
|
|
||||||
@item -O
|
|
||||||
@itemx --morespace
|
|
||||||
Obsolete and ignored option, since the line below the title bar is included
|
|
||||||
into the editing space by default. If you prefer to keep this line blank,
|
|
||||||
use @option{-e} or @option{--emptyline}.
|
|
||||||
|
|
||||||
@item -P
|
@item -P
|
||||||
@itemx --positionlog
|
@itemx --positionlog
|
||||||
For the 200 most recent files, log the last position of the cursor,
|
For the 200 most recent files, log the last position of the cursor,
|
||||||
|
@ -268,12 +262,6 @@ name if it already has one; and don't make backup files.
|
||||||
Restricted mode can also be activated by invoking @command{nano} with
|
Restricted mode can also be activated by invoking @command{nano} with
|
||||||
any name beginning with @code{r} (e.g.@: @command{rnano}).
|
any name beginning with @code{r} (e.g.@: @command{rnano}).
|
||||||
|
|
||||||
@item -S
|
|
||||||
@itemx --smooth
|
|
||||||
Obsolete and ignored option, since smooth scrolling has become the default.
|
|
||||||
If you prefer the chunk-by-chunk scrolling behavior,
|
|
||||||
use @option{-j} or @option{--jumpyscrolling}.
|
|
||||||
|
|
||||||
@item -T @var{number}
|
@item -T @var{number}
|
||||||
@itemx --tabsize=@var{number}
|
@itemx --tabsize=@var{number}
|
||||||
Set the displayed tab length to @var{number} columns. The value of
|
Set the displayed tab length to @var{number} columns. The value of
|
||||||
|
|
14
src/nano.c
14
src/nano.c
|
@ -1816,9 +1816,7 @@ int main(int argc, char **argv)
|
||||||
{"guidestripe", 1, NULL, 'J'},
|
{"guidestripe", 1, NULL, 'J'},
|
||||||
{"nonewlines", 0, NULL, 'L'},
|
{"nonewlines", 0, NULL, 'L'},
|
||||||
{"noconvert", 0, NULL, 'N'},
|
{"noconvert", 0, NULL, 'N'},
|
||||||
{"morespace", 0, NULL, 'O'},
|
|
||||||
{"positionlog", 0, NULL, 'P'},
|
{"positionlog", 0, NULL, 'P'},
|
||||||
{"smooth", 0, NULL, 'S'},
|
|
||||||
{"wordbounds", 0, NULL, 'W'},
|
{"wordbounds", 0, NULL, 'W'},
|
||||||
{"wordchars", 1, NULL, 'X'},
|
{"wordchars", 1, NULL, 'X'},
|
||||||
{"zap", 0, NULL, 'Z'},
|
{"zap", 0, NULL, 'Z'},
|
||||||
|
@ -1883,7 +1881,7 @@ int main(int argc, char **argv)
|
||||||
if (*(tail(argv[0])) == 'r')
|
if (*(tail(argv[0])) == 'r')
|
||||||
SET(RESTRICTED);
|
SET(RESTRICTED);
|
||||||
|
|
||||||
while ((optchr = getopt_long(argc, argv, "ABC:DEFGHIJ:KLMNOPQ:RST:UVWX:Y:Z"
|
while ((optchr = getopt_long(argc, argv, "ABC:DEFGHIJ:KLMNPQ:RT:UVWX:Y:Z"
|
||||||
"abcdef:ghijklmno:pr:s:tuvwxyz$", long_options, NULL)) != -1) {
|
"abcdef:ghijklmno:pr:s:tuvwxyz$", long_options, NULL)) != -1) {
|
||||||
switch (optchr) {
|
switch (optchr) {
|
||||||
#ifndef NANO_TINY
|
#ifndef NANO_TINY
|
||||||
|
@ -1951,10 +1949,6 @@ int main(int argc, char **argv)
|
||||||
case 'N':
|
case 'N':
|
||||||
SET(NO_CONVERT);
|
SET(NO_CONVERT);
|
||||||
break;
|
break;
|
||||||
case 'O':
|
|
||||||
fprintf(stderr, N_("Option %s is ignored; it is the default\n"),
|
|
||||||
"morespace");
|
|
||||||
break;
|
|
||||||
#endif
|
#endif
|
||||||
#ifdef ENABLE_HISTORIES
|
#ifdef ENABLE_HISTORIES
|
||||||
case 'P':
|
case 'P':
|
||||||
|
@ -1969,12 +1963,6 @@ int main(int argc, char **argv)
|
||||||
case 'R':
|
case 'R':
|
||||||
SET(RESTRICTED);
|
SET(RESTRICTED);
|
||||||
break;
|
break;
|
||||||
#ifndef NANO_TINY
|
|
||||||
case 'S':
|
|
||||||
fprintf(stderr, N_("Option %s is ignored; it is the default\n"),
|
|
||||||
"smooth");
|
|
||||||
break;
|
|
||||||
#endif
|
|
||||||
case 'T':
|
case 'T':
|
||||||
if (!parse_num(optarg, &tabsize) || tabsize <= 0) {
|
if (!parse_num(optarg, &tabsize) || tabsize <= 0) {
|
||||||
fprintf(stderr, _("Requested tab size \"%s\" is invalid"), optarg);
|
fprintf(stderr, _("Requested tab size \"%s\" is invalid"), optarg);
|
||||||
|
|
Loading…
Reference in New Issue