Subject: bug#73046: 29.4; Emacs 100% CPU usage for several seconds when opening dired buffer over TRAMP

From: Eli Zaretskii <[email-masked]>
Date: Sun, 15 Sep 2024 08:55:32 +0300

> From: Suhail Singh <[email-masked]>
> Cc: Suhail Singh <[email-masked]>,  [email-masked],
>   [email-masked]
> Date: Sat, 14 Sep 2024 18:36:04 -0400
> 
> Eli Zaretskii <[email-masked]> writes:
> 
> > If 3 surprised you, then the reason is simple: sit-for returns
> > immediately if any input is available, so typing effectively disables
> > the wait.
> 
> Interesting.  I didn't expect it to do so persistently (i.e., for
> subsequent iterations of the while loop in question).

Since the command still runs, your type-ahead is not consumed, and
each sit-for exits immediately.