unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* accept-process-output throws
@ 2021-11-23 20:36 JD Smith
  2021-11-24  3:25 ` Eli Zaretskii
  0 siblings, 1 reply; 5+ messages in thread
From: JD Smith @ 2021-11-23 20:36 UTC (permalink / raw)
  To: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 597 bytes --]

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?


[-- Attachment #2: Type: text/html, Size: 1779 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-11-27 14:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-23 20:36 accept-process-output throws JD Smith
2021-11-24  3:25 ` Eli Zaretskii
2021-11-24  5:14   ` JD Smith
2021-11-24 12:38     ` Eli Zaretskii
2021-11-27 14:31       ` JD Smith

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).