Subject: bug#61350: Eglot over Tramp freezes with large project

From: Michael Albinus <[email-masked]>
Date: Tue, 07 Mar 2023 14:47:23 +0100

Thomas Koch <[email-masked]> writes:

> Thanks Michael!

Hi Thomas,

> What is the advantage of this patch over just removing the JUST-THIS-ONE argument? In both cases tramp is triggering accept-process-output for processes it does not own.

It touches only processes which share the same connection via ssh
ControlMaster (and putty share). Nothing else.

> However with your patch there is a potential timing issue: blocking
> process output could still arrive between your new loop and tramps
> call to accept-process-output with JUST-THIS-ONE.

You have seen the timing? I'll change the timeout of
accept-process-output to 0. This should prevent blocking.

> I'd think that there might be room for an essay "JUST-THIS-ONE considered evil"?

In my book, one shall touch only data one is related to. Processes, not
related to the same Tramp connection, are taboo.

Best regards, Michael.