From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: JD Smith Newsgroups: gmane.emacs.devel Subject: accept-process-output throws Date: Tue, 23 Nov 2021 15:36:38 -0500 Message-ID: <29A79E00-3117-4F18-BB4F-3ADD2DBB0806@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.80.0.2.43\)) Content-Type: multipart/alternative; boundary="Apple-Mail=_D666CB96-A6B9-4446-9317-5E9443415A08" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26863"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Nov 23 21:37:38 2021 Return-path: Envelope-to: ged-emacs-devel@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 1mpcXp-0006oC-IW for ged-emacs-devel@m.gmane-mx.org; Tue, 23 Nov 2021 21:37:37 +0100 Original-Received: from localhost ([::1]:51088 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mpcXo-000384-27 for ged-emacs-devel@m.gmane-mx.org; Tue, 23 Nov 2021 15:37:36 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:35254) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mpcWw-0002RZ-Tv for emacs-devel@gnu.org; Tue, 23 Nov 2021 15:36:42 -0500 Original-Received: from [2607:f8b0:4864:20::f32] (port=34599 helo=mail-qv1-xf32.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mpcWv-0003Lb-6i for emacs-devel@gnu.org; Tue, 23 Nov 2021 15:36:42 -0500 Original-Received: by mail-qv1-xf32.google.com with SMTP id i13so179720qvm.1 for ; Tue, 23 Nov 2021 12:36:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:mime-version:subject:message-id:date:to; bh=m/w+BXh1UqadopFI6tHXplO9JBCsTiv8BwfXUo41A3c=; b=Z+IaZ6ZWFFShMcJ9fgC9UWowL0S/CgPJ7Ad8F0E068vZN2jn0e2cb5cc9eB7IWb/IC RDxCibWKMDtHIeMimUAu4+0Ighxnn6XvAcaZqs+2WR+VRYo22oqf/W9CX+Q/R7wEYI8R CG4/O7TodqPi4jLSSYcujl9HC0pW4Mqhhfzd6vqV7niLmXZS2AqDMN02/oGsgTnvufM9 WGWuu5pW1aR8/wfVGjTPbl1eR1S5+9Cx7ImqtdN9FHZfBEnvHmPtoDPNXTM+zzgcjEdk jnOGDxlAQwsydfa+JWKn3q6Xo1DlPSGjtS7cA0eLgk5fw8ARbCKmVar3xUSvPjzfGHxI HjbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:mime-version:subject:message-id:date:to; bh=m/w+BXh1UqadopFI6tHXplO9JBCsTiv8BwfXUo41A3c=; b=YW6NvmlfyEkC7IEVC4zdBVSX7EPssWQ56tB/3yGrlpCMMiF/dVg/MtUX1ne/foH3n1 zwK4GeJ2RrKL1ctvifg9GOCCL20fJvBwdCdXyyTkxlR12//EuVW8lR3jB3DB0GSb+LWe V/i8r8gZjnsQn06Kex/BhZithXxijMQa+8yZd67s44x+M1sd0gderps3GETF5NWqul/e QdH7HrxPPaejrUT73wvvQB26D0m3yOFBuNAyRaIWMFF4F0W6AUsTIag/tdQkSEM1Pk4A F7iWD+gcqYMpUvi3WecRf2kCc8e/3B5wm10QgbD0kLg+BFqVg724kblvFFPpXRO7NHT2 k9pg== X-Gm-Message-State: AOAM532pZ/+82zw7p0ZobiuAPUbjtpIS/0nSdgVoh1v+w8du54XHLjZZ I4EtjHPkf0dXzPXdbAf18LZvq2iUF+s= X-Google-Smtp-Source: ABdhPJxwHEzxsouOMAvF7mMLpDfz2/31/lJV7zzUyOq10PWJRCrf+qCO3CQLIPuscJ4ld3e3gPgpYQ== X-Received: by 2002:a05:6214:dac:: with SMTP id h12mr270656qvh.60.1637699799512; Tue, 23 Nov 2021 12:36:39 -0800 (PST) Original-Received: from smtpclient.apple ([131.183.185.120]) by smtp.gmail.com with ESMTPSA id s7sm6877358qta.31.2021.11.23.12.36.38 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 Nov 2021 12:36:39 -0800 (PST) X-Mailer: Apple Mail (2.3654.80.0.2.43) X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::f32 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::f32; envelope-from=jdtsmith@gmail.com; helo=mail-qv1-xf32.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:279971 Archived-At: --Apple-Mail=_D666CB96-A6B9-4446-9317-5E9443415A08 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii I find that, in a loop like: (unwind-protect (while waiting-for-output (accept-process-output process)) (if waiting-for-output (warn "accept-process-output exited non-locally!"))) i.e. waiting for an async process (iPython), accept-process-output = (emacs 27.2) sometimes exits non-locally. I checked for any signals that = might cause this (none), and then I suspected re-entering a-p-e could = throw, so guarded against that, but still no luck. =20 Does anyone know any other reasons that accept-process-output would = (occasionally) exit non-locally? Is this expected? --Apple-Mail=_D666CB96-A6B9-4446-9317-5E9443415A08 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii
I find that, in a loop like:

(unwind-protect
    (while = waiting-for-output
      = (accept-process-output process))
  (if = waiting-for-output
      (warn = "accept-process-output exited = non-locally!")))

i.e. waiting for an async process (iPython), = accept-process-output (emacs 27.2) sometimes exits = non-locally. I checked for any signals that = might cause this (none), and then I suspected re-entering a-p-e could = throw, so guarded against that, but still no luck. =  

Does anyone know any other = reasons that accept-process-output would (occasionally) exit = non-locally?  Is this expected?

= --Apple-Mail=_D666CB96-A6B9-4446-9317-5E9443415A08--