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.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 12090 invoked from network); 2 Jun 2022 10:03:31 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 2 Jun 2022 10:03:31 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1654164212; b=PMhY+aqFyuC1RLJStW8+E6VeBORywnt3njW1uMsmgLtCBY9+KGdoKJVxpQeD37laQ/68GM/GLD K7JIPwpKDG+Cwx7dpbSdTErpnxWecxM0NLMLEDmzHTwb0YNHVhw7Wic64OyhxmBkC/y4hs1IeR N82Qk6WLvgZqH76FPlevnPwVZP5h3nk06ydxBHYKCJIQQoKa+32JQj7we+LT9cQCerxSQEkZAz Sky1x/DHXBDdZeeNMmWnbrKskn/gtFci07PIxOuAfaZKFH4bTiqt29WXYskLOxV8HU96v+yrE6 QXaTbTg+Po5UWE5ybX/7R0z8h5+zhZG3AZylpE3EOPr6Dg==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (wout2-smtp.messagingengine.com) smtp.remote-ip=64.147.123.25; dkim=pass header.d=daniel.shahaf.name header.s=fm3 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=1654164212; bh=vRD8wJcCQ/s5o+Ws7KdeG2BNIM97UYwfYaQSU3Pa0Yc=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:DKIM-Signature:DKIM-Signature:DKIM-Signature; b=G2l8EsYCC0Nl5v6zsfpWEVWjZmvT1q2RQyfi6CXHEpCHzRj5HtLM6/aRpevh3OrbdbUve8a0h3 yqNEumhex5yP36EqjED8JFjtNJln8qVYI7cgrJm5mY5sfqpAVsNaKjh4oi3Ru67/4gngYvCzWi XmZMqJdqrhytwNuxOe3bYqiFv/P2M/jfr6GIX99btGiQKSC+ukpcpKIys3rkU9BuCydv1vomBu 2TwNJjdPStmz8hDWrwjFuglCBm4/pCy72VcF/+R41E2BF4GSqbCvzUXoFVEO/k6pgXP/+Ar3D9 Tt1gj46n8segkawA2ETbKizlKwJ9MyEvm+VD1XeZcP+ugg==; 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-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=XHCmo6vL5DitrZgGj9YW5eTW79E//lr5cXmb++5cT1A=; b=axKeX7jmwT85ez0bgpbbSQB64+ yd7TxPRYtV1X2k3obn66ZLNkK00rn88rHhW1i0NZbuEr6v9gvLde0Troed9BhoXbxvggjnBvCvKBC JMyiGRX/GhnWJNlVVTPLSv+1iJESUnL7clUt2pFywnzjopNKHvSbB2XwqjQmCsjwr/C8hn3q4iOKR /6Cfs9lr8ZhQFv/yX9gXbeXEglzzgJPjglFqDgnbSJvsCJWT2ZS7nr4hRtzOT0gYBmBcmoaiETE9K rSppS6BrqkJpZ46DFzLXe7PjyOxuRVfRLy7KmMXpWQeBoknV+r5N3TQfWTtJd5Xhc3NSD2qi4lm9H HaoOKvrg==; Received: from authenticated user by zero.zsh.org with local id 1nwhfv-000AhZ-La; Thu, 02 Jun 2022 10:03:31 +0000 Authentication-Results: zsh.org; iprev=pass (wout2-smtp.messagingengine.com) smtp.remote-ip=64.147.123.25; dkim=pass header.d=daniel.shahaf.name header.s=fm3 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 wout2-smtp.messagingengine.com ([64.147.123.25]:59039) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1nwhc9-0008nZ-68; Thu, 02 Jun 2022 09:59:38 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 83ABA3200987; Thu, 2 Jun 2022 05:59:35 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Thu, 02 Jun 2022 05:59:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=cc:cc:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm3; t=1654163975; x= 1654250375; bh=XHCmo6vL5DitrZgGj9YW5eTW79E//lr5cXmb++5cT1A=; b=s ABdR/bFFoAhjiSCAI+V+AEUSp5skcX6r/Ge0E8aHPoa1oOq9XYJ1P2TiOZnnMll6 qFaZ8FJ9WIUSN2vzzQ8gKmCEu7y7VzuP/Ha9AuXfyq8SZRwvJF1GHLwPk6zDqvCl OBZMU8IzSUKIOmYhGhRVZPaPfojv9H3VOvJIQeV1W6lGb54i416jrYgPYNT3xoS6 8IriGf/QttV6aEU+osfiN64mzFFvnzbwaKU+SHKQoRlrn2vOsGOlvyRHZmL43IQ5 8yGP/LcsqrWTCMiSHq88RtLmjznTl1f49RsFrOyAL5zJ24DhvGHDHgv0Rkzl8Gyx Lv8QTxBx5Cm4JnPn1ApNw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1654163975; x=1654250375; bh=XHCmo6vL5DitrZgGj9YW5eTW79E/ /lr5cXmb++5cT1A=; b=dyQLaeCM41gTwFjF224lWWnjWbDgB00pJxbaDpipLsZc ND7RCTDBhcbusek+WnFWsaa4cfRgpvHZ9BBCWTF2B7tS9W9BYulsl8kozPyH9iqa 3h1X/9WlWAG3YVSUtAn75KDYusLf6UbZA0Y9qfR2LC+yVQ/32zzIAFeHa1Wqlif4 wm4mcuJVB9nfhediRX8r8Zo1QA874q5W23eEx1bmmbldG8qeb14/bNu3ghf0rs+V RBjFco5JAuaHl6XN/V9fgF1SpbiCA+lH8IxW9eSTBUncRK+gUbmiLJJU6IOeqiA9 c1eYfR5u5JzxBnbhQIZLNRcdGsH0fUC/GbOevWiIlQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrledvgddvtdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvvefukfhfgggtuggjfgesthdttddttdervdenucfhrhhomhepffgrnhhi vghlucfuhhgrhhgrfhcuoegurdhssegurghnihgvlhdrshhhrghhrghfrdhnrghmvgeqne cuggftrfgrthhtvghrnhepgeffvefgvdfffeefleduhfejheektdejvdeileeutdekfeeg hfelkeekjedtgeetnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilh hfrhhomhepugdrshesuggrnhhivghlrdhshhgrhhgrfhdrnhgrmhgv X-ME-Proxy: Feedback-ID: i425e4195:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 2 Jun 2022 05:59:34 -0400 (EDT) Received: by tarpaulin.shahaf.local2 (Postfix, from userid 1000) id 4LDM1d0Dw0z24p; Thu, 2 Jun 2022 09:59:33 +0000 (UTC) Date: Thu, 2 Jun 2022 09:59:32 +0000 From: Daniel Shahaf To: Peter Stephenson Cc: Zsh Users Subject: Re: prevent some lines directly coming from the history from being executed Message-ID: <20220602095932.GC28173@tarpaulin.shahaf.local2> References: <20220526143602.GA1236826@zira.vinc17.org> <20220526155329.GF19001@tarpaulin.shahaf.local2> <1936193667.415066.1653581604546@mail2.virginmedia.com> <20220528000720.GB1236826@zira.vinc17.org> <20220528100639.GB29128@tarpaulin.shahaf.local2> <41f13468-b9b9-4b64-845a-aadbcc3b8472@www.fastmail.com> <1388910908.482590.1653901645100@mail2.virginmedia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1388910908.482590.1653901645100@mail2.virginmedia.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-Seq: 27831 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: Peter Stephenson wrote on Mon, May 30, 2022 at 10:07:25 +0100: > so maybe a self-insert example is good enough. > Alternatively, a subsequent sentence like "In a similar way, > to perform a final action on all lines returned from Zle, the accept-line > widget can be rebound to a function that performs an action on the current > line, then calls the .accept-line widget to return the line to the shell." I'll err on the side of including such an example in v3. It'll still use the sh function definition syntax; extending workers/50312 to the docs is beyond the scope of this thread. > I won't complicate the discussion on the currently proposed text further > (don't see any fundamental problems), but I wonder if it would be useful to > give an example of accept-line being adapted? There is a problem of making > the documentation too verbose (if technology allowed, it would be useful > to have a two level manual, the fundamentals and a running commentary, > but that's a pipedream), I think it's achievable. For instance, The TeXbook annotates some paragraphs as "dangerous bends" (and other paragraphs as "double dangerous bends") using icons on the the first line of the paragraph. Those icons designate a paragraph as more advanced material that one may want to skip on first reading. For starters, I'll add em(foo) subheadings in v3, as already done in _arguments. Cheers, Daniel