Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) by h1439878.stratoserver.net (8.14.4/8.14.4/Debian-2ubuntu2.1) with ESMTP id t5C9qUvc025290 for ; Fri, 12 Jun 2015 11:52:31 +0200 Received: from relay.uni-heidelberg.de ([129.206.100.212]) by mx-ha.gmx.net (mxgmx110) with ESMTPS (Nemesis) id 0LaKva-1ZRuxL01JG-00m0GW for ; Fri, 12 Jun 2015 11:52:25 +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 t5C9olbx029934 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 12 Jun 2015 11:50:47 +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 t5C9OXah004981; Fri, 12 Jun 2015 11:50:47 +0200 Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 16.0) with spool id 12189748 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Fri, 12 Jun 2015 11:50:47 +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 t5C9ok9I019357 for ; Fri, 12 Jun 2015 11:50:46 +0200 Received: from relay.mailchannels.net (ftx-008-i774.relay.mailchannels.net [50.61.143.74]) by relay.uni-heidelberg.de (8.14.1/8.14.1) with ESMTP id t5C9odMq029853 for ; Fri, 12 Jun 2015 11:50:43 +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 3A7DA1D0EBC for ; Fri, 12 Jun 2015 09:50:37 +0000 (UTC) X-Sender-Id: netnames|x-authuser|joseph.wright@morningstar2.co.uk Received: from smtp1.easily.co.uk (smtp1.easily.co.uk [10.83.15.107]) (using TLSv1 with cipher DHE-RSA-AES256-SHA) by 0.0.0.0:2500 (trex/5.4.8); Fri, 12 Jun 2015 09:50:38 +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: 1434102637541:1063089892 X-MC-Ingress-Time: 1434102637540 Received: from [139.222.114.185] (port=53759 helo=[139.222.114.185]) by smtp1.easily.co.uk with esmtpa (Exim 4.43) id 1Z3Lbf-0002WY-5i for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Fri, 12 Jun 2015 10:50:35 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 References: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-AuthUser: joseph.wright@morningstar2.co.uk Message-ID: <557AAB6A.2060109@morningstar2.co.uk> Date: Fri, 12 Jun 2015 10:50:34 +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: 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:bhea2Py3HNs=:jLt5F05RwdxrBKVNrCDqkw37Qo UkbyOkCAJ+60ICjbRjasEbFkqonE3T5BfBT2W/Ak1+XwVvE7bRPq8IVCucrPDaBKfgCe3s+Ab iJI0Y9WQzRMG92mFT9SMUQu1TbhMpSbYnuOH/F4dLrrolxIBVqKP+t6w+VwbQ4KrkzyPeI4Zn e9iuoWEL56jNTJxCzR1YpHGdiTcffyqtGzLfv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hr2lXwRh1dZWWI5OFYl5jxyoLClymsIBBfP91rGAQnlGF4pgPP 76LW5vifM/FwHf8D+Hf8wsFxXK8UUtR1KeViTvvjKp2haaYSi80F14PkC2TkZjFGOu+S6sioZ Kl0q0LnxYYyPXC3YQHil7n+eO7OTF5NKBpHFFKT5ymco91NzMg0Xh4b70M+wLV8+kSkH4r1ON s/wgZ8+42ITo/Z1HrRRra0CuWOANUeiSnz3+9zrM0PwS2nLOf8f3xYUI1GFbb8rcvl7MyLLg= = X-UI-Loop:V01:BBJwHPKLzqU=:/aepgV+4JJlz0DLraNA7hag0ErYZS/oS9fFZb17Pc/Q= X-UI-Out-Filterresults: notjunk:1;V01:K0:aqAYZz6kvHs=:nNJyhM+gXNqBgwDzqC5Svm iBG5t84tv9LsyRLTZ/gYrne1nzfYOyHZvjF6K5nC1hdB9EJNVMni04CoR1yl2EDv1XCGq+fmy cPi6ZSRpTDXlt8RFdr3pu7wEz+z3fiiQz9zo1Yf2kQ/dc+45OgxN0OCJpc4KSxEsDKtijqucY hVHO6eSqbwvg0nBnyfwV7xD5v9wQPTuaBjo/4rwQ7BniAJ5kwI67KkOAlrNt46mPm80wFD7zo u+2OGgab08kIDFvfMO+nq3FcvVDfjtIsB0qxkM6kiWcFHQIkIhrkwoP9lias4FpPy8u7nzM6A 4bL5nuSHpgNTOxYNEBqI3ZwS5JPgvUUxemuZ9Sdrx6d9OCCXT3Bkh5J6UJpIOpTCiHw0KrvsT Ci30xjeoi6AV96GSo5vmfF8HpK9M+PCJQHhA7tTqoznNZMupLD++XMEs74vZ16hO0wQ38J/Lh hujn1iVesCL6T0UxlM9RFuRFWLUH7ic7NBXIdKryxrEdgcKkFAtP X-Scanned-By: MIMEDefang 2.71 on 85.214.41.38 Status: R X-Status: X-Keywords: X-UID: 7727 On 12/06/2015 10:28, Ulrike Fischer wrote: > I'm getting an error in this document and don't understand it ;-( > > \documentclass{article} > \usepackage{expl3} > \begin{document} > \ExplSyntaxOn > > \keys_define:nn {test} > { > type .choices:nn = { A , B } > { > blub > }, > } > > %Works as expected: > \keys_if_choice_exist:nnnT { test } { type }{ C} > { > \keys_set:nn { test } {type=C} > } {choice~doesn't~exist!} > > \def\testvalue{A} > > %Error > \keys_if_choice_exist:nnnT { test } { type }{ \testvalue } > { > \keys_set:nn { test } {type=\testvalue} > } {choice~doesn't~exist!} > \ExplSyntaxOff > \end{document} > > !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! > ! > ! LaTeX error: "kernel/key-choice-unknown" > ! > ! Key 'test/type' accepts only a fixed set of choices. > ! > ! See the LaTeX3 documentation for further information. > ! > ! For immediate help type H . > !............................................... > > Why is the T-branch executed in the second case? Is is a bug? Yes: I see where this is. I'll fix shortly and update CTAN over the weekend. P.S. Will also look at your TeX-sx question on key setting! -- Joseph Wright