Received: from mout.gmx.net (mout.gmx.net [212.227.17.20]) by h1439878.stratoserver.net (8.14.2/8.14.2/Debian-2build1) with ESMTP id r3T9cOHT013441 for ; Mon, 29 Apr 2013 11:38:25 +0200 Received: from relay2.uni-heidelberg.de ([129.206.210.211]) by mx-ha.gmx.net (mxgmx002) with ESMTP (Nemesis) id 0LnSak-1UxnpE1yiE-00hboF for ; Mon, 29 Apr 2013 11:38:19 +0200 Received: from listserv.uni-heidelberg.de (listserv.uni-heidelberg.de [129.206.100.94]) by relay2.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id r3T9a9Ed025224 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 29 Apr 2013 11:36:10 +0200 Received: from listserv.uni-heidelberg.de (listserv.uni-heidelberg.de [127.0.0.1]) by listserv.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id r3SM13Hc032355; Mon, 29 Apr 2013 11:36:09 +0200 Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 16.0) with spool id 9150095 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Mon, 29 Apr 2013 11:36:08 +0200 Received: from relay2.uni-heidelberg.de (relay2.uni-heidelberg.de [129.206.210.211]) by listserv.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id r3T9a8kP019436 for ; Mon, 29 Apr 2013 11:36:08 +0200 Received: from smtp.demon.co.uk (mdfmta005.mxout.tch.inty.net [91.221.169.46]) by relay2.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id r3T9Zp4U024774 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 29 Apr 2013 11:35:55 +0200 Received: from mdfmta005.tch.inty.net (unknown [127.0.0.1]) by mdfmta005.tch.inty.net (Postfix) with ESMTP id 93F4E18C47E; Mon, 29 Apr 2013 10:29:35 +0100 (BST) Received: from mdfmta005.tch.inty.net (unknown [127.0.0.1]) by mdfmta005.tch.inty.net (Postfix) with ESMTP id 755C618C44D; Mon, 29 Apr 2013 10:29:35 +0100 (BST) Received: from [192.156.217.104] (unknown [86.188.197.189]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mdfmta005.tch.inty.net (Postfix) with ESMTP; Mon, 29 Apr 2013 10:29:35 +0100 (BST) User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130328 Thunderbird/17.0.5 MIME-Version: 1.0 References: <517E353C.5050701@morningstar2.co.uk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-MDF-HostID: 18 Message-ID: <517E3D7E.3060808@nag.co.uk> Date: Mon, 29 Apr 2013 10:29:34 +0100 Reply-To: Mailing list for the LaTeX3 project Sender: Mailing list for the LaTeX3 project From: David Carlisle Organization: NAG Subject: Re: Behaviour of \SplitArgument with missing input To: LATEX-L@LISTSERV.UNI-HEIDELBERG.DE In-Reply-To: <517E353C.5050701@morningstar2.co.uk> Precedence: list List-Help: , List-Unsubscribe: List-Subscribe: List-Owner: List-Archive: Envelope-To: X-GMX-Antispam: 0 (Mail was not recognized as spam); Detail=V3; X-GMX-Antivirus: 0 (no virus found) X-UI-Filterresults: notjunk:1;V01:K0:pY0Z0+plh18=:lJ3JXwIN6O1PsBIJ+3wDbt 1DeYWLTxgSbBrWpv6A/fq1yGWgoMAWR+iKwGAPMigAzYmxdWd3lR9/A6lURrp9fi1VzxbuY 0VDM98O/i709Rq4yst+aFeGsaqsDuJ/pkSmk8p2LD0FgNc2QtD8+H6EOY1ifxBsF7lrt993 yAHeHxhv6vCMQ/Uddy9tPI+fUVP/QYDYqLbji0A7AIfvUxNmVQ8Sum9oGCzppYMZqT++yqJ Q5+ZfWHno8k2ihgWQjoRtTBb1+JswmkpYwqfK2bi9y4hRtlv4lJuQdwaIn0SWYv55pOdQiV b9DoJ3DF/+o2M89WWprd1/UbO/X4kYBFNCJIMSF3hjCz6WANfZG1qWV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7PBnQVc6beR4ZwM s0UWhKDMUtOgS/3hPiGGF9B3T1tomHZicGChFZxEWUuwZvwvRNJD0F4c2sL3EICzkueXRs5 ETW5XEbFvmUmAJZG5G/OIRT5QaDi+vFXTcR2xn3RwUSQ9NUeBDIbzbvkovboVdMnPcFczQC WUjkcQVZ8Ki/m6zdPkyzyhkQ1S101Mh388xlB6tSha1perynpWKnQ3zcHJI= X-UI-Loop:V01:yQpcjsGwmUs=:E3kGsg4CyG0ca1WOhfSP0N6rmq/x0nY8b5N8bK1Oyc0= Status: R X-Status: X-Keywords: X-UID: 7194 On 29/04/2013 09:54, Joseph Wright wrote: > Hello all, > > I've had a couple of reports recently of an inconsistency in the way > \SplitArgument is documented compared to how it is implemented. In the > current CTAN release, something like > > \DeclareDocumentCommand { \foo } > { > { \SplitArgument { 2 } { ; } } m } > { \showtokens {#1} } > ... > \foo{bar} > > gives > > > {bar}{-NoValue-}{-NoValue-}. > \foo code #1->\showtokens {#1} historically I think splitting arguments comes from things like \cline{1-2} but is it really needed now? It might be more natural to just split the argument as a clist then missing separators can be distinguished from empty items by the length of the list. David