From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1039 invoked by alias); 2 Mar 2017 12:57:12 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 40701 Received: (qmail 28665 invoked from network); 2 Mar 2017 12:57:12 -0000 X-Qmail-Scanner-Diagnostics: from mail-qk0-f177.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(209.85.220.177):SA:0(0.5/5.0):. Processed in 2.182534 secs); 02 Mar 2017 12:57:12 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=0.5 required=5.0 tests=DATE_IN_PAST_24_48, FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_PASS,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.1 X-Envelope-From: ericdfreese@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.220.177 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=VCGmGU0g3Ys0SBGBCrLeLuTPB0aKuNyGFU/3xDtfPd4=; b=Lm88o2IGD/NU2mYxGb3Vahfp8EkS8KSNoCerFt+agyJvcsXP+XUdLxwJg56TV5A8XC OCQ1GggvaSHlEOX7tYK4rqS+79fuihuzrHDWwRaFhIziINTXXnHZ5gqiJiblWfwRwqX4 pCxZtIFDcsOPkHxNPvWOnV4nisO7eRRomeYt59T2ZAArRQWdUSBjvah3klz++stNnpp4 zojW0PC9fL3RWeWE8pa4WV5NdWXF7TbY9RJ6fpoCbpyTNQl+r4dqHSAm9oIl5SEdsRPB OOhxhUOtOYI8vGudPnIBT6lbimCbvgQk+AM7N4LUYtMQFLyyeMVtuOftzpxUMQ1LUGgr Rw2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=VCGmGU0g3Ys0SBGBCrLeLuTPB0aKuNyGFU/3xDtfPd4=; b=NTtMSXo/+mZAZp5VEcL9j2UZN7Oco3Xakj8QBL2tTw6Fk93o4YELCk0vzLCUXyC16K frQ6YOti9yJzbeNsiRDWcmkbZbcnUC7YaDdzleHdc+EOALgviuE3wzg0lsNfDPwV1x9b praz0daEewNLnf8buVjxtiY5CQGf+Ni3Z19wtoBw9QGzRLfCoSAJmfZRZ1WwEaSagGiI Gp5e6Y5irpqaf2bEHFHLugTGOnhTi134aO5dSuLmCULgUpsKzL9TFfDsLT/3huH+QydT quCHuzxWTYoH23RC4hBywJvRlb+Mv+hrvfXcwSpsY20DxYh7X+4CPyYMf9IglCIdBQBL sQSA== X-Gm-Message-State: AMke39m85qM8/hWOHaUGFNTiGpAJBRDocrN2DjvkBXCsFJLOcZ6LFJZTRf1pvHNs4bS/z+mfIMjibLJ17GR/BA== X-Received: by 10.200.52.161 with SMTP id w30mr7368128qtb.69.1488340312543; Tue, 28 Feb 2017 19:51:52 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <170228185233.ZM9032@torch.brasslantern.com> References: <20170301012534.67145-1-ericdfreese@gmail.com> <170228185233.ZM9032@torch.brasslantern.com> From: Eric Freese Date: Tue, 28 Feb 2017 20:51:32 -0700 Message-ID: Subject: Re: [PATCH] Include number of chars in zle unget mechanism in $PENDING calculation To: Bart Schaefer , zsh-workers@zsh.org Content-Type: multipart/alternative; boundary=001a11375426a255e10549a33bd9 --001a11375426a255e10549a33bd9 Content-Type: text/plain; charset=UTF-8 Ok. How about a separate parameter that just returns kungetct? My use case is disabling zsh-autosuggestions (https://github.com/zsh- users/zsh-autosuggestions) while bracketed-paste-magic and other widgets using zle -U are running. Ideally, I could just avoid fetching a suggestion until $PENDING and this new param are zero. On Tue, Feb 28, 2017 at 7:52 PM Bart Schaefer wrote: > > Yeah, this was discussed (with identical patch) back in May 2016 in > workers/38522. It turned out not to have the desired effect so we > didn't do anything with it. > > The question is whether it's useful to be able to tell that TTY read > will not block, separately from whether ZLE has available input. > There are cases where one might be invoking a tty read in the middle > of a widget, before any of the "zle -U" pushback would be consumed. > > We'd also have to change the doc that says "where the shell is not able > to get this information, this parameter will always have a value of zero." --001a11375426a255e10549a33bd9--