From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from krisdoz.my.domain (schwarze@localhost [127.0.0.1]) by krisdoz.my.domain (8.14.5/8.14.5) with ESMTP id sAB2hggV019877 for ; Mon, 10 Nov 2014 21:43:42 -0500 (EST) Received: (from schwarze@localhost) by krisdoz.my.domain (8.14.5/8.14.3/Submit) id sAB2hgBj008053; Mon, 10 Nov 2014 21:43:42 -0500 (EST) Date: Mon, 10 Nov 2014 21:43:42 -0500 (EST) Message-Id: <201411110243.sAB2hgBj008053@krisdoz.my.domain> X-Mailinglist: mdocml-source Reply-To: source@mdocml.bsd.lv MIME-Version: 1.0 From: schwarze@mdocml.bsd.lv To: source@mdocml.bsd.lv Subject: mdocml: Let -h imply -c (that is, not use the pager). X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Log Message: ----------- Let -h imply -c (that is, not use the pager). Usually, -h output is short, so the pager is just a nuisance. Also, traditional man(1) does not use a pager for -h. Triggered by a remark of deraadt@ on ICB. Modified Files: -------------- mdocml: main.c man.1 mandoc.1 Revision Data ------------- Index: mandoc.1 =================================================================== RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/mandoc.1,v retrieving revision 1.121 retrieving revision 1.122 diff -Lmandoc.1 -Lmandoc.1 -u -p -r1.121 -r1.122 --- mandoc.1 +++ mandoc.1 @@ -89,7 +89,7 @@ macro. .It Fl h Display only the SYNOPSIS lines. Implies -.Fl a . +.Fl c . .It Fl K Ns Ar encoding Specify the input encoding. The supported Index: man.1 =================================================================== RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/man.1,v retrieving revision 1.6 retrieving revision 1.7 diff -Lman.1 -Lman.1 -u -p -r1.6 -r1.7 --- man.1 +++ man.1 @@ -98,7 +98,9 @@ options. .It Fl h Display only the SYNOPSIS lines of the requested manual pages. Implies -.Fl a . +.Fl a +and +.Fl c . .It Fl k A synonym for .Xr apropos 1 . Index: main.c =================================================================== RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/main.c,v retrieving revision 1.197 retrieving revision 1.198 diff -Lmain.c -Lmain.c -u -p -r1.197 -r1.198 --- main.c +++ main.c @@ -177,6 +177,7 @@ main(int argc, char *argv[]) case 'h': (void)strlcat(curp.outopts, "synopsis,", BUFSIZ); synopsis_only = 1; + use_pager = 0; outmode = OUTMODE_ALL; break; case 'I': -- To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv