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 8376 invoked from network); 27 Aug 2021 21:15:55 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 27 Aug 2021 21:15:55 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1630098955; b=iDQ9nJjRCKcaU624LMdHRMYS+c871GQcKIL7SNqXwMzUQ6EEP6qfePI17tbcZ7eH0M3GxXweEU 6P4w1cPNV26YdUv1G2ovdZHi4EYGQoJaNtKteMM7MI1XnepYW7yWbgycR4G/8OfnHOC/RkSZoN OQPP3lG5t90+3gAHYJjqS3oMkktGc5P4aeMgHEHfW1iPbKLQEizNZW22aTQMym0rVx1K+/ltPU Y/rQyaTjKvRcd2miudjNXXk8/h/GmxHUE4OiztewWfvxDNlhOMzvHRXp9vRAYVH5/h4m7vEfgD Ui97rFLbaoDvucPosCZlwT+IIpJ+2UAyMYxxEMzJH0ei2w==; 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=20161025 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=1630098955; bh=qVdlZ2VaftZuFXK5u6awAqFtSiqVBMKlyFlcVwZRM4g=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:To:Subject:Message-ID:Date:From:MIME-Version: DKIM-Signature:DKIM-Signature; b=BE43RfNg+zQ2MrRdY/wSwMmMjhVxHQCLxGY1ieizdW0wDU7OBtT63/AJ3S4JDOCNy9MXKpaywM GQw8MxhPZj2yrsTeZ8nvZqwA6hMCQRV2tz+/qncesYpKYrftEuc60/SekisuePNiRTsBfX7geM wkRu4s/Gyqivm218bgHt5cYAgJOXIwpzRGvhlOaCKLSZhkJnCliLdNtxOVKTSkhLwDqZ3b3XG/ sVgNqddKDOg4wF/pCVn2DPRpTKtnieSVs2IEw/KwU6kqUkpej87ylZjLYfjqBuZ99qGZ7aWBTc NT4BAnsvB2Jwb17997W1AZlHKmJc8qL1MqbM3ERJucmxWg==; 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:To:Subject:Message-ID: Date:From:MIME-Version:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References; bh=dDZka6epXY32l/0tqvukP6v3VXousTxnI089Y+/98KU=; b=gr35cRFPOWO8Ma2EuMN/HiRz7S T31sf0KzBTxWFkKeCVNL0+NdwoUH/zOntb5q3ZfFYcJjTdxVmIG0iJQzJ8xzQ2qPRPU+rwWpoiT9n 1inayBdQ1Dfy663qKeZ1/rtr5m8V0Az5tliaof3sUD4xh3bykpsXMAitXDILytMv/AOH+Sh+iRRHc EiyjJl0Pn6YsE0F8iZrB+RvmJ7OHSSfK4QMFabE5W+olYVK0HwyZmm6gaj9DfFTMtfq2OFtKRW/wy 70ProxxDeLTDtusmPbkCDRirK5jfVpJQRrjdiieLPtpT5lo8B6RuOIi8JKai1BpA32VjUbSEU6imr p/ENi6FA==; Received: from authenticated user by zero.zsh.org with local id 1mJjCc-0009y1-Em; Fri, 27 Aug 2021 21:15:54 +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=20161025 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-io1-f51.google.com ([209.85.166.51]:41527) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1mJjBn-0009Eu-Ol; Fri, 27 Aug 2021 21:15:04 +0000 Received: by mail-io1-f51.google.com with SMTP id j18so10262854ioj.8 for ; Fri, 27 Aug 2021 14:15:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=dDZka6epXY32l/0tqvukP6v3VXousTxnI089Y+/98KU=; b=Tb+n1zDmZTSGTjo5I2/L1/fe00YkCsojNkWMdGRAa+s/YBvZo4jayBUCaWCc1vNg4o f3oPq04EW/gveEV0RFls2T0ZE+C9kK3eYF0SahJ/f6FX5hc/XmzHxRC1SUPPeKW2LzXO 99g35LcVhiXF600Lz1JpZ4clM3HbqWLQrsnOrXvpfiVAez2CMlilJ2pSFxT+CyFus1j1 vVN03GkRr2geKE+vsMKPccQ8cPCM68p6GI8PXuQ4yXpwGZdBQzc2W6EeXrvf+h5nujDQ naVHgu6wJuUbsIIcChp5FjU2ofonpSiaBFxgKWSXAO04CPXTpnJ5HKbr+h9w8ndbeHXD TCbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=dDZka6epXY32l/0tqvukP6v3VXousTxnI089Y+/98KU=; b=Dab9iSh6wi9zG+mR99RJNcS38COVy1GzMMRE+/atWEncH4WBRIU2Bh7E84F1Im7b/P uQeB3b/Llnh1c9Vc+p9f4W6pFl7JLoUzJF8QzHkeSDB4uG8dN6tugTjB3X+0qoFlpvlX ulWVfNgin8Bb8zIgnUdTCm7UTDtvPHAbtJyMBV0/YJpbpLEA5WQrLLDGpr1n+t2oXrDR fciGDq33IPOm8AckxJLKwavHSyyn4+nWDKaZj02fGaOt1OKMm6lB/O5riKvh1DUFuRyQ ZbmYYiHLLi0TheB28nI9dhrN1hx4uXzFTVfCshCTYiRaS7LRgj+J2GvT96BSaGmaUsRT EN4Q== X-Gm-Message-State: AOAM532q8XfTIGtDoXZkVfrUJW5Yz6Kq/PnzkXLTge70NEfO+xVMRv5B SrIEgciH0ExRrjDvRozVZPGyALw1JkRw9eD1mmjBWaEul3M= X-Google-Smtp-Source: ABdhPJwM5JFoaLu04dIGUBxwG+upR1SaPmQWBmWDPOp/DsPIkPMqdJirdtY1lD0Zgx2AQ0+s7f+gGQ1q6bMsY+NEHQc= X-Received: by 2002:a5d:9284:: with SMTP id s4mr9051866iom.131.1630098901954; Fri, 27 Aug 2021 14:15:01 -0700 (PDT) MIME-Version: 1.0 From: Pier Paolo Grassi Date: Fri, 27 Aug 2021 23:14:25 +0200 Message-ID: Subject: commit to history To: Zsh-Users List Content-Type: multipart/alternative; boundary="000000000000fff21705ca90f902" X-Seq: 26983 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: --000000000000fff21705ca90f902 Content-Type: text/plain; charset="UTF-8" Hello, I have a zle widget that I use to send the current buffer to the history without executing it, and then start a new prompt (to clear the buffer and reset the current history position), it is implemented a such: commit_to_history() { print -s ${(q)${(z)BUFFER}} zle send-break } the send-break widget returns a status code 1, and since I have a precmd that displays the last status code, I was wondering if it is in some way possibile to suppress that return status. I have tried with {zle send-break} always {TRY_BLOCK_ERROR=0} but didn't help. It is a very minor annoyance, but I am curious nonetheless thanks Pier Paolo Grassi --000000000000fff21705ca90f902 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello, I have a zle widget that I use to send the current = buffer to the history without executing it, and then start a new prompt (to= clear the buffer and reset the current history position), it is implemente= d a such:

commit_to_history() {
=C2=A0 print -s ${(q)= ${(z)BUFFER}}
=C2=A0 zle send-break
}

the se= nd-break widget returns a status code 1, and since I have a precmd that dis= plays the last status code, I was wondering if it is in some way possibile= =C2=A0to suppress that return status. I have tried with {zle send-break} al= ways {TRY_BLOCK_ERROR=3D0} but didn't help. It is a very minor annoyanc= e, but I am curious nonetheless
thanks

Pier Paolo Grassi
--000000000000fff21705ca90f902--