file help width)" - 'c[-1,-file]' -f - 'c[-1,-form]' -K mhfile -- scan
compctl -K mhfseq -x 's[+][@]' -K mhcomp -S / -q - \
- 's[-]' -k "(draft form moreproc nomoreproc header noheader \
+ 's[-]' -k "(draft form moreproc header noheader \
showproc length width help)" - 'C[-1,-(show|more)proc]' -c - \
'c[-1,-file]' -f - 'c[-1,-form]' -K mhfile - \
'c[-1,-length]' -s '$LINES' - 'c[-1,-width]' -s '$COLUMNS' -- show next prev
.IR columns ]
.RB [ \-moreproc
.IR program ]
-.RB [ \-nomoreproc ]
.RI [ files
.IR \&... ]
.RB [ \-version ]
.IR columns ]
.RB [ \-moreproc
.IR program ]
-.RB [ \-nomoreproc ]
.RI [ files
.IR \&... ]
.RB [ \-version ]
{ "form formfile", 0 },
#define PROGSW 6
{ "moreproc program", 0 },
-#define NPROGSW 7
- { "nomoreproc", 0 },
-#define LENSW 8
+#define LENSW 7
{ "length lines", 0 },
-#define WIDTHSW 9
+#define WIDTHSW 8
{ "width columns", 0 },
-#define SLEEPSW 10
+#define SLEEPSW 9
{ "sleep seconds", 0 },
-#define VERSIONSW 11
+#define VERSIONSW 10
{ "version", 0 },
-#define HELPSW 12
+#define HELPSW 11
{ "help", 0 },
-#define FORW1SW 13
+#define FORW1SW 12
{ "forward", -7 },
-#define FORW2SW 14
+#define FORW2SW 13
{ "forwall", -7 },
-#define DGSTSW 15
+#define DGSTSW 14
{ "digest list", -6 },
-#define VOLUMSW 16
+#define VOLUMSW 15
{ "volume number", -6 },
-#define ISSUESW 17
+#define ISSUESW 16
{ "issue number", -5 },
-#define NBODYSW 18
+#define NBODYSW 17
{ "nobody", -6 },
{ NULL, 0 }
};
int
main(int argc, char **argv)
{
- int length = 0, nomore = 0;
+ int length = 0;
int i, width = 0, vecp = 0;
char *cp, *folder = NULL, *form = NULL;
char buf[BUFSIZ], *files[MAXARGS];
adios(NULL, "missing argument to %s",
argp[-2]);
continue;
- case NPROGSW:
- nomore++;
- continue;
case LENSW:
if (!(cp = *argp++) || *cp == '-')
folder = getenv("mhfolder");
if (isatty(fileno(stdout))) {
- if (!nomore && !sc_hardcopy() && moreproc && *moreproc != '\0') {
+ if (!sc_hardcopy() && moreproc && *moreproc != '\0') {
if (mhl_action) {
SIGNAL(SIGINT, SIG_IGN);
SIGNAL2(SIGQUIT, quitser);
{ "version", 0 },
#define HELPSW 13
{ "help", 0 },
-
/*
** switches for moreproc/mhlproc
*/
-#define PROGSW 16
+#define PROGSW 14
{ "moreproc program", -4 },
-#define NPROGSW 17
- { "nomoreproc", -3 },
-#define LENSW 18
+#define LENSW 15
{ "length lines", -4 },
-#define WIDTHSW 19
+#define WIDTHSW 16
{ "width columns", -4 },
-
/*
** switches for debugging
*/
-#define DEBUGSW 20
+#define DEBUGSW 17
{ "debug", -5 },
{ NULL, 0 }
};
extern int serialsw;
extern char *progsw;
extern int nolist;
-extern int nomore; /* flags for moreproc/header display */
extern char *formsw;
/* mhmisc.c */
adios(NULL, "missing argument to %s",
argp[-2]);
continue;
- case NPROGSW:
- nomore++;
- continue;
case LENSW:
case WIDTHSW:
char *progsw = NULL;
/* flags for moreproc/header display */
-int nomore = 0;
char *formsw = NULL;
pid_t xpid = 0;
vec[vecp++] = "-nobody";
vec[vecp++] = ct->c_file;
- /*
- ** If we've specified -(no)moreproc,
- ** then just pass that along.
- */
- if (nomore) {
- vec[vecp++] = "-nomoreproc";
- } else if (progsw) {
+ /* If we've specified -moreproc, then just pass that along. */
+ if (progsw) {
vec[vecp++] = "-moreproc";
vec[vecp++] = progsw;
}
{ "form formfile", 0 },
#define PROGSW 5
{ "moreproc program", 0 },
-#define NPROGSW 6
- { "nomoreproc", 0 },
-#define LENSW 7
+#define LENSW 6
{ "length lines", 0 },
-#define WIDTHSW 8
+#define WIDTHSW 7
{ "width columns", 0 },
-#define SHOWSW 9
+#define SHOWSW 8
{ "showproc program", 0 },
-#define SHOWMIMESW 10
+#define SHOWMIMESW 9
{ "showmimeproc program", 0 },
-#define FILESW 11
+#define FILESW 10
{ "file file", -4 }, /* interface from showfile */
-#define VERSIONSW 12
+#define VERSIONSW 11
{ "version", 0 },
-#define HELPSW 13
+#define HELPSW 12
{ "help", 0 },
{ NULL, 0 }
};
ambigsw(cp, switches);
done(1);
case UNKWNSW:
- case NPROGSW:
vec[vecp++] = --cp;
continue;