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,
T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=ham
autolearn_force=no version=3.4.4
Received: (qmail 19499 invoked from network); 26 May 2022 16:14:30 -0000
Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368)
by inbox.vuxu.org with ESMTPUTF8; 26 May 2022 16:14:30 -0000
ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1653581670;
b=rrnkOHUXzEcTpmZddHbO03vIVJViEO8hGFjbTfUaDlhGL5Z82WvJQ/ILgO8aBznIUFiw36Z9A9
MjZArkpvw9Z5huUuLoLnI0eFvsh7IyF/jw0pfaGdQDbqGA+KhNONAvrcf9xPI8pGdOYOqq7pyv
2zvrjNQC7JgqhgI8I67uCKfe262NjUmwg7TfAoUDCmHzb+D5TRaz1rPHk1IUMJIZ3pu4Zxyguk
c6gIABVEMNyhF8Cc+dpLMSOplG0KnEyj8YZq4mHscydM9wCpoCg5ffT+tCYznyUgFP8WAm0eAs
lj3QiVd/CJVqZhuaoXnmoTrE9OtqYjaBeOXtxWW51HEvrw==;
ARC-Authentication-Results: i=1; zsh.org;
iprev=pass (smtpq2.tb.ukmail.iss.as9143.net) smtp.remote-ip=212.54.57.97;
dkim=pass header.d=ntlworld.com header.s=meg.feb2017 header.a=rsa-sha256;
dmarc=pass header.from=ntlworld.com;
arc=none
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1653581670;
bh=36dGAsnJBBxo28XGBQkm3JGGZmwii5TA+W/haFgao9c=;
h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help:
List-Id:Sender:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:
References:In-Reply-To:Message-ID:To:From:Date:DKIM-Signature:
DKIM-Signature;
b=BKsC4pVAaEDj71Ir1nBtkhif6eDGrP0Ubl77I9lD5YIxd97t7UP/rmNT6eDA0vVBsRMCz+jiFn
C6Caf3ocFEqSbsK99tWNAPvJ+DzOgFVEfbDZcglBkXf9ho0nTb1RY8RcdJv672hX+DDvfWbjaJ
so/hxVGRbCvuX3adQumTfyWG62ECQZiR8+QfC4TirwyRgbyP2qUy5Gfj7SGv/eNHsP0M66gsC8
ge+qi7uKkO1PRAV49uhsw52a2eyT5UGj8vgPxTTBsenh4SSLJPOQXZ8N7i+iJWEqrf/XZ28arh
YvG1l9EyjLkxZdtjMm1qhG5kI341oYXlYOJeR/UaBVSssg==;
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:MIME-Version:Subject:References:In-Reply-To:Message-ID:To:From:
Date:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From:
Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID;
bh=G+kx7tL/dc7hBlYJuU97bOWjZQOLtoQ/8Hb85UfCLUU=; b=DsYLvCu0yZe+1+vV3sqet+dF5T
pODfnGuNM6rLRdfFYQlcwUZ6acE6QsI4xhxnRBPyVNy7JehhBfBk69LsMPbMP+8z7x+7D52Uy6XRm
1rgs7DBcJaJKplJ5o3QEYtasAXwAhkwMM+yjsJkD9UjuwGqSCJNYB3x5FJnZsGP4jZX99Jz+AN09W
jtKJ41k4V99LcXfSgg6geQWPmyEN5G6E7RLc7Y/QPxZrKSBgDfUkptY3Dyr1+fiDdWWWiyriGkG4r
59ryGL6hrnI+aIaB8TL9OzK2TJuf45BWVff4LiMSWEHzWc/CZ9ey/xcpVH17J3H5yvdHuVvSoI6+C
UKrUFkNA==;
Received: from authenticated user by zero.zsh.org with local
id 1nuG85-0003ty-H5;
Thu, 26 May 2022 16:14:29 +0000
Authentication-Results: zsh.org;
iprev=pass (smtpq2.tb.ukmail.iss.as9143.net) smtp.remote-ip=212.54.57.97;
dkim=pass header.d=ntlworld.com header.s=meg.feb2017 header.a=rsa-sha256;
dmarc=pass header.from=ntlworld.com;
arc=none
Received: from smtpq2.tb.ukmail.iss.as9143.net ([212.54.57.97]:44626)
by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256)
id 1nuG73-0003E5-1d;
Thu, 26 May 2022 16:13:26 +0000
Received: from [212.54.57.81] (helo=smtp2.tb.ukmail.iss.as9143.net)
by smtpq2.tb.ukmail.iss.as9143.net with esmtp (Exim 4.90_1)
(envelope-from
)
id 1nuG72-0001y7-KX
for zsh-users@zsh.org; Thu, 26 May 2022 18:13:24 +0200
Received: from oxbe13.tb.ukmail.iss.as9143.net ([172.25.160.144])
by smtp2.tb.ukmail.iss.as9143.net with ESMTP
id uG72nPVrYv24muG72nau18; Thu, 26 May 2022 18:13:24 +0200
X-Env-Mailfrom: p.w.stephenson@ntlworld.com
X-Env-Rcptto: zsh-users@zsh.org
X-SourceIP: 172.25.160.144
X-CNFS-Analysis: v=2.4 cv=LKR1/ba9 c=1 sm=1 tr=0 ts=628fa724 cx=a_exe
a=wuFMYA7voKp1dZz7Z+vj5Q==:117 a=WtMt9hcKi8fLy_5a:21 a=wbvTLvLwOfMA:10
a=IkcTkHD0fZMA:10 a=7H6ixmLU1AQA:10 a=YR4_K0clAAAA:8 a=T7AVDgDMqpIyi2_9uwQA:9
a=QEXdDO2ut3YA:10 a=pRtaL2KXdY0l5NrbyJCZ:22 a=waMAY2KAzxQUlx2gRwsv:22
X-Authenticated-Sender: p.w.stephenson@ntlworld.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ntlworld.com;
s=meg.feb2017; t=1653581604;
bh=36dGAsnJBBxo28XGBQkm3JGGZmwii5TA+W/haFgao9c=;
h=Date:From:To:In-Reply-To:References:Subject;
b=gGNcb2RvASx0t5GCaGzSlkEAcgRpD4Xwo/N7Bub0Lf3jLmZ/T/4H3JSSEdQx5Izl/
DkGf5Go/IH69FrZZh6iU2Y3PU8mdIArOzm6fxf9kLeUzR8jGIDNX4Q8/Ngbwr4akoC
uHOpY9wqor9RXE9+ZOYm27mZabKXbYHS2oyAtgizgPh3OxbA1BZ/o5/WGGfr0YOT9L
YZNH+hkDnVbMwVm+pw7Z9aN6FREp/VnT8K3TbyEQR4Fb0cGIOpr91Og6BsW/+UEM7K
w7n/vEAhru/K4j32iwglrPNmulfDaGrLJlkLjlnywiXnhnv+Y7xp+O9DwDpInbLukk
yIzIQ+VWnEoSA==
Date: Thu, 26 May 2022 17:13:24 +0100 (BST)
From: Peter Stephenson
To: zsh-users@zsh.org
Message-ID: <1936193667.415066.1653581604546@mail2.virginmedia.com>
In-Reply-To: <20220526155329.GF19001@tarpaulin.shahaf.local2>
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>
Subject: Re: prevent some lines directly coming from the history from being
executed
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
X-Priority: 3
Importance: Medium
X-Mailer: Open-Xchange Mailer v7.8.4-Rev72
X-Originating-IP: 147.161.167.85
X-Originating-Client: open-xchange-appsuite
X-CMAE-Envelope: MS4xfPkubLdnJ82MSH2Vt4PUI8mX7FfBS6SgxNLS+mjMCwxh9/0iDdaVIO7I6sJt+szv1WQiH6wS9EqjdWw72Ip58RM4vEqSmh24Ir1yi5EuRPa54fJxZB7W
Ih+KB/DBi8oM9qlmngiPLsnmfzwP2mQ0DT0xJQP/6RUdbA+SiYIn0FNm9Yi6ZYP6pMtV+Vnr3CWJt7cmsYx8YEMk52VRVlKA6wM52tK9Y+2RcjwKPDUTFyML
X-Seq: 27804
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 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
> > >
> > > There's the built-in ".accept-line" widget for this sort of thing, so
> > > you don't have to create a new alias.
> >
> > Is this documented?
> >
> > 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. Should we put some examples here of
the cases you're most likely to use, in particular .accept-line?
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 when
its usual name has been redefined.