Received: from mail.proteosys.com ([213.139.130.197]) by nummer-3.proteosys with Microsoft SMTPSVC(6.0.3790.3959); Fri, 19 Sep 2008 17:07:32 +0200 Received: by mail.proteosys.com (8.13.8/8.13.8) with ESMTP id m8JF7Q4K023962 for ; Fri, 19 Sep 2008 17:07:27 +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 m8JF1O4f024047 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 19 Sep 2008 17:01:25 +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 m8J9KBX6003767; Fri, 19 Sep 2008 17:01:13 +0200 Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 15.5) with spool id 40928 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Fri, 19 Sep 2008 17:01:12 +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 m8JF1CbA010975 for ; Fri, 19 Sep 2008 17:01:12 +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 m8JF0b0g017059 for ; Fri, 19 Sep 2008 17:00:42 +0200 Received: from [139.222.128.187] (helo=ueams04.uea.ac.uk) by mailgate5.uea.ac.uk with esmtp (Exim 4.50) id 1KghTJ-0004hX-If for latex-l@listserv.uni-heidelberg.de; Fri, 19 Sep 2008 16:00:37 +0100 Received: from [139.222.200.93] by ueams04.uea.ac.uk with esmtp (Exim 4.69) (envelope-from ) id 1KghTJ-0006yP-Hn for latex-l@listserv.uni-heidelberg.de; Fri, 19 Sep 2008 16:00:37 +0100 User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Message-ID: <48D3BE95.3080706@morningstar2.co.uk> Date: Fri, 19 Sep 2008 16:00:37 +0100 Reply-To: Mailing list for the LaTeX3 project Sender: Mailing list for the LaTeX3 project From: Joseph Wright Subject: Saving and restoring catcodes To: LATEX-L@LISTSERV.UNI-HEIDELBERG.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: 19 Sep 2008 15:07:32.0718 (UTC) FILETIME=[710AA0E0:01C91A69] Status: R X-Status: X-Keywords: X-UID: 5372 Hello all, In TeX, to save a series of catcodes one might do something like: \edef\savedcatcodes{% \catcode\string`\string ` \the\catcode\string`\`\relax \catcode\string`\string = \the\catcode\string`\=\relax \catcode\string`\string ^ \the\catcode\string`\^\relax \catcode\string`\string _ \the\catcode\string`\_\relax \catcode\string`\string ~ \the\catcode\string`\~\relax \catcode\string`\string : \the\catcode\string`\:\relax \catcode\string`\string - \the\catcode\string`\-\relax \catcode\string`\string + \the\catcode\string`\+\relax \catcode\string`\string ; \the\catcode\string`\;\relax \catcode\string`\string , \the\catcode\string`\,\relax \catcode\string`\string . \the\catcode\string`\.\relax} the use \savedcatcodes later to restore them. Achieving the same in expl3 seems to be driving me round the bend. I can't figure out what the correct syntax is for \char_value_catcode:n and \char_set_catcode:nn under these circumstances. Any chance of a clue? -- Joseph Wright