Subject: bug#49682: 27.2.50; accept-process-output within accept-process-output hangs emacs

From: Eli Zaretskii <[email-masked]>
Date: Wed, 08 Nov 2023 18:37:59 +0200

> Date: Thu, 09 Nov 2023 00:50:37 +0900
> From: Kazuhiro Ito <[email-masked]>
> Cc: [email-masked]
> 
> > If a Lisp program wants to avoid timers during the call to
> > accept-process-output, could perhaps temporarily bind timer-list to
> > nil or something?
> 
> According to docstring, it seems that accept-process-output has option
> not to run timers.
> 
> > (accept-process-output &optional PROCESS SECONDS MILLISEC
> > JUST-THIS-ONE)
> ...
> > If JUST-THIS-ONE is an integer, don’t run any timers either.
> 
> Can Lisp programs use the feature?

If they are okay with receiving output only from PROCESS, yes, they
can.