Received: from mail.proteosys.com ([213.139.130.197]) by nummer-3.proteosys with Microsoft SMTPSVC(6.0.3790.3959); Thu, 12 Feb 2009 00:00:58 +0100 Received: by mail.proteosys.com (8.14.3/8.14.3) with ESMTP id n1BN2WKq021742 for ; Thu, 12 Feb 2009 00:02:32 +0100 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 n1BMsTCg002260 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 11 Feb 2009 23:54:29 +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 n1BLholT029304; Wed, 11 Feb 2009 23:54:18 +0100 Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 15.5) with spool id 176753 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Wed, 11 Feb 2009 23:54:18 +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 n1BMsIxi009349 for ; Wed, 11 Feb 2009 23:54:18 +0100 Received: from rv-out-0708.google.com (rv-out-0708.google.com [209.85.198.249]) by relay2.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id n1BMsDbC002131 for ; Wed, 11 Feb 2009 23:54:17 +0100 Received: by rv-out-0708.google.com with SMTP id k29so93031rvb.10 for ; Wed, 11 Feb 2009 14:54:12 -0800 (PST) Received: by 10.140.133.10 with SMTP id g10mr97038rvd.113.1234392852582; Wed, 11 Feb 2009 14:54:12 -0800 (PST) Received: from ?10.0.1.104? (114-30-101-184.ip.adam.com.au [114.30.101.184]) by mx.google.com with ESMTPS id k37sm21274905rvb.0.2009.02.11.14.54.10 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 11 Feb 2009 14:54:11 -0800 (PST) Content-Type: multipart/signed; boundary=Apple-Mail-1-535092797; micalg=sha1; protocol="application/pkcs7-signature" Mime-Version: 1.0 (Apple Message framework v930.3) X-Mailer: Apple Mail (2.930.3) X-Spam-Whitelist: Message-ID: <042D83C9-A1BF-43CE-94DD-424B41309381@gmail.com> Date: Thu, 12 Feb 2009 09:24:06 +1030 Reply-To: Mailing list for the LaTeX3 project Sender: Mailing list for the LaTeX3 project From: Will Robertson Subject: \token_if_space:NTF To: LATEX-L@LISTSERV.UNI-HEIDELBERG.DE Precedence: list List-Help: , List-Unsubscribe: List-Subscribe: List-Owner: List-Archive: X-ProteoSys-SPAM-Score: -4 () RCVD_IN_DNSWL_MED X-Scanned-By: MIMEDefang 2.65 on 213.139.130.197 Return-Path: owner-latex-l@LISTSERV.UNI-HEIDELBERG.DE X-OriginalArrivalTime: 11 Feb 2009 23:00:58.0194 (UTC) FILETIME=[99EC0B20:01C98C9C] Status: R X-Status: X-Keywords: X-UID: 5651 --Apple-Mail-1-535092797 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Dear all, I'm trying to write a unit test for \token_if_space:NTF, but I'm having some difficulty this early in the morning. Spaces are consumed after the control sequence, as an argument is being scanned for, so I'm not sure how to pass a space char into the conditional. I haven't had any luck getting it to trip true; any hints how to do this and when the function might be used? For the curious, the definition is: % implicit \catcode`\~=5 % space \def_new:Npn \token_new:Nn #1#2 {\glet_new:NN #1#2} \token_new:Nn \c_space_token {~} \def_long_new:Npn \token_if_space_p:N #1{ \if_catcode:w \exp_not:N #1\c_space_token \c_true \else: \c_false \fi: } \def_long_test_function_new:npn {token_if_space:N} #1{ \if:w\token_if_space_p:N #1} Many thanks, Will --Apple-Mail-1-535092797 Content-Disposition: attachment; filename=smime.p7s Content-Type: application/pkcs7-signature; name=smime.p7s Content-Transfer-Encoding: base64 MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIGITCCAtow ggJD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