GNU bug report logs - #45117
28.0.50; process-send-string mysteriously exiting non-locally when called from timer

Previous Next

Package: emacs;

Reported by: João Távora <joaotavora <at> gmail.com>

Date: Tue, 8 Dec 2020 11:45:02 UTC

Severity: normal

Found in version 28.0.50

Done: João Távora <joaotavora <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: João Távora <joaotavora <at> gmail.com>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 45117 <at> debbugs.gnu.org
Subject: bug#45117: 28.0.50; process-send-string mysteriously exiting non-locally when called from timer
Date: Thu, 10 Dec 2020 12:51:35 -0500
> Aha! I found the culprit.  It is eldoc.el.  It seems to be a
> longstanding policy to call Eldoc backends with `with-no-input`.  This
> is obviously badly problematic for aynchronous backends.

Maybe "obviously" so from a pragmatic point of view, but in
a theoretical sense, I don't see why: for async backends, the
`while-no-input` should only apply to the "first chunk" of computation
which launches the async subprocess (or communication) and it seems OK
to abort this first chunk if the user hits a key while it's executing.

So maybe the better answer is to improve the implementation of
`while-no-input` so it doesn't abort here.


        Stefan





This bug report was last modified 4 years and 162 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.