Received: from mail.proteosys.com ([213.139.130.197]) by nummer-3.proteosys with Microsoft SMTPSVC(6.0.3790.3959); Fri, 12 Sep 2008 13:36:55 +0200 Received: by mail.proteosys.com (8.13.8/8.13.8) with ESMTP id m8CBaoWC024476 for ; Fri, 12 Sep 2008 13:36:51 +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 m8CBUMTY005362 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 12 Sep 2008 13:30:22 +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 m8BM16eL032237; Fri, 12 Sep 2008 13:30:10 +0200 Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 15.5) with spool id 30930 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Fri, 12 Sep 2008 13:30:09 +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 m8CBU8r6026980 for ; Fri, 12 Sep 2008 13:30:08 +0200 Received: from mailgate5.uea.ac.uk (mailgate5.uea.ac.uk [139.222.130.185]) by relay2.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id m8CBTv4Z004992 for ; Fri, 12 Sep 2008 13:30:01 +0200 Received: from [139.222.128.187] (helo=ueams04.uea.ac.uk) by mailgate5.uea.ac.uk with esmtp (Exim 4.50) id 1Ke6qY-0006vK-5G for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Fri, 12 Sep 2008 12:29:54 +0100 Received: from [139.222.114.14] by ueams04.uea.ac.uk with esmtp (Exim 4.69) (envelope-from ) id 1Ke6qY-0008P8-3s for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Fri, 12 Sep 2008 12:29:54 +0100 User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 References: <48CA1F27.2040902@morningstar2.co.uk> <5957A3EB-39BD-4A98-99D7-70129F99CDC0@gmail.com> <48CA438F.5070708@morningstar2.co.uk> <18634.19200.409372.731167@morse.mittelbach-online.de> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Message-ID: <48CA52AF.1080709@morningstar2.co.uk> Date: Fri, 12 Sep 2008 12:29:51 +0100 Reply-To: Mailing list for the LaTeX3 project Sender: Mailing list for the LaTeX3 project From: Joseph Wright Subject: Re: \tlp_put ... To: LATEX-L@LISTSERV.UNI-HEIDELBERG.DE In-Reply-To: <18634.19200.409372.731167@morse.mittelbach-online.de> Precedence: list List-Help: , List-Unsubscribe: List-Subscribe: List-Owner: List-Archive: X-ProteoSys-SPAM-Score: -2.599 () BAYES_00 X-Scanned-By: MIMEDefang 2.64 on 213.139.130.197 Return-Path: owner-latex-l@LISTSERV.UNI-HEIDELBERG.DE X-OriginalArrivalTime: 12 Sep 2008 11:36:56.0056 (UTC) FILETIME=[DC1CC780:01C914CB] Status: R X-Status: X-Keywords: X-UID: 5299 Frank Mittelbach wrote: > > some history, perhaps Morten can say more because I think he did some of the > updates ... > > very early definition: > > \def_long_new:Npn \tlp_put_right:Nn #1#2{\tlp_set:No #1{#1#2}} > > current documentation says > > % A word of warning is appropriate here: Token list pointers are > % implemented as macros and as such currently inherit some of the > % peculiarities of how \TeX\ handles "#"s in the argument of > % macros. In particular, the following actions are legal > % \begin{verbatim} > % \tlp_set:Nn \l_tmpa_tlp{##1} > % \tlp_put_right:Nn \l_tmpa_tlp{##2} > % \tlp_set:No \l_tmpb_tlp{\l_tmpa_tlp ##3} > % \end{verbatim} > % |x| type expansions where macros being expanded contain |#|s do not > % work and will not work until there is an |\expanded| primitive in > % the engine. If you want them to work you must double |#|s another > % level. > % > > > from which I infer that the > > \tlp_set:Nn \l_exp_tlp{#2} > > was actually added to raise the error when setting / adding to the tlp and not > during some later expansion deep down. Okay, seems sensible. > However, we could do better now I guess given that we assume for expl3 that > eTeX is the underlying engine nowadays > > > however the problem will be to ensure that the single # will work in all > circumstances ie all usages of tlps and I'm not sure that wil be possible As I say, I've altered what I was trying to do to follow this advice. So the problem is solved for me, at least. I will be more careful about this from now on (I suppose I should be anyway). -- Joseph Wright