From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/105479 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: "Philipp A." Newsgroups: gmane.comp.tex.context Subject: context command line interface documentation? Date: Tue, 12 Nov 2019 12:14:56 +0100 Message-ID: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0293954395142239523==" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="152475"; mail-complaints-to="usenet@blaine.gmane.org" To: ConTeXt Mainling List Original-X-From: ntg-context-bounces@ntg.nl Tue Nov 12 12:15:50 2019 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iUU9F-000dVj-EG for gctc-ntg-context-518@m.gmane.org; Tue, 12 Nov 2019 12:15:49 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 1B5B1162D48; Tue, 12 Nov 2019 12:15:12 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jN2eCaEFYlx4; Tue, 12 Nov 2019 12:15:10 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id A9F73162E13; Tue, 12 Nov 2019 12:15:10 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 1193E162E0A for ; Tue, 12 Nov 2019 12:15:10 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 37VnrEL7h6_b for ; Tue, 12 Nov 2019 12:15:09 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.210.46; helo=mail-ot1-f46.google.com; envelope-from=trueflyingsheep@gmail.com; receiver= Original-Received: from mail-ot1-f46.google.com (mail-ot1-f46.google.com [209.85.210.46]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id E7A21162D48 for ; Tue, 12 Nov 2019 12:15:08 +0100 (CET) Original-Received: by mail-ot1-f46.google.com with SMTP id z9so806353otq.6 for ; Tue, 12 Nov 2019 03:15:08 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=Vzpk5rMsawx22UG+RL5mwtxmy9o/B66e4JK8nkcpjh8=; b=UqRTVB1OseGlYQHeXW7xiRSQ2MrygInYBGT2ifGx4/CXkJridjlFy/NZvN9IratNi1 B/AYP6w5hHfyMpKF1rGZs1o5itMxC/o0IDtEhj7MNjQpzrXC7+Wea6bONieV5giYfF5H V1bI5/xEf+KzxfKB9Ce0d2dkL8ubWRRcY2FiNs9cJ/kq6iD3nuEAkEyP96Icc1OFuZWG +83IPStRu378JiCq5FLwq7/rdFzJzyOvpqKx8keGTOIEGCo7DBenw11/WJHn6EQQu9+d lTjyKUWfpBjq+rTQX5EghFlEN7krqkHIoloZ36nN0rvOhZLAMoc2b0DTughPEnd1t5AC 5M0w== X-Gm-Message-State: APjAAAWwNgaLLrPZlHkLaViRXOUVUPmzSZVUXggHNEXf7mXI1en3ph/c OwUFLm43e4VYNBejUy8ur06UB8gACEX1j9mpolm1BdV6qjQ= X-Google-Smtp-Source: APXvYqwHEkH+ZD3F3qo3c71RD4wbjU9JgeGTZfmULcKrUugO1ePpB6ehajCffIFkJByXLxkBcSHwUqkkIpcYcD3BLFI= X-Received: by 2002:a9d:7ada:: with SMTP id m26mr10459742otn.201.1573557307280; Tue, 12 Nov 2019 03:15:07 -0800 (PST) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:105479 Archived-At: --===============0293954395142239523== Content-Type: multipart/alternative; boundary="0000000000005592030597245c5c" --0000000000005592030597245c5c Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, I want context to shut up, specifically the =E2=80=9Cmkiv lua stats=E2=80= =9D at the end are useless to me and make me scroll up for actual error messages, but better would be to just stop after the first error. I consulted the --help docs but found them entirely unhelpful. Also there= =E2=80=99s no examples. As doing it wrong results in no error message or indeed any kind of effect, I was in the dark. First I consulted the --help and found: =E2=80=9C--silent=3Dlist disable lo= gcatgories (show list with --showlogcategories)=E2=80=9D. What=E2=80=99s a =E2=80=9Cli= st=E2=80=9D? comma separated? Do I need string delimiters? Whatever, executing =E2=80=9Ccontext --showlogcategories=E2=80=9D tells me = the log category =E2=80=9Cmkiv lua stats=E2=80=9D exists, so: =E2=80=9Ccontext --silent=3D'm= kiv lua stats' doc.tex=E2=80=9D does =E2=80=A6 nothing, the lua stats are still there mocking me. OK, let=E2=80=99s do what you do when there=E2=80=99s no documentation; div= e in the code: =E2=80=9Cgrep -C3 'batchmode' /usr/share/texmf-dist/scripts/context/lua/mtx-context.lua=E2=80=9D This tells me that there=E2=80=99s a =E2=80=9Cerrorstopmode=E2=80=9D in lua= tex but no way to make the context script invoke =E2=80=9Cluatex -interaction=3Derrorstopmode=E2= =80=9D, great. Diving deeper, =E2=80=9Csetblocked=E2=80=9D in mtxtun.lua checks if --silen= t=3Dall is specified, nice! But that affects everything EXCEPT for the =E2=80=9Cmkiv l= ua stats=E2=80=9D. Therefore the two most useful ways to run context (--errorstopmode and --silent=3D'mkiv lua stats') seem impossible unless one writes a wrapper script. Would be cool to have this fixed. And to have actually useful documentation instead of having to deep-dive into mtxrun.lua. Best, Philipp PS: I filed http://tracker.luatex.org/view.php?id=3D1014 and http://tracker.luatex.org/view.php?id=3D1015 --0000000000005592030597245c5c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

I want context to shut u= p, specifically the =E2=80=9Cmkiv lua stats=E2=80=9D at the end are useless= to me and make me scroll up for actual error messages, but better would be= to just stop after the first error.
I consulted the --help d= ocs but found them entirely unhelpful. Also there=E2=80=99s no examples. As= doing it wrong results in no error message or indeed any kind of effect, I= was in the dark.

First I consulted the --help and= found: =E2=80=9C--silent=3Dlist disable logcatgories (show list with --sho= wlogcategories)=E2=80=9D. What=E2=80=99s a =E2=80=9Clist=E2=80=9D? comma s= eparated? Do I need string delimiters?
Whatever, executing = =E2=80=9Ccontext --showlogcategories=E2=80=9D tells me the log category =E2= =80=9Cmkiv lua stats=E2=80=9D exists, so: =E2=80=9Ccontext --silent=3D'= mkiv lua stats' doc.tex=E2=80=9D does =E2=80=A6 nothing, the lua stats = are still there mocking me.

OK, let=E2=80=99s do w= hat you do when there=E2=80=99s no documentation; dive in the code: =E2=80= =9Cgrep -C3 'batchmode' /usr/share/texmf-dist/scripts/context/lua/m= tx-context.lua=E2=80=9D
This tells me that there=E2=80=99s a =E2= =80=9Cerrorstopmode=E2=80=9D in luatex but no way to make the context scrip= t invoke =E2=80=9Cluatex -interaction=3Derrorstopmode=E2=80=9D, great.
Diving deeper, =E2=80=9Csetblocked=E2=80=9D in mtxtun.lua checks if -= -silent=3Dall is specified, nice! But that affects everything EXCEPT for th= e =E2=80=9Cmkiv lua stats=E2=80=9D.

Therefore the = two most useful ways to run context (--errorstopmode and --silent=3D'mk= iv lua stats') seem impossible unless one writes a wrapper script.
Would be cool to have this fixed. And to have actually useful documen= tation instead of having to deep-dive into mtxrun.lua.
--0000000000005592030597245c5c-- --===============0293954395142239523== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============0293954395142239523==--