Received: from mout.gmx.net (mout.gmx.net [212.227.17.22]) by h1439878.stratoserver.net (8.14.4/8.14.4/Debian-2ubuntu2.1) with ESMTP id t5CIE8iu003365 for ; Fri, 12 Jun 2015 20:14:09 +0200 Received: from relay.uni-heidelberg.de ([129.206.100.212]) by mx-ha.gmx.net (mxgmx111) with ESMTPS (Nemesis) id 0MOSVt-1Yzv6F1SuT-005ppj for ; Fri, 12 Jun 2015 20:14:02 +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 t5CICM3n024000 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 12 Jun 2015 20:12:22 +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 t5CEbFfF004981; Fri, 12 Jun 2015 20:12:21 +0200 Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 16.0) with spool id 12204698 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Fri, 12 Jun 2015 20:12:21 +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 t5CICLnC022648 for ; Fri, 12 Jun 2015 20:12:21 +0200 Received: from relay.mailchannels.net (nov-007-i570.relay.mailchannels.net [46.232.183.124]) by relay.uni-heidelberg.de (8.14.1/8.14.1) with ESMTP id t5CICDxd023938 for ; Fri, 12 Jun 2015 20:12:18 +0200 X-Sender-Id: netnames|x-authuser|joseph.wright@morningstar2.co.uk Received: from smtp1.easily.co.uk (ip-10-204-4-183.us-west-2.compute.internal [10.204.4.183]) by relay.mailchannels.net (Postfix) with ESMTPA id 0E553A01A6 for ; Fri, 12 Jun 2015 18:12:10 +0000 (UTC) X-Sender-Id: netnames|x-authuser|joseph.wright@morningstar2.co.uk Received: from smtp1.easily.co.uk (smtp1.easily.co.uk [10.21.145.197]) (using TLSv1 with cipher DHE-RSA-AES256-SHA) by 0.0.0.0:2500 (trex/5.4.8); Fri, 12 Jun 2015 18:12:11 +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: 1434132731419:118550715 X-MC-Ingress-Time: 1434132731419 Received: from [176.12.107.140] (port=54494 helo=[10.101.1.25]) by smtp1.easily.co.uk with esmtpa (Exim 4.43) id 1Z3TR2-0006CB-Ig for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Fri, 12 Jun 2015 19:12:08 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 References: <557AAB6A.2060109@morningstar2.co.uk> <4x0uuwrujdy7$.dlg@nililand.de> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-AuthUser: joseph.wright@morningstar2.co.uk Message-ID: <557B20F7.80503@morningstar2.co.uk> Date: Fri, 12 Jun 2015 19:12:07 +0100 Reply-To: Mailing list for the LaTeX3 project Sender: Mailing list for the LaTeX3 project From: Joseph Wright Subject: Re: Error with \keys_if_choice_exist if the value is hidden in a macro To: LATEX-L@LISTSERV.UNI-HEIDELBERG.DE In-Reply-To: <4x0uuwrujdy7$.dlg@nililand.de> 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:qGuq5LtxRlQ=:62mWZZ2lRCyZkfhD2vjMnBUExi Tgie32JCIqZPxUYP/BY9sMy14P26l5jU1PoYBk+YL7iYhbZQbCzxqBf7w+VgTA/MKn2+wTM6a ti1nqDemQ/LYtzK46nZEw92wuAsfGUHo4FCii5hq8g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n95NQo/eriV+7i4gEXcFZlxVg12JwXp8MT0SiKKwfCXVLdewZ7RqQHSbks0y Bzwbw73Gu9xuIQDjoqJ2pF7WOBrZe5mmwuSxNGQL8SxEf7gThdrw4FyHJ91cKyeIQ/B9NDJSQ o+GWUQ5VZPkCF/YBoKnMKx1LKeZoUC8hPgPCiAiYJ6nleFA6No6fk/MhKxpa0SEdTMyBgJBRK FThH6AkFfUq5qAJ3G4WGiY0CPGnsty7rl9qgQsIlfatkvVwAih+3/KkTIgChjkUoHhi9ooJ60 W2JwlGIU2ox9LoTCau5aScdA9/ohh1rYitWUjsY+ol+zBmrQOC4ZToPRT7FRbgTLEFV/dxlQ= = X-UI-Loop:V01:YWDqwNCMag4=:yoq40boUbD/JBVxf1A1vEpZD1bpD2UakveHjIgQGDpA= X-UI-Out-Filterresults: notjunk:1;V01:K0:B1ojadE0oN0=:sWwrQcrA7jUzaWUx6/aoSM GV3IJqPVaB0gp9gm/gSkKIeYmLHwRZ3hdOijMEVcq0AKFNG7Sv2dtdnf2lI2+2S8OiPZ+y+6f Z+hp5VuBtkAZYc3eHVQlYWPUJ/OyIGyMGXT27rAY3UwniuJxngBLgJK8zCp2FT/QRA6RGHHr0 rh8dspa1o2fBnlx5oeSQNT/Py5bIUlgiYH1BArvmzVfBJJEJ6rxUH8xPUL02VFqr/FhZjPC6A fmfxHVgLBlk6RV32rCDcmWH3mGb3DHMfDRwjjsLsedthZI8IaVPCRTHJlSmuYgsRyaFfjIuQD +1pKwEHMDXIsEad3peInVxFJDijlGa3vN257Fr/7O78JrJNkwlzUvcgFs2mWItJ9hhziQwa77 3nfMwY1z2FWI0dRthNjeo2AfRCjYT5gu9syUY9UwVrGHk/TGQmX+1vR7e+FhBscEkYI8V8IcE YHMwM2PwcHGc+clNK+WV3AfrI+DSg4txvucWqEHdrZ//VucrPRMM X-Scanned-By: MIMEDefang 2.71 on 85.214.41.38 Status: R X-Status: X-Keywords: X-UID: 7729 On 12/06/2015 11:58, Ulrike Fischer wrote: > Am Fri, 12 Jun 2015 10:50:34 +0100 schrieb Joseph Wright: > > >>> Why is the T-branch executed in the second case? Is is a bug? > >> Yes: > > That's a relieve. I was really very bewildered ;-) Glad I could help: is a release urgent? > Btw: I came across the problem because I was looking for a way to > get > > \keys_set:nn { test } {type=\testvalue} > > working, if \testvalue expands to a known choice. Is there some good > way to do it? > > \exp_args:Nnx\keys_set:nn { test } {type=\testvalue} > > works but could lead to problems if more keys are in the list. Like other keyval systems, l3keys does no expansion of the key or value when parsing: that's by-design. As such, you are going to have to go with x-type expansion here if you want the effect you describe. If the input might contain uncontrolled LaTeX2e user input then you'll have to go with \protected@edef and an intermediate tl, but if everything can be assumed to be LaTeX3-based (or if you make it clear that \robustify or similar should be applied to any non-robust input) then define a variant and use \keys_set:nx. --- Joseph Wright