From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 29766 invoked from network); 9 Apr 2021 22:53:50 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 9 Apr 2021 22:53:50 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1618008830; b=Z/nHMVe7opg267CK1CRw8ZEvNinLdlS2jfYpxw1ibHZjNT/CeDXq9YHMHoN0nGc65hSz8DKj2n t77b4MThqkwgJ5Mt0vMBYxInQ1Yvkb8lbzIuk0pmD9/1ukACbIK95EMD2W4uuPVvZVm6rFHPKx HOKg4nx1QKoQKDK+R5qkUh95i4BVZlMuvJV3R/vAQtkvBN5AodlHFez/M7qEAmMVKkOKtgRDoR Wjm+/b5SdydFmCkVFuZWoFoJ4YhCDLN1USEIe0VeuotQzlwLwX//exI/NrNTnomjERNoW6QJXU UyaQNpEDql6/Ay9Eko00ZblE769V0mkJMBwDe3RsZHdbPg==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (wout4-smtp.messagingengine.com) smtp.remote-ip=64.147.123.20; dkim=pass header.d=daniel.shahaf.name header.s=fm3 header.a=rsa-sha256; dkim=pass header.d=messagingengine.com header.s=fm2 header.a=rsa-sha256; dmarc=none header.from=daniel.shahaf.name; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1618008830; bh=BFtYPoUvS5zSd/A19IK4QJ9xcc6Lh4gUgwOzYtfdUIU=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:In-Reply-To:Content-Transfer-Encoding:Content-Type: MIME-Version:References:Message-ID:Subject:To:From:Date:DKIM-Signature: DKIM-Signature:DKIM-Signature; b=OfXZ4Ld1ESkLRoBy75Wa3A9TCdWq+t9DPNygQjwvaxDmJWbDHFH8w9yeSqZOkK44ST/v8TQ1mw NfqZAmhy4+TQb8DQb+lp5xeuWaCdqwR9ys69sKXnAnKCbGACrd9zWXskvnzkChi4Dya468KdTv a7fq/S/qfqjMg6QhpqsjJaLcSQvMEo8Bn7HpB1wbkV+n/LaiQ64LPIxV1Yum10gNrAK3fyvRD0 4AiKWAaJY5Vl0ElHgZLZDKs/Ws0wGZpJSMge+ywWgFGrPML2coqB1R6FluIunOPSvowkHVHlqI 2r2Zygj8xFd6VCdSobriucF2I/jUhiEAhn662DsuEUWv2Q==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20200801; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:In-Reply-To:Content-Transfer-Encoding :Content-Type:MIME-Version:References:Message-ID:Subject:To:From:Date: Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=5GUpRfLc6RH7PB0FzhdXqcUBT/Ne2O5c1wpQoDHa4Is=; b=QPiMwtLtGJXjC6a47C+Hz/4TUd syAOtGDdqyeYRJ1WP+7yfwayKkD8SmoY7nubBElGCBx7m3t6mqDEUBudj8GXfuriujYhwdlCd34WW GKOfJK5WzZ7TPJvM0+A3TsB0sJrfhbvCbHxN4xOo9wl7SKu7ZtR+wOzZOaOS5DkHOkDo/b7Xw7JP3 /G2Z+UXFs6SEcYl4nwaV10oNAZFCj8dZxprzwV6cTaX2YYRprmmO38+vGVLW0iTE41QgSdSFZyN+j Mqkaz5j1euFXlw2YgCE175SZPg0NNPFn2siBCj6+x1EWfR04KSc3W7YpcDjIqYZynmjZPp2HLthUy uN49X1gg==; Received: from authenticated user by zero.zsh.org with local id 1lV00c-000IdJ-9c; Fri, 09 Apr 2021 22:53:50 +0000 Authentication-Results: zsh.org; iprev=pass (wout4-smtp.messagingengine.com) smtp.remote-ip=64.147.123.20; dkim=pass header.d=daniel.shahaf.name header.s=fm3 header.a=rsa-sha256; dkim=pass header.d=messagingengine.com header.s=fm2 header.a=rsa-sha256; dmarc=none header.from=daniel.shahaf.name; arc=none Received: from wout4-smtp.messagingengine.com ([64.147.123.20]:55311) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1lUzzW-000Hwg-ER; Fri, 09 Apr 2021 22:52:43 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id B9FE210F1; Fri, 9 Apr 2021 18:52:40 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Fri, 09 Apr 2021 18:52:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=date:from:to:subject:message-id:references :mime-version:content-type:content-transfer-encoding :in-reply-to; s=fm3; bh=5GUpRfLc6RH7PB0FzhdXqcUBT/Ne2O5c1wpQoDHa 4Is=; b=wMmbhfXXx0ioGl9oA3ByHRj7dPnUav4umWYSSh4BMR9u0j9op7Uht+1x yhDHh3/HwWUHtFJ72lTVT08yfkG6zvKCVArPRpOa87k7+pYyXqC45nDv8RmB1x7b VR08Bb4aF2uaZIW+IjxIDaNVV7RKxPcQe8UJXAJ0Nlewr2I65uSTi5nso4zSVXIc taXEGSwY8sSEIy4iv8l9cG/kWRH6fqRPWPXGCPBletKL7AJPi0UPpvhlzPQU5thp a+YnhkYR55mBEVbu11J1t+C6nlxkMp1nQ3/p6A5a9wftCOFRZ2En2hD7hKEDfQxn QOKe/hf9Cx4VMzgDVLiHBKZ2iM9uaQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=5GUpRfLc6RH7PB0FzhdXqcUBT/Ne2O5c1wpQoDHa4 Is=; b=uRolBY39oFwoaoCRxCo9AuSUe8m3r9h5fgNEtEaJYUnrvsUgLc/6TwCML IvdyAHSFjRyV6BdaXqu3l1BGLDbB1jvhnyhO17eiUDMXAdjsFKGfFl6cGR9+VvGZ S5ROlzM/CE2S/evEEUYPjXqkcCtQOvQd8LRq26X4MgwHspxabbSxw4Uv1MHKWDB1 2iL9H+JqLaSrAOCW2A36HlKKI1jNDtpEMayISPZaPYAts5gLz+3ti9d0m9zaIlug vGS5XRIJYMnvJGHmMobhaPin4t72M/V0azGASAnWmKAB9tiGYkS9fTfLDo7C00Pp 4EpRwm6UWNI971r+hxL5dVM4r0/IQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrudekvddgudduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvuffkfhggtggugfgjfgesth ektddttderudenucfhrhhomhepffgrnhhivghlucfuhhgrhhgrfhcuoegurdhssegurghn ihgvlhdrshhhrghhrghfrdhnrghmvgeqnecuggftrfgrthhtvghrnhepgfelhedtffeuhf egueelfeffjeegtddtleehvddvueeihfevgfdvgffhvedvkeetnecukfhppeejledrudek vddrfeeirddukedunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilh hfrhhomhepugdrshesuggrnhhivghlrdhshhgrhhgrfhdrnhgrmhgv X-ME-Proxy: Received: from tarpaulin.shahaf.local2 (bzq-79-182-36-181.red.bezeqint.net [79.182.36.181]) by mail.messagingengine.com (Postfix) with ESMTPA id 097E924005C for ; Fri, 9 Apr 2021 18:52:40 -0400 (EDT) Received: by tarpaulin.shahaf.local2 (Postfix, from userid 1005) id 4FHD124xS0z2Ss; Fri, 9 Apr 2021 22:52:38 +0000 (UTC) Date: Fri, 9 Apr 2021 22:52:38 +0000 From: Daniel Shahaf To: zsh-workers@zsh.org Subject: Re: _arguments -n / $NORMARG (was: Re: [PATCH 1/2] __arguments: New completion function for _arguments.) Message-ID: <20210409225238.GC6760@tarpaulin.shahaf.local2> References: <20210401000026.23570-1-danielsh@tarpaulin.shahaf.local2> <96182-1617281582.024669@4LIl.h-KW.lXZv> <20210401173305.GB11180@tarpaulin.shahaf.local2> <20210401223407.GG11180@tarpaulin.shahaf.local2> <81257-1617996298.439634@WyT_.pTdt.VYqg> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <81257-1617996298.439634@WyT_.pTdt.VYqg> User-Agent: Mutt/1.10.1 (2018-07-13) X-Seq: 48451 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: Oliver Kiddle wrote on Fri, Apr 09, 2021 at 21:24:58 +0200: > On 1 Apr, Daniel Shahaf wrote: > > Could you elaborate on what cases «_arguments -n», as implemented, would > > cause breakage in? > > I can't remember the exact details, it was a while ago that I went over > the _arguments source code. But I think you can cause issues by having > optional arguments to options and not just sets - those also produce > multiple possible states. The field in castate was being misunderstood > in general. Sorry I realize I'm being a bit vague but I don't remember > the details sufficiently. > > I think I intended to fixup each of the uses of the option first before > raising the issue but I never got around to that. > > > The manual doesn't already include such a warning, but I don't > > understand how exactly $NORMARG is broken, so I can't document that. > > It'd be less effort to simply drop it from the documentation or mark it > strictly deprecated. It isn't particularly needed. Well, I'm not fond of documenting problems from memory, but a deprecation notice would probably be useful to readers, so no objections from me to doing that. Thanks, Daniel