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,FREEMAIL_FROM,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 24562 invoked from network); 29 Apr 2022 19:36:04 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 29 Apr 2022 19:36:04 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1651260964; b=C9R4GLMgi0aIDizFhgC0cmvSLLc97CKaUhP823ZvdaOm0tOAa60btrhhuTruLVKuJVHXhcohOc 0zOZLTJaoflBtb/IjAyPGoh001UdsSlco1VW6CMbSY0xlyEH0gGAe0yKnELks4HvYDUY30/zZ+ u91GkPAbyKxhIn48vfW0s79CsBSEZKnPIocPHvpvKLoeDM4UeyZYb2WVwDDd5Ienql2On5fy2f TAimHi1hqPdA8VbwBZT2sW94kWWSQDg0PDiO+nT2Vr1GS5MUDQq1N1/UaQLYbHt9/oDe27Ml8C Nu7QUnQB/1GwJ5zbwhY8KmCfFIIF0BJkxO6shk+SsLV+Kw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-io1-f51.google.com) smtp.remote-ip=209.85.166.51; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1651260964; bh=KQC95qNQElmNKHkPSgyLOCRkK+KPtBSTwK4MKaJgsT8=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:DKIM-Signature:DKIM-Signature; b=Cojs+UEJ35vN7TBC7EERNmEm8Vuu9MtrF7EcVdq19pXtQtxOMERAhOOqYdWwFPdW5pArrgUyvC MQ0EUkS9RIKTAHU3EPi0YDWlAyVmtA+ky8BgjYLn9wr2YOVxaHFNpQXx3bFcKi+uliHBkBO+G2 pJpJSOgGj9k5GrwUKB6+3RcszZrP8b/MrW3Sn03N1d+nTwHaQxCf+6AQc2PS8f2IWFNvgQHCwz SfwW0AJpgp9oPPTXuMvP6c6DEaJpD+S4b/ctk+vF4V0P7uwOUCn/djFKvfeivixoJSHGWcROYc qOGivzUKG0Jzpmw2imfAtHS12xlpRYvhNZyKKMyq0pcNQA==; 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-Type:Cc:To:Subject:Message-ID :Date:From:In-Reply-To:References:MIME-Version:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=e7fNH4WGDNPX0PIb20LY0nyx4OterzQdenMBUUCfm6w=; b=IZySAeJRD6fi2vhFV6aVUskhLZ gTFeOAYXD5hWH5WCHUtkqDzvFKeGc0DbqCi2la530z3HgAIT7xee0pqM3hG3bsdVK/LWVHSu6vA8B a+HgUGjusQ3lbd/WjpVC8CITjfxe09y8u7/Usd3hWqvbeIKD3h57GhoWJnNSOsQsi7K7OEG22RAhG GXZ1RlrYosqs2OiruHx1xJcPLqmB2xXobNgzbiXc+VtCK4odgG8e9kyeDJJWkAGBGjK14ui2p5HcU 1mEOtkMYnm7PVhBsEayTkaorvaCfMqAiSqJcQ8EKNLXuCyFV9sPYDZ7ywmdDXHhXiygX0u7vsu0yu yGIAPqWA==; Received: from authenticated user by zero.zsh.org with local id 1nkWPL-000KtL-BH; Fri, 29 Apr 2022 19:36:03 +0000 Authentication-Results: zsh.org; iprev=pass (mail-io1-f51.google.com) smtp.remote-ip=209.85.166.51; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-io1-f51.google.com ([209.85.166.51]:46611) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1nkWOm-000KEX-GW; Fri, 29 Apr 2022 19:35:29 +0000 Received: by mail-io1-f51.google.com with SMTP id g21so10755251iom.13 for ; Fri, 29 Apr 2022 12:35:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=e7fNH4WGDNPX0PIb20LY0nyx4OterzQdenMBUUCfm6w=; b=oT9jRwIra4djynlbCVuXUDrh1A5XC/O3Noub/IZNsZ/SGumsxkKlahIkVvyR9F1pdi QvJusq4AOfJFFFielc3IcUqKxE1BIZMmfanPQCQubLj4yfMOu4AlP8AyRmfSKSAtMFvp 8WEKGOoluqemyKRvsbp+FC3DnPO0qZT7Uf5Zstq7VHfG7rciFFMEIYiN9I//ko6g4TnO Bs8KFNe/6QQ/rY2tiJe3lYytWE4FiZnvtjVQN6IHgbpq3TTrwwF9Wo+PPXKRqOQe4CdB BVm2EdkJvZnXXgaqVRDn6QKD4m/EzyifF4SA+cueskwOcJLntgRuussL5uPZg8TUYw34 dMng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=e7fNH4WGDNPX0PIb20LY0nyx4OterzQdenMBUUCfm6w=; b=nU87wZNA4P2/s+fpN3rlUEdKhFvNc23GpOEwZkD2k5BODAiQuMDgmk/VM+2RwDpCAp 1yY58GzRmLCQucngVuYJQaMi1X/miYToJbiprUVTpNcJRQTkmBgbAqvhD8XkKnUYva5n 9rQIgaj6c4gLGR9juI5U4sjRN0vY2S9vx7Td1zV6RL35qteEC0Pvgrvda04P58i1CB1s 1Gfth8XB4RNsPx40IcUheydgu6RAceVTycw9lW34MXcHFTaz8vthkK9UxP1M4YB8bHBr ia5mkA9miQWjc4fnzEO2Wbhy7volSCIIHI+dWXpuEaxDwhlXOfWRxp118d8fym/0dxmI j/mw== X-Gm-Message-State: AOAM5333aZy2+LIEyVtPRoVyH+36PnsAqlkozbKAdgRtNsSinvMViFdJ Q+E1BurpcDAgFfvLJmcu03T/EOfS51rS6GSat1o= X-Google-Smtp-Source: ABdhPJxSTSsb8jJivjDZe6zx8JYTn0+WvkCE6fn8buitD4CRett3xJGgmkA07lj/Ao5WGwAtJv5aivTTCfzeGb/GdRw= X-Received: by 2002:a05:6638:d4a:b0:32a:7f4c:22e2 with SMTP id d10-20020a0566380d4a00b0032a7f4c22e2mr343332jak.243.1651260927014; Fri, 29 Apr 2022 12:35:27 -0700 (PDT) MIME-Version: 1.0 References: <747863791.139295.1651238910118@mail2.virginmedia.com> <1558792630.141539.1651242336328@mail2.virginmedia.com> In-Reply-To: From: Pier Paolo Grassi Date: Fri, 29 Apr 2022 21:34:50 +0200 Message-ID: Subject: Re: prepopulate BUFFER To: Bart Schaefer Cc: Mikael Magnusson , Peter Stephenson , Zsh-Users List Content-Type: multipart/alternative; boundary="000000000000fc7ce905ddd024b9" X-Seq: 27714 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: --000000000000fc7ce905ddd024b9 Content-Type: text/plain; charset="UTF-8" push-line (^Q ESC-Q ESC-q) (unbound) (unbound) Push the current buffer onto the buffer stack and clear the buffer. Next time the editor starts up, the buffer will be popped off the top of the buffer stack and loaded into the editing buffer. the difference is in the fact that the stack will return a pushed line just once, not for each subsequent prompt, and it will not save cursor position. Pier Paolo Grassi Il giorno ven 29 apr 2022 alle ore 18:21 Bart Schaefer < schaefer@brasslantern.com> ha scritto: > On Fri, Apr 29, 2022 at 8:57 AM Pier Paolo Grassi > wrote: > > > > This use case is a bit different, since I return always to the original > (incomplete) version of the command line, and I have only to complete it > instead of deleting what I don't need anymore and fill the blanks > > How does that differ from push-line ? > --000000000000fc7ce905ddd024b9 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
push-line (^Q ESC-Q ESC-q) (unbound) (unbound)
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Push the current buffer onto the = buffer stack and clear the buffer.=C2=A0 Next time =C2=A0the
=C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 editor =C2=A0starts =C2=A0up, =C2=A0= the =C2=A0buffer will be popped off the top of the buffer stack and
=C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 loaded into the editing buffe= r.

the difference is in the fact that the stack will ret= urn a pushed line just once, not for each=C2=A0subsequent prompt, and it wi= ll not save cursor position.

Pier Paolo Gras= si


Il giorno ven 29 apr 20= 22 alle ore 18:21 Bart Schaefer <schaefer@brasslantern.com> ha scritto:
On Fri, Apr 29, 2022 at 8:57 AM Pier Pa= olo Grassi <pi= erpaolog@gmail.com> wrote:
>
> This use case is a bit different, since I return always to the origina= l (incomplete) version of the command line, and I have only to complete it = instead of deleting what I don't need anymore and fill the blanks

How does that differ from push-line ?
--000000000000fc7ce905ddd024b9--