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 q13FgWU8031966 for ; Fri, 3 Feb 2012 16:42:33 +0100 Received: (qmail 29676 invoked by alias); 3 Feb 2012 15:42:27 -0000 Delivered-To: GMX delivery to rainer.schoepf@gmx.net Received: (qmail invoked by alias); 03 Feb 2012 15:42:27 -0000 Received: from relay.uni-heidelberg.de (EHLO relay.uni-heidelberg.de) [129.206.100.212] by mx0.gmx.net (mx046) with SMTP; 03 Feb 2012 16:42:27 +0100 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 q13FeKvD029066 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 3 Feb 2012 16:40:20 +0100 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 q13FCgV3017312; Fri, 3 Feb 2012 16:40:19 +0100 Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 16.0) with spool id 2000824 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Fri, 3 Feb 2012 16:40:19 +0100 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 q13FeJXc001990 for ; Fri, 3 Feb 2012 16:40:19 +0100 Received: from anchor-msapost-3.mail.demon.net (anchor-msapost-3.mail.demon.net [195.173.77.166]) by relay2.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id q13FdLxp014480 for ; Fri, 3 Feb 2012 16:39:25 +0100 Received: from [139.222.217.130] (helo=eduroam-217-130.hornet.uea.ac.uk) by anchor-post-3.mail.demon.net with esmtpsa (AUTH morningstar2) (TLSv1:AES256-SHA:256) (Exim 4.69) id 1RtLEN-0005X5-oD for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Fri, 03 Feb 2012 15:39:19 +0000 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:9.0) Gecko/20111222 Thunderbird/9.0.1 MIME-Version: 1.0 References: <20120202102957.GB14566@csmvddesktop> <4F2A68F9.1010508@morningstar2.co.uk> <20120202111808.GA15304@csmvddesktop> <20120202131844.GA16372@csmvddesktop> <20120202133153.GA16604@csmvddesktop> <20120203151218.GA30208@csmvddesktop> X-Enigmail-Version: 1.3.5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Message-ID: <4F2BFFA6.1020306@morningstar2.co.uk> Date: Fri, 3 Feb 2012 15:39:18 +0000 Reply-To: Mailing list for the LaTeX3 project Sender: Mailing list for the LaTeX3 project From: Joseph Wright Subject: Re: Mapping Functions Versions for All and Some To: LATEX-L@listserv.uni-heidelberg.de In-Reply-To: <20120203151218.GA30208@csmvddesktop> Precedence: list List-Help: , List-Unsubscribe: List-Subscribe: List-Owner: List-Archive: X-GMX-Antispam: 0 (Sender is in whitelist: joseph.wright@MORNINGSTAR2.CO.UK); Detail=5D7Q89H36p4L00VTXC6D4q0N+AH0PUCnBi0P5cROEGjO+pG7NAH/K+tf9SrVFtpLrKONl 2T9EL4W4U4jgzLbnCcGpk1z/zwmKT/K1fv3lD0=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: 7016 On 03/02/2012 15:12, dongen wrote: > I'm having some problem with expansion. The following is a > contrived example of what's going wrong. I must be missing > something obvious. > > \expandafter > \xdef\csname #1\endcsname ##1{% > \regex_match:nnTF{o}{o}{{0}{0}}{{1}{1}} > } > > This defines some macro with the following definition: > > macro:#1->\regex_match:nnTF {o}{o}{{0}{0}}{{1}{1}} > > I'd have thought the body of an xdef would be fully expanded > (unless you put an explicit \noexpand in front of an expression). > > Why doesn't the \regex_match expand? If there's any documentation > I should read in order to understand this, please let me know where > to find it. All LaTeX3 functions are either fully expandable or engine-protected. In this case, we are talking about protected functions: these are not expandable. (In the documentation, expandable functions are marked with a star.) -- Joseph Wright