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 3815 invoked from network); 21 Oct 2021 14:16:24 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 21 Oct 2021 14:16:24 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1634825784; b=oRiAM5hO4DZfCu9GmIzCjo5ApEqIM0NeKr/cz5j0WGDGJwDiHM0cjQU7Sr6BX7P937KmhM4jqo nCAFN6btlFM0yYRVAJ3QcJsGyBqL9hp0sw5bKRQRoqFsVAxZyGz6o6+RQ4fZ9lkZx2pSpwERNi 97oVXICk40OEWTj8nNahcyK2Skuia/+sMuFkYbKsKWJqm4IrSALJMY++xE5uAuKl5XxqbeExCI HywNX4QbSj0BCHtXMCBTozqeqYirmSuAQWrSgCndMBuTqMtlB0dfGIE3mftVmUzyaEIL2mWFyH nscshZz2CFxi39L/u00I+/lazvo6VxIyZ7XMcEAMCLz1OQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (out3-smtp.messagingengine.com) smtp.remote-ip=66.111.4.27; dkim=pass header.d=daniel.shahaf.name header.s=fm1 header.a=rsa-sha256; dkim=pass header.d=messagingengine.com header.s=fm1 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-20210803; t=1634825784; bh=kkj8adkA/8eHCMoLqrk0PiZMet0hLUTDMw9gaK/gbGg=; 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:Cc:To:From:Date:DKIM-Signature: DKIM-Signature:DKIM-Signature; b=juMMNlXBM71FEwPKiAdoLpErZ3AZJ+2NpXBdTpIFOpzIQDqs2PYFWX79AKWK0czz7WZ85Hy02w BcOA+3VSBIDMfjDtAmehyxRy7JON3yQUDCqDveW+lGWlgCoCUwc6RnvWuQLDPb3MUiW79+YCmS G++nMMcRya99x+oXqdm08OPrQ8QrDD9oLJdBVTXO3lIu7Weqng/O6u6sUvsK2L8PEBM+aOiBIZ 9oTQbViEGeC5xFBdVGVjqMdTXEjBh1ZzjdeaeaTACnIP5f7QiNtanaEFM7M2Mn3QDaB8kghfBJ JDWIYxxqThK7pXSvrklDuhwr1tMDknv6UWtSez3SKyJjGg==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; 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:Cc:To:From:Date: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID; bh=SIUho1ugfPOQR73WbbJx5ATfR/Kc7K9kzA8VXkaWgtk=; b=IJQyqn2S55UK6eH6K5J4BauHC1 V3IbXdFcQlzl4UQ1nykuG5LHNEWeVi01M6f5bGshkYZJuS03Tx3lMum7tHzKdURBK9eTlnhL38pol +IMnS8JsxFhnqADHR6/WgoDtqnvSJ8q5tOqH2vPaLWTHRVCLaCuSI0ihkV1r5JtBqx0tLUlotaa9J yZ9Or4I51VMHACboSjiJgGmLXo9ygktBUGhPZjtF2MCRf7zckdocYqANuPFR9HMlgXCqadLhgEUxn 5Nsox6Zm4+FA/Qc6RflSt7s3ycey2DK46AoCea2z2DS+GWdH1bWH0Px0hXY+ayY1P8ag0mXu5Zcwh rkGw5hqA==; Received: from authenticated user by zero.zsh.org with local id 1mdYrm-0009L9-JQ; Thu, 21 Oct 2021 14:16:22 +0000 Authentication-Results: zsh.org; iprev=pass (out3-smtp.messagingengine.com) smtp.remote-ip=66.111.4.27; dkim=pass header.d=daniel.shahaf.name header.s=fm1 header.a=rsa-sha256; dkim=pass header.d=messagingengine.com header.s=fm1 header.a=rsa-sha256; dmarc=none header.from=daniel.shahaf.name; arc=none Received: from out3-smtp.messagingengine.com ([66.111.4.27]:59633) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1mdYrR-00093N-DC; Thu, 21 Oct 2021 14:16:02 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 193885C01F2; Thu, 21 Oct 2021 10:16:00 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Thu, 21 Oct 2021 10:16:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=date:from:to:cc:subject:message-id :references:mime-version:content-type:content-transfer-encoding :in-reply-to; s=fm1; bh=SIUho1ugfPOQR73WbbJx5ATfR/Kc7K9kzA8VXkaW gtk=; b=fC6onxLiEBRxk/1bU8Tb+2563yK5JCL2fj4oj7VfJQZ9K3yvhYr884rc y/GkNOaxkcyaQ7P9VsGcvk4InmpUxUHOvWTF5JjtcRjqahYEs50sHYXYYdLo9vq8 RICs4R8qVX5MrPhe+/aXsApux1fPSLiKF0+IdeuqEJl6PXaWt44WDnB3SfNoQFx+ ii0qfyMInLh2kPDIjxUwCgGV0gq76XMa6Zs27agfJrEWi5VTGy7zJ+LaXTBibXTh SJ6F9X+UOzjomzUAWrRHIA4VX1dASmxdaOvjUffi67PBpLsN1NVREjVhXv2zxtWA IW4jLZHRCk7hsp9btarqY0tc7Ek6Og== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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=fm1; bh=SIUho1ugfPOQR73WbbJx5ATfR/Kc7K9kzA8VXkaWg tk=; b=FJTH607gWNzglOIUcTYkGXYOIdA681lBq+/58ogDm8ojuSDB7OX09xn2E xDtWeFA5lHUEZAg/a/2/43Scjzbf7sv060oKetlkrnR1xVEvos9za5Bg6ZobK6HD jzxAdeLBBxhlmWVc+22wZf0vsBsD8RUvky5VantPlU86nkCISrBKgrW0nr+HHb7U YPPJ6ID6y6ATev5vUrMVY/ctyT91ZrgEyir+X+7BAIVPztPwkQSj2LtQuCpxVKih wRkHT5pwe3K2dPPKSxpO5+qpfZssLUZg+3iiQA9JmkcRMCUKjABtFpQmc/f59Hgd pZwfrUqQ+C/U1ZQrubpTATYrSqfVg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrvddviedgjeefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvuffkfhggtggugfgjfgesth ektddttderudenucfhrhhomhepffgrnhhivghlucfuhhgrhhgrfhcuoegurdhssegurghn ihgvlhdrshhhrghhrghfrdhnrghmvgeqnecuggftrfgrthhtvghrnhepgfelhedtffeuhf egueelfeffjeegtddtleehvddvueeihfevgfdvgffhvedvkeetnecuvehluhhsthgvrhfu ihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepugdrshesuggrnhhivghlrdhshh grhhgrfhdrnhgrmhgv X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 21 Oct 2021 10:15:59 -0400 (EDT) Received: by tarpaulin.shahaf.local2 (Postfix, from userid 1005) id 4HZqJs151Mz50t; Thu, 21 Oct 2021 14:15:57 +0000 (UTC) Date: Thu, 21 Oct 2021 14:15:57 +0000 From: Daniel Shahaf To: Jun T Cc: zsh-workers@zsh.org Subject: Re: How about separating "_arguments --" into a new function? Message-ID: <20211021141557.GA16034@tarpaulin.shahaf.local2> References: <4B74EF96-AE73-4D40-ACDD-9999DFFDA1A8@kba.biglobe.ne.jp> <20211012160428.GD17948@tarpaulin.shahaf.local2> <20211017164917.GA30795@tarpaulin.shahaf.local2> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Seq: 49503 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: Jun T wrote on Mon, Oct 18, 2021 at 13:40:09 +0900: > > > 2021/10/18 1:49, Daniel Shahaf wrote: > > > >>>> Or just using $_args_cache_cmd is enough? > >>> > >>> If it is enough, then it should be made more discoverable. > >> > >> I guess it is enough since no one is requesting to separate _arguments. > >> How about the following? > >> > > > > Are we happy with documenting it as a first-class feature, i.e., one > > that we would be expected to continue supporting? Or would we rather > > document this as a "we may change this in the future" thing? > > I personally feel we don't need to document it (it's a kind of hidden > feature). But you said it should be more discoverable. So where should > it be documented? At the end ofEtc/completion-style-guide? Or as a > comment at the top of _arguments? Happy to leave the decision to you. Either of these options sounds good to me. > > Would prefer «print -r --» in case of backslashes, > > I think (qqq) takes care of backslashes etc., but will use print -r > if it looks safer. It's not just "looks safer"; it's a matter of correctness. The content of ${_args_cache_foo} need to be escaped once for their transit through lex.c when _foo will be read by compinit, and once against «echo»'s treatment of backslashes. Thus, «print -r --» should be used _in addition_ to ${(qqq)}, not instead of it. Cheers, Daniel