Received: from mout.gmx.net (mout.gmx.net [212.227.17.22]) by h1439878.stratoserver.net (8.14.2/8.14.2/Debian-2build1) with ESMTP id r6EJwaqp006138 for ; Sun, 14 Jul 2013 21:58:37 +0200 Received: from relay2.uni-heidelberg.de ([129.206.210.211]) by mx-ha.gmx.net (mxgmx002) with ESMTP (Nemesis) id 0LpeRq-1UUMkb1tFW-00fVoc for ; Sun, 14 Jul 2013 21:58:31 +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 r6EJtK1j013986 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 14 Jul 2013 21:55:20 +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 r6DM13sK005214; Sun, 14 Jul 2013 21:55:18 +0200 Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 16.0) with spool id 10275598 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Sun, 14 Jul 2013 21:55:18 +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 r6EJjHO3016395 for ; Sun, 14 Jul 2013 21:45:17 +0200 Received: from mail-wi0-f181.google.com (mail-wi0-f181.google.com [209.85.212.181]) by relay.uni-heidelberg.de (8.14.1/8.14.1) with ESMTP id r6EJj82Y005010 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=FAIL) for ; Sun, 14 Jul 2013 21:45:10 +0200 Received: by mail-wi0-f181.google.com with SMTP id hq4so2186330wib.8 for ; Sun, 14 Jul 2013 12:45:08 -0700 (PDT) X-Received: by 10.194.121.132 with SMTP id lk4mr29735093wjb.25.1373831108305; Sun, 14 Jul 2013 12:45:08 -0700 (PDT) Received: from palladium.local ([213.205.232.212]) by mx.google.com with ESMTPSA id r8sm16369129wiz.5.2013.07.14.12.45.05 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 14 Jul 2013 12:45:07 -0700 (PDT) User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130620 Thunderbird/17.0.7 MIME-Version: 1.0 References: <51C94FA0.1080803@morningstar2.co.uk> <51DD0EBD.6080308@morningstar2.co.uk> <51DF2000.30703@morningstar2.co.uk> <51E12031.4060600@morningstar2.co.uk> X-Enigmail-Version: 1.5.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Message-ID: <51E2FFC0.6010209@morningstar2.co.uk> Date: Sun, 14 Jul 2013 20:45:04 +0100 Reply-To: Mailing list for the LaTeX3 project Sender: Mailing list for the LaTeX3 project From: Joseph Wright Subject: Re: l3keys feature request 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:+xc2gMGeq4Q=:Udi/D61QMh6/aZNdDctSUD V76ySDzgCsR7JxnI2LnvvnO402zbVDZK5usC91NWjlcmTMvNl88khOMcfHIIZAO25wJGOH+ 2RAqsuJ5zPmkhSlnY7sUEr0Wwc9OYU3OFNQBXEzZbmj2R+3XL0yTSNlDH9rZbCBWtHxhk/3 KW5ppHsp7FST4YeV6dESmysm0ISKQRFbNku/fcjRmDBBbbCS4Q5wx+uRJouIwRnXnsO4aui 0HPKXpgjZkKGGp++jdh9nO9wvOtf3/7nLijP/o+7YN/F79kkU3vmfJ3Q/lFMLtkFqtRaazO lB+1y4Ml9vCSoDprQwcjlackh9qiH1v3jPvmlloomBNneEFwgxv4fSkIyX7sa9zVVD3idRF OB1uxO26fWG3TFVeBGM6GOsZE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/3Z28k8pvmFUWXDPwm7 bJypXZxTj+HipPF63qtib6CiWo9eqZiKA7zxeiES+KxcHk/Wbrxb1xwr5DxdY0e6wIybPX2 OJczDZCGw20Rnjf7RDM+blxLRioZOdxiEnV68yttDOlovGSux34daANkOkcFyxLcoW2gOWW b0ixkQ/l9 X-UI-Loop:V01:4gG1ZpsYslI=:8GBSw4tfZd0AVwSUkmIoCrLw3XGQkqW25yG/za66T8U= Status: R X-Status: X-Keywords: X-UID: 7244 On 13/07/2013 17:01, Jura Pintar wrote: > I'm still not entirely sure about the handling of unknown keys. On the > one hand, I think there is a substantial conceptual difference between > keys that shouldn't be set because they're not in a group on the > 'opt-in' list or they're in a group on the 'opt-out' list, and keys > that cannot be set because they're undefined. For one, I expect users > are likely to pass a disallowed key to a document command because > they've not read the the documentation carefully enough (and then such > a key can be filtered out), but when they pass an undefined key, > they're likelier to have just made a typo. So they should get > different notifications in the two cases. On the other hand, I agree > that passing an undefined key to \keys_set_groups:nnn should normally > be less bad than passing such a key to \keys_set_filtered:nnn. Maybe > unknown key errors should be demoted to warnings in this case? For the moment I've gone with my simpler separation of 'keys which have been set' and 'keys which have not'. I've yet to write the docs, which may reveal issues, but my thinking currently is that key filtering is a way to assign only some keys in particular contexts, but that elsewhere either the 'balance' will be set or all keys will be set \key_set_groups:n { module } { group-a } { ... } ... \key_set_filter:n { module } { group-a } { ... } so unknown keys should turn up. I'm not seeing the need to using groups to separate out keys such that the 'balance' are never set: we have \keys_set_known:nn and different paths for such cases. -- Joseph Wright