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=-1.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 12295 invoked from network); 27 May 2022 12:42:07 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 27 May 2022 12:42:07 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1653655327; b=eAqNIYhT+Y4i/Qs3h0Eojmf/RvHberXMJtwL+EI02PZPY9t3QpR1H70Dstp3de1Nyv/8U3OpDr Q/jmsNCHGzYgDXzOLJsKCbRZQVnAbqV1+9TKxL5ZmpcIIk/coJDLWobUb5SaF9ifhlaI3xOBTW qeJWX4BJwQzCuyHL9JE4PpZdGOgENit07FXX3iP+8JlOKKvInLlmZrPAv6dgljXe83n3U8GDGF ydDgsNTnRJ3ZYaCSf/bUF68HtWCiGcrA/FwsLfv8N/giOnAGOAIUtYycyKRWq/530U6RUhHyqK EzFWlGwWYfYN0i4Au9/wfV4xZH4sNDJ5O5oXfTXG5ecB3g==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (out1-smtp.messagingengine.com) smtp.remote-ip=66.111.4.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=1653655327; bh=bL++uy+efDPXQ00swx2+5iNbXv7Oba/R81WyE+dVIzs=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:Subject:To:From:Date: References:In-Reply-To:Message-ID:MIME-Version:DKIM-Signature: DKIM-Signature:DKIM-Signature; b=L0dG6k5aOhLlgSaC6gjojB/Y3IDWGqMUH5wyG70B7cjnJKg8ube13rzJ6elLVHUTxKLhMLn5iJ uer1AEUp96MsjFFeP20a6B7wGIANgY7bAn4X2J72Ns9DgwVbF7JFSUeImfwP3VXg1+GEWGHzxn K/orF5kW/YT4IQjqTfBtmd/29NdCcVl6Rrj6nyJtFseFBcvY1oYmU02otJ7QM3hNxTp/yEazuB lbE0TxU2mUTSRtH4zklxHu8nWXIn8vlJh03Rg1gh/vXlIewijUW8zx6H5FtQYhwsBBeGOgFM8U 7WydSbzJrAaWlT4+zqm3/jzCuHccelU6W5JzN2vKpkKy0A==; 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:Content-Transfer-Encoding: Content-Type:Subject:To:From:Date:References:In-Reply-To:Message-Id: Mime-Version:Reply-To:Cc:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=UqXjMTP672xLPEVGMbPtTihZXsFhLwu7dCIEKHLXu60=; b=kdXlDJkx2HJYw+4fmJIw/Y3B5Y WmZ4DQDV9HUg5/rN3ZQhq8VglQyQTv5mDj0yN6suXSqKsU4vsakvoxCasGwBOeRNjb1M22KykY118 ubTLUyKLYgHinxr7vdj/9QJE2Bd0gHIR6ICzC+12bKF+JC1QHBjuahuhFKyzvQiT18WX3w37SMezM v/XJ/6Jiw4wmiRFKTQucWrqCxpB3PSknEEoOVQwHdHBGOaQCbSu9VQgLNRrczTnedHaAe8U09StZy m0SBl0mD2w/siYyihnGxX3OgI+tLqM7NCfHWxxyL0kHqEHkaXs+16J0Z6FBKJ8Xc6Mkv1DbTDl/Ck egBFDLXw==; Received: from authenticated user by zero.zsh.org with local id 1nuZI5-000ML5-RJ; Fri, 27 May 2022 12:42:05 +0000 Authentication-Results: zsh.org; iprev=pass (out1-smtp.messagingengine.com) smtp.remote-ip=66.111.4.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 out1-smtp.messagingengine.com ([66.111.4.25]:56257) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1nuZGw-000LZ3-W1; Fri, 27 May 2022 12:40:57 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 4B0875C0125; Fri, 27 May 2022 08:40:53 -0400 (EDT) Received: from imap46 ([10.202.2.96]) by compute2.internal (MEProxy); Fri, 27 May 2022 08:40:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=cc:content-transfer-encoding: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=1653655253; x=1653741653; bh=UqXjMTP672xLPEVGMbPtTihZX sFhLwu7dCIEKHLXu60=; b=kIgBg6JKiqw5HTeDozKblm8lt3nqQfzsjUuyTeo5o uCM2H0qllbwFVjfufur5hp6nGEiEw7V51pqUXr5BOD6HzaRjujg0kAKlqHevyCY+ PHjhk01N4672/W9iE8wLpPenr9e2mtYavy5eJM1UQTRY7YoiINNHDXqebXELj3kg MzE9CAOzClFR/zcASUeI5ptkTnsfT/soFR6lravsCozET3jiJ/GptFkwzc5ksmVh phO5I6ZncQ5K4i5gH5tcJGknqxh308xwDjMD3zUYhzBAgWRkkU9qZvji9YzxPGGC 7SE3LluJRtM9hSqLz8h5/CVzVlzRQ4T19xbSI+91qI0wA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding: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=1653655253; x=1653741653; bh=U qXjMTP672xLPEVGMbPtTihZXsFhLwu7dCIEKHLXu60=; b=KMHW1AsfhjhiqdteD 9j5PUb+l5r8lCNQBkw9LvY8jfgyKgNLZcIyo+mgJyVcAejO6XrZfdZWNED14mczp JzuTxPH9Q6lmlVKh3rfkouYyt2P9bYOgolLKCZF6wUPZReccMfOFB8Dsomlh9oNJ jlFr+7+9H6rwGw9w5ZUI2KBMvXm06H2wSzxks3jflzvcv74DDvjePaRZTieD3dBG Yrgdv4yk4io5Sr7l0erY+B2Y5FiEx62Hk5Z08LiuhlFCQM7mdAN9kluDQW/eLGEs spf91fqbU95y8qmzOixBJfrVcsj58lQJLWkuhF5vzd3dT+5ID8VL00LtTu+5WV+F kntOQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrjeelgdehhecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfgjfhffhffvufgtgfesthhqredtreerjeenucfhrhhomhepfdffrghn ihgvlhcuufhhrghhrghffdcuoegurdhssegurghnihgvlhdrshhhrghhrghfrdhnrghmvg eqnecuggftrfgrthhtvghrnhepfefhkeefveeileelheeiffdtkedujeelvdfhtdejtdeg gedvuefffeelhefhvdfgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrg hilhhfrhhomhepugdrshesuggrnhhivghlrdhshhgrhhgrfhdrnhgrmhgv X-ME-Proxy: Feedback-ID: i425e4195:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 034BA2A2006C; Fri, 27 May 2022 08:40:52 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.7.0-alpha0-591-gfe6c3a2700-fm-20220427.001-gfe6c3a27 Mime-Version: 1.0 Message-Id: In-Reply-To: <1936193667.415066.1653581604546@mail2.virginmedia.com> References: <20220524154738.GA35284@cventin.lip.ens-lyon.fr> <20220525025403.GA97860@zira.vinc17.org> <20220525084920.GB97860@zira.vinc17.org> <20220526143602.GA1236826@zira.vinc17.org> <20220526155329.GF19001@tarpaulin.shahaf.local2> <1936193667.415066.1653581604546@mail2.virginmedia.com> Date: Fri, 27 May 2022 12:40:32 +0000 From: "Daniel Shahaf" To: zsh-users@zsh.org, "Vincent Lefevre" Subject: Re: prevent some lines directly coming from the history from being executed Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Seq: 27814 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 Thu, 26 May 2022 16:13 +00:00: >> On 26 May 2022 at 16:53 Daniel Shahaf wrote: >> Vincent Lefevre wrote on Thu, May 26, 2022 at 16:36:02 +0200: >> > On 2022-05-25 18:25:40 -0700, Bart Schaefer wrote: >> > > On Wed, May 25, 2022 at 1:49 AM Vincent Lefevre wrote: >> > > > zle -A accept-line real-accept-line >> > >=20 >> > > There's the built-in ".accept-line" widget for this sort of thing= , so >> > > you don't have to create a new alias. >> >=20 >> > Is this documented? >> >=20 >> > When searching the man pages, I could find only one place where >> > such a built-in is used: in the example for recursive-edit. >>... >> but, yes, it should be mentioned in the zle documentation too, not on= ly >> in the compsys documentation. >>=20 >> Anyone volunteering to write the patch? > > zle.yo contains the following. We don't have the actual names for > all the widgets, which makes them hard to search for, but the actual > rule is very simple once you know it. So while this isn't ideal I'm > not sure what we'd want to change. Should we put some examples here of > the cases you're most likely to use, in particular .accept-line? Thanks. I expected there'd be an instance of =C2=ABtt(.)var(widget)=C2=BB, and t= hat's what I initially grepped for. Vincent, what did you search the man pages for? Cheers, Daniel > pws > > The standard widgets built into ZLE are listed in > ifzman(the section `Standard Widgets' below)\ > ifnzman(noderef(Standard Widgets)). > Other built-in widgets can be defined by other modules (see > ifzman(zmanref(zshmodules))\ > ifnzman(noderef(Zsh Modules))\ > ). Each built-in widget has two names: its normal canonical name, and= the > same name preceded by a `tt(.)'. The `tt(.)' name is special: it can'= t be > rebound to a different widget. This makes the widget available even w= hen > its usual name has been redefined.