Received: from mout.gmx.net (mout.gmx.net [212.227.17.20]) by h1439878.stratoserver.net (8.14.4/8.14.4/Debian-2ubuntu2.1) with ESMTP id t7P8boBx007148 for ; Tue, 25 Aug 2015 10:37:51 +0200 Received: from relay.uni-heidelberg.de ([129.206.100.212]) by mx-ha.gmx.net (mxgmx108) with ESMTPS (Nemesis) id 0MHN31-1ZZMfc3iEt-00E8CJ for ; Tue, 25 Aug 2015 10:37:44 +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 t7P8a89J032589 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 25 Aug 2015 10:36:08 +0200 Received: from listserv.uni-heidelberg.de (listserv.uni-heidelberg.de [127.0.0.1]) by listserv.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id t7P8RLMU015549; Tue, 25 Aug 2015 10:36:08 +0200 Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 16.0) with spool id 12525432 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Tue, 25 Aug 2015 10:36:08 +0200 Received: from relay.uni-heidelberg.de (relay.uni-heidelberg.de [129.206.100.212]) by listserv.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id t7P8a80N020694 for ; Tue, 25 Aug 2015 10:36:08 +0200 Received: from nov-007-i574.relay.mailchannels.net (nov-007-i574.relay.mailchannels.net [46.232.183.128]) by relay.uni-heidelberg.de (8.14.1/8.14.1) with ESMTP id t7P8ZxgO032428 for ; Tue, 25 Aug 2015 10:36:05 +0200 X-Sender-Id: netnames|x-authuser|joseph.wright@morningstar2.co.uk Received: from smtp3.easily.co.uk (ip-10-237-13-110.us-west-2.compute.internal [10.237.13.110]) by relay.mailchannels.net (Postfix) with ESMTPA id D36F64AF6 for ; Tue, 25 Aug 2015 08:35:54 +0000 (UTC) X-Sender-Id: netnames|x-authuser|joseph.wright@morningstar2.co.uk Received: from smtp3.easily.co.uk (smtp3.easily.co.uk [10.45.8.167]) (using TLSv1 with cipher DHE-RSA-AES256-SHA) by 0.0.0.0:2500 (trex/5.5.1); Tue, 25 Aug 2015 08:35:55 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: netnames|x-authuser|joseph.wright@morningstar2.co.uk X-MailChannels-Auth-Id: netnames X-MC-Loop-Signature: 1440491755263:3093300074 X-MC-Ingress-Time: 1440491755263 Received: from [139.222.114.163] (port=51951 helo=[139.222.114.163]) by smtp3.easily.co.uk with esmtpa (Exim 4.43) id 1ZU9hw-0004CA-E3 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Tue, 25 Aug 2015 09:35:52 +0100 References: <55DBB7F6.1070307@clear.net.nz> <55DABA1D.3050706@morningstar2.co.uk> <55DCFDF7.7080305@clear.net.nz> <55DC05BF.1040505@morningstar2.co.uk> User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-AuthUser: joseph.wright@morningstar2.co.uk Message-ID: <55DC28E8.9090405@morningstar2.co.uk> Date: Tue, 25 Aug 2015 09:35:52 +0100 Reply-To: Mailing list for the LaTeX3 project Sender: Mailing list for the LaTeX3 project From: Joseph Wright Subject: Re: Catcode changes To: LATEX-L@LISTSERV.UNI-HEIDELBERG.DE In-Reply-To: <55DC05BF.1040505@morningstar2.co.uk> Precedence: list List-Help: , List-Unsubscribe: List-Subscribe: List-Owner: List-Archive: Envelope-To: X-GMX-Antispam: 0 (Mail was not recognized as spam); Detail=V3; X-GMX-Antivirus: 0 (no virus found) X-UI-Filterresults: notjunk:1;V01:K0:F7M23rwsAZ8=:EbqnIBDVHYfiQAu2t18YTVFvah 7Iv9GeREibDi0CLgEh9iZuqi7+YVRvLg+nJ2fXr86GMHxctJpmeQXKSqiNHU/HTsR0p4Avq4m ScEHFKEOOoW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rlUui0upr/LcbxIj2k1RDMEWJZhtF/2DVCNDW/7/HOQTMhtkiPGrft2l7oB4r5l+yM65+OQD5 UiKiiymsbLo0TZJVP8tyagpQuEi0mPrrwRTlf22qG4QDObvBRmdYnhjpnjF4UsKZAYM6D+Lkh Lo5Q1L3+nBtvJ5eqv929u0/A6gVGc5tCklUyLsMN7hQ3kaVDWoUBF4IoIwf62w0COTL5TzJh4 5L5Jy6MmamWVM9wFvjdONQh4m0JZs6ZE6lGctCjYEob78WbOzETHgb2D/VEDQtzd5uwepGuOx 5Xgzx68YFKiu/URqiKfRNB9AORiVNw4ByroF+a+bjPT2kjcJjRfy3ccSO/zNpbkD17RCvPKA= = X-UI-Loop:V01:pFNEj5qX7wc=:bWM4jD2gPqHgjh8buqa5PaKyTlxw0gc5LS50fw1M0pg= X-UI-Out-Filterresults: notjunk:1;V01:K0:b7ezqyOpNFk=:9X4T8rrWr9jUE1INvDnr+e /NsupiOgujBa20XgSjqb3g8SarbZExFeF6Vi6kJ799EV4i0Wo5sZu7gO79fQtulK0cz1TveT8 lKXgZ+C7g3ARw9lB2PTU42knaLHMIzdJ6OQf9+PlFcUck0LwyUYTBVngIrfbbpIPxVgllOq40 JIoCsYJos9/2BIMYHryIMXD/F5wIlmmznqN6Olj8qBJ27c2ClKcLgO7IG1A5gn49tSIMTmztK oM1KMeXnGQfSZJEwdQcG3OZTrpGl0yWK9GuYI1QIgVKJkpr3v2gxwjDnG6YC6qu8VOvuZaftk ezvoNbvdlTqRAxUx2l0dyoVELoxMBBR1URsEUFb10Jgh4gAdhMlSfYpcZ/IU9719hpshtpUVL 4LWgCtGOChlnhbb69H0e7MSderMB8SKVq9VF/I/5s761jPRaVHzXpEAXATYEPwCGI+WraISS3 rkOAw0A9xt03XgJoRrPxL/mx2ZADUNY8xkGjxaJ5O5v7RJMml4zj X-Scanned-By: MIMEDefang 2.71 on 85.214.41.38 Status: R X-Status: X-Keywords: X-UID: 7834 On 25/08/2015 07:05, Joseph Wright wrote: > On 26/08/2015 00:44, aparsloe wrote: >> (1) I wanted to use \tl_replace_all:Nnn on a token list that might >> contain braced groups. Using \tl_set_rescan:Nnn to change the category >> codes of { and } seemed the most direct way of proceeding. (Then >> resetting the category codes after replacement with an empty setup.) > > I see what you mean (I have a similar case in siunitx, for historical > reasons). We'll explore what we can do with this: there are > mapping-based approaches one can imagine that will enter brace groups. > (We do that for \tl_lower_case:n, for example). However, for a general > 'search and replace' I'd be slightly wary as the TeX convention that > stuff in brace groups is 'special' is quite prevalent. (Depending on > performance requirements, you might also look at l3regex if you are > doing the replacement only very rarely.) It would be useful here to see what your real use case is, as that's often illustrative. -- Joseph Wright