Received: from mx0.gmx.net (mx0.gmx.net [213.165.64.100]) by h1439878.stratoserver.net (8.14.2/8.14.2/Debian-2build1) with SMTP id p85LT1jS031993 for ; Mon, 5 Sep 2011 23:29:02 +0200 Received: (qmail 1257 invoked by alias); 5 Sep 2011 21:28:55 -0000 Delivered-To: GMX delivery to rainer.schoepf@gmx.net Received: (qmail invoked by alias); 05 Sep 2011 21:28:55 -0000 Received: from relay.uni-heidelberg.de (EHLO relay.uni-heidelberg.de) [129.206.100.212] by mx0.gmx.net (mx005) with SMTP; 05 Sep 2011 23:28:55 +0200 Received: from listserv.uni-heidelberg.de (listserv.uni-heidelberg.de [129.206.100.94]) by relay.uni-heidelberg.de (8.14.1/8.14.1) with ESMTP id p85LQiFn016170 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 5 Sep 2011 23:26:45 +0200 Received: from listserv.uni-heidelberg.de (localhost.localdomain [127.0.0.1]) by listserv.uni-heidelberg.de (8.13.1/8.13.1) with ESMTP id p85Jipui030548; Mon, 5 Sep 2011 23:26:44 +0200 Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 16.0) with spool id 1634851 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Mon, 5 Sep 2011 23:26:44 +0200 Received: from relay2.uni-heidelberg.de (relay2.uni-heidelberg.de [129.206.210.211]) by listserv.uni-heidelberg.de (8.13.1/8.13.1) with ESMTP id p85LQiUL003668 for ; Mon, 5 Sep 2011 23:26:44 +0200 Received: from mail-fx0-f49.google.com (mail-fx0-f49.google.com [209.85.161.49]) by relay2.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id p85LQdc7006604 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=FAIL) for ; Mon, 5 Sep 2011 23:26:43 +0200 Received: by fxd20 with SMTP id 20so5665348fxd.22 for ; Mon, 05 Sep 2011 14:26:39 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.50.143 with SMTP id z15mr1963831faf.73.1315257999870; Mon, 05 Sep 2011 14:26:39 -0700 (PDT) Received: by 10.152.14.8 with HTTP; Mon, 5 Sep 2011 14:26:39 -0700 (PDT) References: <4E6526DF.2060409@morningstar2.co.uk> Content-Type: text/plain; charset=ISO-8859-1 X-Spam-Whitelist: Message-ID: Date: Mon, 5 Sep 2011 17:26:39 -0400 Reply-To: Mailing list for the LaTeX3 project Sender: Mailing list for the LaTeX3 project From: Bruno Le Floch Subject: Re: Comma list changes To: LATEX-L@listserv.uni-heidelberg.de In-Reply-To: <4E6526DF.2060409@morningstar2.co.uk> Precedence: list List-Help: , List-Unsubscribe: List-Subscribe: List-Owner: List-Archive: X-GMX-Antispam: 0 (BackTrace mail analyze); Detail=5D7Q89H36p4L00VTXC6D4q0N+AH0PUCnGL2vqOgpaBYL16oitsMrgDt/NQNpSCZFFjDOy 97xb7Zpf+wZnd5ZXNcvLDXR3Wg3wRjdQbwEMh8=V1; X-Resent-By: Forwarder X-Resent-For: rainer.schoepf@gmx.net X-Resent-To: rainer@rainer-schoepf.de Status: R X-Status: X-Keywords: X-UID: 6864 Hello all, a small correction on what Joseph wrote earlier: for mapping functions, a set of braces is removed from each item after space trimming. > We have revised the behaviour of some comma-list functions, making the > treatment of spaces and braces more consistent. > > Spaces are now stripped from items when they are added to a clist, while > braces are retained. Thus > > \clist_put_left:Nn \l_my_clist { a , ~ b ~ , { c } , ~ { ~ d ~ } ~ } > > will add the items "a", "b", "{c}" and "{~d~}" to the clist. > > The mapping functions for 'inline' clists, for example > \clist_map_function:nN, strip spaces in the same way, so that > > \clist_map_function:nN { a , ~ b ~ , { c } , ~ { ~ d ~ } ~ } \foo:n > > will result in \foo:n being mapped to "a", "b", "{c}" and "{~d~}". In fact, the arguments received by \foo:n are "a", "b", "c" and "~d~". Two features of this choice: (1) since braces are kept when trimming spaces, applying space trimming multiple times does nothing; (2) since one set of braces is removed when mapping, any item can still appear within a clist. > As a result of these alterations, \clist_trim_spaces:N is deprecated, > and scheduled for removal by 2012-09-05. \clist_trim_spaces:n is moved > to an internal function only: it should therefore be regarded as > deprecated with respect to use outside of the kernel. -- Bruno Le Floch