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 4789 invoked from network); 9 Apr 2021 19:25:13 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 9 Apr 2021 19:25:13 -0000 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:Message-ID:Date: Content-Transfer-Encoding:Content-ID:Content-Type:MIME-Version:Subject:To: References:From:In-reply-to:Reply-To:Cc:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=zDnUsETon6KjUrfK1MNMuOixo4vIt9XeDHNM60SIjlY=; b=S+9MdbSrXRzCIhI2/UklYRhQI3 919UMaeYeF5DQLOwoRlQtVyf3LLZvt6NAw4To6C2vufwnUnDO8yr7Vq4fB8bHAqE73+hroCHNysAH gAtfAcvedm4kDxERBK5dfS+ja7uCU5RPSqR4snIzbTKtQeC93yYIWKjpq2EMjNFP9be7Pbp9ZLJhM LynRlS357C13NZJH7zSVwbvMRSoDr48E2zquRPRCmr126cezPQXV1p4kw5myJeSCq7efLoO+rdMLX 2KC3zQyaRGBdJN494zQ9so6x9BSmBZR2fwLCED5SFXQ4Yqt+7+yXoN+QFwWOWLW8xaM/v+7zcs3Ey LO4bQHYQ==; Received: from authenticated user by zero.zsh.org with local id 1lUwkh-0004M8-HX; Fri, 09 Apr 2021 19:25:11 +0000 Received: from authenticated user by zero.zsh.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1lUwkU-00046u-Rn; Fri, 09 Apr 2021 19:24:59 +0000 Received: from [192.168.178.21] (helo=hydra) by mail.kiddle.eu with esmtp(Exim 4.93.0.4) (envelope-from ) id 1lUwkU-000L8c-EH for zsh-workers@zsh.org; Fri, 09 Apr 2021 21:24:58 +0200 In-reply-to: <20210401223407.GG11180@tarpaulin.shahaf.local2> From: Oliver Kiddle 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> To: Zsh workers Subject: Re: _arguments -n / $NORMARG (was: Re: [PATCH 1/2] __arguments: New completion function for _arguments.) MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <81256.1617996298.1@hydra> Content-Transfer-Encoding: 8bit Date: Fri, 09 Apr 2021 21:24:58 +0200 Message-ID: <81257-1617996298.439634@WyT_.pTdt.VYqg> X-Seq: 48443 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: On 1 Apr, Daniel Shahaf wrote: > 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. > 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. Oliver