Return-Path: Received: from mout.gmx.net (mout.gmx.net [212.227.17.20]) by h2774747.stratoserver.net (8.15.2/8.15.2/Debian-3) with ESMTP id x317gHhx006637 for ; Mon, 1 Apr 2019 09:42:18 +0200 Received: from relay2.uni-heidelberg.de ([129.206.119.212]) by mx-ha.gmx.net (mxgmx114 [212.227.17.5]) with ESMTP (Nemesis) id 1N7j0E-1gpGGP2cMM-014lzz for ; Mon, 01 Apr 2019 09:42:11 +0200 IronPort-SDR: ASbdh9OgNuYOVfhRTqWCJTzYEmdF7HNKvsdRx2c3wtP45PC8KDUAiD236FqG+i4CxnmnIa68Kd h9CGqY/S0zS9aJk9fVQ6leH7Q7HbK/HTFbzgEZmvNEMgRDWgougoovq10djHaq6Daj2GeUiqMX KwdkE5mZshwh4xqVpzirqPoEC8/udagCqAfWirBokUaaLIMoOZ7RSOq90vyJQy8+tnsf7FcrLo 6jvEM7Bv6NvIEalr9T8RHORR/qN6n8iLH/ZHREPJ5jngJpNDfYftDWEeaRiLmhTJxK/cpilgcP Mbs= Received: from listserv.uni-heidelberg.de ([129.206.100.94]) by relay2.uni-heidelberg.de with ESMTP; 01 Apr 2019 09:42:12 +0200 Received: from listserv (localhost [127.0.0.1]) by listserv.uni-heidelberg.de (Postfix) with ESMTP id 2D6D6127F60; Mon, 1 Apr 2019 09:42:05 +0200 (CEST) Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 16.0) with spool id 34680674 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Mon, 1 Apr 2019 09:42:05 +0200 Delivered-To: LATEX-L@listserv.uni-heidelberg.de Received: from relay2.uni-heidelberg.de (relay2.uni-heidelberg.de [129.206.119.212]) by listserv.uni-heidelberg.de (Postfix) with ESMTP id 1900E12799E for ; Mon, 1 Apr 2019 09:42:05 +0200 (CEST) IronPort-SDR: xv8PlbTCykYutjdbtX8rMSlNuFcTnu3lVpiazHSDQK2/NO8cwxsRlwGSQCsZnbwGA1QxxVPU+U Mk4Sm+4If1bcRPyzlWeor9aghGrl3i81VZai8axlelknTaNd/CmVti2J+HojGnEg020Z5ESu0v FVzTUWFBzq92LqixzwUfoLUU1YPMZEq5elWBkWXUUwF4J570O0PfGzevuTLUeCqyy0cErr12eP Y89MuFlqHxv5u+2YC4n+EsSrxySfRIA1wTCgwEXaX6ijIMJCOkHl545BsHWByp0fnrlY4y+bEn YGGo+ULR5DtbJb39dDNPQ0UB X-IronPort-MID: 16439479 X-IronPort-RemoteIP: 209.51.188.92 X-IronPort-SenderGroup: UNKNOWNLIST X-IronPort-MailFlowPolicy: $ACCEPTED X-IronPort-Reputation: 0.0 IronPort-PHdr: =?us-ascii?q?9a23=3ACVYh+xRcIpvA9g1EeUqkuW9Letpsv++ubCcI9p?= =?us-ascii?q?oqja5Pea2//pPkeXbS/uhpkESQBtiJ8f9AgvuM9b3mWCkA7JeNvXQIfYZDER?= =?us-ascii?q?MI2o0NhwJ1JsmDBAXgKeLyKTQgFZFOXVxN8Hemd09PF5W2fEXc90W79iVaAR?= =?us-ascii?q?DjLUxwL+XxFJTVipG73uOa9JvOJQJSi2n1eqt8eTOxqwiZrcwKmc1iJ6I2nw?= =?us-ascii?q?POuWdNcv9KyHlAKF2chFDz4Nr2+4Rsqn4Cgf8q+s9eXKm/RJwWF+MGXhIhNW?= =?us-ascii?q?19pNfmsRDSF02S4HpZUmgXnhdMCQXf41f2U8W5tCyyred71CSAWK++BbkpRT?= =?us-ascii?q?Sv6btqQx70mW8GMTA+6mTels13iupSvhugoxV1x4OcbpuSMbJyeabUfNVSQm?= =?us-ascii?q?QkPI4ZWyVCKoy6cs0IFeVAdedUoo/hpkcf+AOkDFrkD+fuxzlUw37uiPdigq?= =?us-ascii?q?J8SEefjFxmTohd1Rac5M/4P6oTT+2vmbPFyTzSNbVL3za46IXJfh0lq/yWUv?= =?us-ascii?q?R8fJm0qwFnGgXbg1GXsYGgMSmS07FHv2GYx+VmSKSokWFt+Elh5yOiwMshkN?= =?us-ascii?q?yDiosW4l/C6GN+2ol/drjaAAZrJNWjFpVXrSSTMYB7F9gjT29fsyE/0rQauJ?= =?us-ascii?q?S/cXFQmq4qzBPedfGLNrOwzE+6D7SpKCxjzDJ/dba2lkz07E6hj+3xV8W51F?= =?us-ascii?q?xHtCUDntSe/nwK0hXS7ICARJ4ftg+t0DWn2AbOrOZeLgg4mLHaJJgo3rMr3s?= =?us-ascii?q?BL4AKeR2mvyBWw3fXef15s4uWy7uX7frjq7oSRMYN5kECbUOxmm8CyB/g5Lh?= =?us-ascii?q?lbWmGa/eqm07iwtUb9QbhMkrg3ivyD6MGceJ1d//7pRV4PgeNBo16lAjyr0c?= =?us-ascii?q?oVhywdIVZMaUjBko7oflHDIfz1Cf2ymVvqnDo4opKOdrDnHJjJKWDO1bn7er?= =?us-ascii?q?MooUJVyyI8y80Z4IhbQOJJMLfoV0n9ucaNRBMwMCS7xfuhD89ynNB7OyrHEu?= =?us-ascii?q?qSN6XctkWN7+QkLryXZYMbjz36LuAs+//kiXJq0U9YZ6Si2oEbLWypBvkzaV?= =?us-ascii?q?vMemLi251SdAVC9hp7VuHhj0eOFCJed2rnFbxp/Sk1UcqnFduRH9z1xuXRgm?= =?us-ascii?q?HkRtsOIToabzLEWXbwK9feA6dKMXvCZJU6z3pcEuL9A445iUP07F68luMhd7?= =?us-ascii?q?qEvHVf786r1cAptbGN001ps2crSZrBlDvSKgM81mIQG21pgOYu/QoklwnFi/?= =?us-ascii?q?AoxKYIXd1LuaETCl9jZ8KMlLQoUouuCFCGIofsKh7uQ834U2tpFotjn4BWMR?= =?us-ascii?q?8hQYfwyUyTlyuyXe1Pz+TSVsBt+fKOhSCjfcommSSBivVpmVAiRoEWbz+ci6?= =?us-ascii?q?Vy9hbeC8vyq2vCz/r4U6Ma0WaN7mqHxHvU+lxeUUtwXKTJUHQVa1HZ69j0tA?= =?us-ascii?q?vESPe1BLIrPxEkq4bKI7ZWatDvkVRNRevycNXYbWWrnm6sBBGOjrqSZYvucm?= =?us-ascii?q?8Z0W3TEk8B2wwU+H+HM0A5CELD6yrGCydyEFv0f0722eRxp2j9QUkpiQaQYA?= =?us-ascii?q?wp1ra4/AIUme3JS/4X2eFh2m9poDF1EVChmtPOXoDY9kw8JeMFMYN7sQ0UnX?= =?us-ascii?q?jUvAF8IJG6erpvglcPKUJquUKr1xh2BohEm8UwozUmwVkXS+rQ3VVfejefxZ?= =?us-ascii?q?21NKfQLzy48BmsQ6HQxxfZytncqcJtoLwo7k7uug2kDB9o63J8z9xcyGeR/L?= =?us-ascii?q?3HAwUJF533TwAw7Rcw9NS4KmEtoojT03NrK6y9tDTPjskoCOUSwRGlZ95DMa?= =?us-ascii?q?mAGVajQf1fPNCnLakRo3bsaxsFOO5I86tlbcygar2BwqH5Zb88zgLjtnxO5c?= =?us-ascii?q?VG6mzJ7zB1G7zH2YtDxOuXjFPeCmXMyWy5u8WyorhqIDEfGm3mlXrpC4FKIK?= =?us-ascii?q?J0YMAME2j8e8A=3D?= X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A0DTAABrv6FcZFy8M9FjHAEBAQQBAQc?= =?us-ascii?q?EAQGBUwUBAQsBgT1QAyWBNwQLJ4RwiBmMWIlGjneBexArAYRAAoVAGgcBBDI?= =?us-ascii?q?HDQEBAwEBCQEDAQEFHAsKBR0OL4VKAQEBAwF5BQsLGAklDwEESROFCwUIAQM?= =?us-ascii?q?BqUqKJSKBDQGLMheBQD+DdS4+iiUDikebAwmTeos5iHOIQ5ZygVQKgX0zGgg?= =?us-ascii?q?oCIMnghYXjiA+MoEFAQEhEwsBjxQBAQ?= X-IronPort-AV: E=Sophos;i="5.60,295,1549926000"; d="scan'208";a="16439479" X-MGA-submission: =?us-ascii?q?MDFLsEm/+LrrRgGXk6ysnwKgfKSNvsaUTrdS9X?= =?us-ascii?q?H98mcL+FQgJry/zRZJaLfwi0gh3F3olnrg47IqqjKcvqiy+WGjpqryIP?= =?us-ascii?q?S3tbBDo+6gFN6W/dc62mIBHlYTHfphfBDqwPp7vAJSuPjvvLc+bkh+Dh?= =?us-ascii?q?zrpQvi2TdRnqqNdKj+51w82w=3D=3D?= Received: from eggs.gnu.org ([209.51.188.92]) by relay2.uni-heidelberg.de with ESMTP/TLS/DHE-RSA-AES256-SHA; 01 Apr 2019 09:42:05 +0200 Received: from fencepost.gnu.org ([2001:470:142:3::e]:41972) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hArZx-0004Gx-TK; Mon, 01 Apr 2019 03:42:02 -0400 Received: from x2f31b6f.dyn.telefonica.de ([2.243.27.111]:40326 helo=lola) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hArZx-0006um-BH; Mon, 01 Apr 2019 03:42:01 -0400 References: <856ff273317abf46dda9ce8c6fb0d6bd8d22472b.camel@sipsolutions.net> <85c344a1672db33f48cda03ab5438ddedf4664ad.camel@sipsolutions.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] Message-ID: <8736n2894o.fsf@fencepost.gnu.org> Date: Mon, 1 Apr 2019 09:41:59 +0200 Reply-To: Mailing list for the LaTeX3 project Sender: Mailing list for the LaTeX3 project From: David Kastrup Subject: Re: Rescanning first token of environment when no optional argument is given To: LATEX-L@LISTSERV.UNI-HEIDELBERG.DE In-Reply-To: <85c344a1672db33f48cda03ab5438ddedf4664ad.camel@sipsolutions.net> (Benjamin Berg's message of "Mon, 1 Apr 2019 09:29:53 +0200") 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-Spam-Flag: NO X-UI-Filterresults: notjunk:1;V03:K0:OagzzadSBwc=:hRtR+v2IQ3Tu0GT+PJj2XsuKMm DZVZ9HRZ53vDLPEGz0kdlT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9dX/aFmDLBmOQ== X-UI-Loop:V01:AAXL64K0Uc4=:i3rs2BTgl0+alGd4Je3uewS4MO+FA1gWWWeERw8ChYQ= X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:fSLy6By3iXU=:Pk1Z4gPB4Ak1ej0gPWbfMw 1jz7krjIMutDCrDOefPwu35N2Aq5ddPNDldIdHu1dnvpvLg8N2MmCxJ4Z5Yv3DlOydyH1G6Td KVTa25u/TUjfHcxp0ZBXMQt6xzpW87a6Vwm1LSV9qPI95iObXmlct1EI8DoSqIXSgegUeOkvB HdETlaHTwzCOhfKzW/CYmIuBqVsiB9wS8+EIacqw42OEnfas0dgvFKMoSYmwk6o21JSE4Zbin zK+OPTaB1ZBgf+Wmc35rjC97xWIbkxRr3L7f5fTVxC9yJ4sLJcd9csoGS60lKrCPP+NldML+o CBDA1XG3JERvXMF7s8udF8ATi3T6dpNcWX2zDxwQjcmHJeQdxAjLhGkmc+oQOE/KngZzFa1Dk YBTcav8CHxUQ0/U6RyULJ1epN6gfICIGyra32nhQ1a6P+Grn9ognzwXhlbNGZSTfQITkQq/Vo 7/A7jErDBw== X-Scanned-By: MIMEDefang 2.78 on 81.169.212.23 Status: R X-Status: X-Keywords: X-UID: 8172 Benjamin Berg writes: > Hi, > > On Sun, 2019-03-31 at 18:57 -0300, Phelype Oleinik wrote: >> If you can't switch the catcode of & before looking for the >> optional argument, as David suggests > > David has a good point, I could handle the optional argument parsing > myself and ensure that the case works correctly. It may not be trivial, > but it should be reasonably easy. It should be trivial. You just use the provided mechanism exactly as you did before (though naming it differently) and call it last thing in your argumentless wrapper environment after setting up catcodes. That way the argument scanning only commences once catcodes are settled. -- David Kastrup