From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Shane Mulligan Newsgroups: gmane.emacs.bugs Subject: bug#48500: 28.0.50; url-retrieve-synchronously exits abnormally due to pending keyboard input from terminal Date: Thu, 20 May 2021 01:12:10 +1200 Message-ID: References: <87pmxo4kiu.wl-mullikine@gmail.com> <8335ukrsj3.fsf@gnu.org> <83sg2kq8yc.fsf@gnu.org> <835yzfq6lm.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000b4dab405c2ae93a2" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33795"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 48500@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed May 19 15:45:28 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ljMVs-0008bu-60 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 19 May 2021 15:45:28 +0200 Original-Received: from localhost ([::1]:38190 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ljMVr-00059n-2O for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 19 May 2021 09:45:27 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37820) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ljM0U-0000ho-SO for bug-gnu-emacs@gnu.org; Wed, 19 May 2021 09:13:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46848) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ljM0U-0004UD-9O for bug-gnu-emacs@gnu.org; Wed, 19 May 2021 09:13:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ljM0U-0000Yo-4d for bug-gnu-emacs@gnu.org; Wed, 19 May 2021 09:13:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Shane Mulligan Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 19 May 2021 13:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48500 X-GNU-PR-Package: emacs Original-Received: via spool by 48500-submit@debbugs.gnu.org id=B48500.16214299482110 (code B ref 48500); Wed, 19 May 2021 13:13:02 +0000 Original-Received: (at 48500) by debbugs.gnu.org; 19 May 2021 13:12:28 +0000 Original-Received: from localhost ([127.0.0.1]:58394 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ljLzw-0000Xx-Dr for submit@debbugs.gnu.org; Wed, 19 May 2021 09:12:28 -0400 Original-Received: from mail-yb1-f181.google.com ([209.85.219.181]:40867) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ljLzv-0000Xj-2L for 48500@debbugs.gnu.org; Wed, 19 May 2021 09:12:27 -0400 Original-Received: by mail-yb1-f181.google.com with SMTP id 191so12086456ybn.7 for <48500@debbugs.gnu.org>; Wed, 19 May 2021 06:12:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=EAWAa5rZ6URwOP4Ubpewm5Eb/I6xH7gbIJkKs+74kq8=; b=sRf67D+fMNE82oVs1oyxnHnWG41++ZX/2lFr1uSKjaM4LwIjihE9jVhYx09TNyjMvB 4rXzSr0xumn37NbDCtNapNTo0sU+iKShI1e5brb1Z+JGi+jKI6Jv+h67MVv0SCIZRsaq UkEDGz0kZ/bC6apFDL8Vdc2jjV0yMpVWM18jaXBysTJ4/T9QVM6kqeFtCvzaK0k0n+0A vMsoxsAjFcQnAcq8sfzXfTRJFpaQ2t/j/ZYx5qNSymZaP3RgbCBHKBZo78qEAImY8loR NPAZcfgMFYb1KVIAgD2gGUSNE+PHB6DL6Knaz376Gf9B0PEyumXjAEvNdswvmmgShl3O /JTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=EAWAa5rZ6URwOP4Ubpewm5Eb/I6xH7gbIJkKs+74kq8=; b=gWjF2GGA5hGSCaeEAx2/MQveN37xdFa47OCl2Yc+zP/RNExiGEAeup1S6iMqOVOqZc 3XfXgz0/E2gYGxXrJTL2oy7+iAdMZ5CActZf+v5kFmhba4u6uVOPSowm41NWhxY0jE3S tiRhxiBLSYHovZnZKzAHM/maJ55kJ0h8wftGybujjRxbNpagYTXrQ0J2SMN2PC7HB6Yq l2glM1X54LM+ycBA4XnTVx90ihwmMQRsBLSFhz84ow4eEp8/4fmPKdwUQkFVXDKKpVxV D4u3Sp4ul+rczyS/GI3MC6b0+xTyq4elU0xcJ8g1Bp/5DXoWLostFzW6A+5qrU62vOcq xmcg== X-Gm-Message-State: AOAM531F2/3WljhZ7ZrXx/2F+q5pNhJ5+kEVVQVGsHBJEaIxIkEdyN4k XyT9euvsQ4UokR+px2OhtsLAjYlH9Dwik98EMMjIX1YGvw== X-Google-Smtp-Source: ABdhPJwJpErhmPjP9aQhPBB2JAb3hwtZznlqZD8SbnSwj02vT1Ek1NqQkcU01p4LEi7bLCuNWyMlP3zHsAbBaNx24qg= X-Received: by 2002:a25:d8ca:: with SMTP id p193mr16347592ybg.208.1621429941753; Wed, 19 May 2021 06:12:21 -0700 (PDT) In-Reply-To: <835yzfq6lm.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:206886 Archived-At: --000000000000b4dab405c2ae93a2 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I will do some further studies to see if I can find exactly how quit is being generated. Shane Mulligan How to contact me: =F0=9F=87=A6=F0=9F=87=BA 00 61 421 641 250 =F0=9F=87=B3=F0=9F=87=BF 00 64 21 1462 759 <+64-21-1462-759> mullikine@gmail.com On Wed, May 19, 2021 at 11:57 PM Eli Zaretskii wrote: > > From: Shane Mulligan > > Date: Wed, 19 May 2021 18:48:09 +1200 > > > > I may have resolved this issue with the following patch to > `url-retrieve-synchronously`. > > What this achieves is to trigger a `quit` in a controlled environment > rather than allowing it to occur when > > `accept-process-output` is run. > > It's not always wanted to trigger a quit when `(input-pending-p)` is > `t`. But I noticed from placing > > `while-no-input` around `accept-process-output` to avoid the `quit` tha= t > `url-retrieve-synchronously` would > > then hang but with the controlled `quit` happening beforehand, > `accept-process-output` no longer needs > > `while-no-input` around it. The end result is buttery smooth helm with > no accidental `quit` from typing too > > fast. I think this may have resulted in GUI helm faster too. > > Thanks, but what causes a quit in the first place? > --000000000000b4dab405c2ae93a2 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I will do some further studies to see if I can find exactl= y how quit is being generated.

Shane Mulligan

=
How to contact me:
3D""
=F0=9F=87=A6=F0=9F=87=BA00 61 421 641 250
=F0=9F= =87=B3=F0=9F=87=BF00 6= 4 21 1462 759
mullikine@gmail.com



On Wed, May 19, 2021 at 11:57= PM Eli Zaretskii <eliz@gnu.org> = wrote:
> From= : Shane Mulligan <mullikine@gmail.com>
> Date: Wed, 19 May 2021 18:48:09 +1200
>
> I may have resolved this issue with the following patch to `url-retrie= ve-synchronously`.
> What this achieves is to trigger a `quit` in a controlled environment = rather than allowing it to occur when
> `accept-process-output` is run.
> It's not always wanted to trigger a quit when `(input-pending-p)` = is `t`. But I noticed from placing
> `while-no-input` around `accept-process-output` to avoid the `quit` th= at `url-retrieve-synchronously` would
> then hang but with the controlled `quit` happening beforehand, `accept= -process-output` no longer needs
> `while-no-input` around it. The end result is buttery smooth helm with= no accidental `quit` from typing too
> fast. I think this may have resulted in GUI helm faster too.

Thanks, but what causes a quit in the first place?
--000000000000b4dab405c2ae93a2--