Received: from mail.proteosys.com ([213.139.130.197]) by nummer-3.proteosys with Microsoft SMTPSVC(6.0.3790.3959); Mon, 15 Sep 2008 08:30:41 +0200 Received: by mail.proteosys.com (8.13.8/8.13.8) with ESMTP id m8F6UaZQ013691 for ; Mon, 15 Sep 2008 08:30:37 +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 m8F6OQgM017789 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 15 Sep 2008 08:24:27 +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 m8EM1I6V006237; Mon, 15 Sep 2008 08:24:24 +0200 Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 15.5) with spool id 31845 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Mon, 15 Sep 2008 08:24:24 +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 m8F6OOHx005463 for ; Mon, 15 Sep 2008 08:24:24 +0200 Received: from rv-out-0708.google.com (rv-out-0708.google.com [209.85.198.241]) by relay2.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id m8F6OKkJ017698 for ; Mon, 15 Sep 2008 08:24:24 +0200 Received: by rv-out-0708.google.com with SMTP id c5so2002964rvf.10 for ; Sun, 14 Sep 2008 23:24:19 -0700 (PDT) Received: by 10.141.151.18 with SMTP id d18mr4554725rvo.75.1221459859362; Sun, 14 Sep 2008 23:24:19 -0700 (PDT) Received: from ?129.127.15.244? ( [129.127.15.244]) by mx.google.com with ESMTPS id g31sm21946138rvb.7.2008.09.14.23.24.17 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 14 Sep 2008 23:24:18 -0700 (PDT) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v928.1) References: <48CC30E3.9020308@morningstar2.co.uk> <48CD7104.4000103@residenset.net> <48CDFCBB.8050509@morningstar2.co.uk> X-Mailer: Apple Mail (2.928.1) X-Spam-Whitelist: Message-ID: <5F3DB0EC-4917-4354-8D90-2237C6D4F685@gmail.com> Date: Mon, 15 Sep 2008 15:54:15 +0930 Reply-To: Mailing list for the LaTeX3 project Sender: Mailing list for the LaTeX3 project From: Will Robertson Subject: Re: Suggestions sought To: LATEX-L@LISTSERV.UNI-HEIDELBERG.DE In-Reply-To: <48CDFCBB.8050509@morningstar2.co.uk> 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: 15 Sep 2008 06:30:41.0978 (UTC) FILETIME=[938C39A0:01C916FC] Status: R X-Status: X-Keywords: X-UID: 5320 On 15/09/2008, at 3:42 PM, Joseph Wright wrote: > So my attempts to create a simple hook: > > \def:cpx {} {\exp_not:N\prehook > \exp_not:posthook} > > fail when the added code contains #1, #2, ... My current approach at > least does not give a TeX error under these circumstances (I've > added a > custom one to warn of a problem). > > I'm sure I'm mossing something, but my knowledge of TeX's approach to > doubling # characters, etc., is clearly insufficient to find it. Maybe as a pre-cursor to this work we should port patchcmd to expl3? Even that package only handles "plain" argument specs, though. W