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 6938 invoked from network); 28 May 2022 00:08:12 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 28 May 2022 00:08:12 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1653696492; b=ZXh9fKJGWkjUT4CTg0tFNp0btLHp3mYOAuiXE83K0fAv3CvlGS2zeL+F8swBnQW0qGTx/Sjw0b TVNpMkq4gOD9aJUfD9dAu9j2+Dbmw3OnQFQCIYfm7OhyR7Z1dB0bdu8NgnSvE3BBtcyHGXsqTv Sa4/RR8BMFe9/19YoM4RcAY4qFQQh4D56lZEMNFze7n4KyJeKmGwbH08d9p0CX8L1z9e7Rqug1 3A2JeTwjOsraUqQxHqKiCt0k7Ryt1KrwsOs7HpYymjQmbkJcxdQaS4vHL0IhET0IlQ7uzM6ujI Z//FaYEJONSEp6i0YuW1i+nvAYfeheFxb9Wcqr0NdAYyUw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (joooj.vinc17.net) smtp.remote-ip=155.133.131.76; dmarc=none header.from=vinc17.net; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1653696492; bh=9ttBNYY7YgP9LjaFQqOq50IYG97gquOcXWDrCKG10ng=; 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; b=Y3YahT0x9+RqJxzwdFhV16Wp6ehPu653dHfyIsmdLvAbLY3swYC3VDN3CBymWzoKCawugPTG8T 2Aq/y376xRTBE848AHReQkCrGfFdwYS1W5LR9sggHKS9yfQY7dFFbJDHQ7f/ja3wKqPrCbDdAz RyTL/G/Bt0Ykp9VIAn8G/iAdLNtR+hukj8kY9MjSav2vP8xjaZEaTQDkGoCjA5gGIsae2YR4Gz 8agJn1JUYFqUj4XSjPblTeU/gsEzNPikpl9uctmFGe7iEeC9N1tdHb8yYYEViPgSMjtMPqlYPA gF9Di/2lXg48rtPPLFLi6yHlV9NiWCZD5nuBRS+ieUKgtg==; 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:To:From:Date: Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=NouxNvUWCi4hB/1NV+8wWM4eR3dwzBQU9aoUqmpA250=; b=aJ7wVmwGSBjV0h9jbq2veRAtnf +DYgbfvRLJ3C6bRltj7kA3vVWEBi+6NBQxiJySA76l4IPJepgkgbDDVdfhVPNLlvzfSHLz9WrEAte 0J8fHDsnvwjML35bqWnr5TforwCY2R3Gbc9VFkMejMciy+irur7hPwX+2By/VfjmPok122N2npblp z7B9qeArVBPCCAbIqJvOFY/9fAI1KSB0JE4Oih/yqKQkC1yCr20YlFWku6xEd8BBWimYwu+i49eF+ g3RMo6iVNf/8f6c8BU3FkVRhSfH1ibLjb/Q+d/nhE8Cr/zlTKa+fN57TNbIY4gmkM0pj3O56JYX+V c17cfd0g==; Received: from authenticated user by zero.zsh.org with local id 1nuk02-000PSm-Oq; Sat, 28 May 2022 00:08:10 +0000 Authentication-Results: zsh.org; iprev=pass (joooj.vinc17.net) smtp.remote-ip=155.133.131.76; dmarc=none header.from=vinc17.net; arc=none Received: from joooj.vinc17.net ([155.133.131.76]:35646) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1nujzH-000Om3-Mn; Sat, 28 May 2022 00:07:25 +0000 Received: from smtp-zira.vinc17.net (128.119.75.86.rev.sfr.net [86.75.119.128]) by joooj.vinc17.net (Postfix) with ESMTPSA id 62C3924F; Sat, 28 May 2022 02:07:20 +0200 (CEST) Received: by zira.vinc17.org (Postfix, from userid 1000) id CA80A28002DF; Sat, 28 May 2022 02:07:20 +0200 (CEST) Date: Sat, 28 May 2022 02:07:20 +0200 From: Vincent Lefevre To: zsh-users@zsh.org Subject: Re: prevent some lines directly coming from the history from being executed Message-ID: <20220528000720.GB1236826@zira.vinc17.org> Mail-Followup-To: zsh-users@zsh.org 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> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Mailer-Info: https://www.vinc17.net/mutt/ User-Agent: Mutt/2.2.5+24 (e1058b2a) vl-138565 (2022-05-25) X-Seq: 27819 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: On 2022-05-27 12:40:32 +0000, Daniel Shahaf wrote: > 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: > >> > 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 only > >> in the compsys documentation. > >> > >> 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. This is in Section "ZLE WIDGETS". But since this is specific to the standard widgets, shouldn't this be also at the beginning of Section "STANDARD WIDGETS"? > > Should we put some examples here of the cases you're most likely > > to use, in particular .accept-line? This would be interesting for users who wish to control the line before it is accepted. > Thanks. > > I expected there'd be an instance of «tt(.)var(widget)», and that's what > I initially grepped for. > > Vincent, what did you search the man pages for? I had searched for " \.[a-z]". I wasn't expecting quotes (it seems that most often, quotes are not used for single words). -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)