GNU bug report logs - #79367
31.0.50; magit-commit sometimes doesn't work if diff-hl-update-async is t

Previous Next

Package: emacs;

Reported by: Zhengyi Fu <i <at> fuzy.me>

Date: Tue, 2 Sep 2025 06:21:01 UTC

Severity: normal

Found in version 31.0.50

Full log


Message #65 received at 79367 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Dmitry Gutov <dmitry <at> gutov.dev>
Cc: i <at> fuzy.me, sbaugh <at> janestreet.com, 79367 <at> debbugs.gnu.org
Subject: Re: bug#79367: 31.0.50; magit-commit sometimes doesn't work if
 diff-hl-update-async is t
Date: Wed, 03 Sep 2025 16:15:42 +0300
> Date: Wed, 3 Sep 2025 15:17:42 +0300
> Cc: i <at> fuzy.me, sbaugh <at> janestreet.com, 79367 <at> debbugs.gnu.org
> From: Dmitry Gutov <dmitry <at> gutov.dev>
> 
> On 03/09/2025 14:57, Eli Zaretskii wrote:
> >> Maybe to start something, do we expect some Comint functionality to be
> >> broken when background threads exist and perhaps call
> >> 'accept-process-output' with nil, in a loop?
> >>
> >> Such as comint-redirect-results-list-from-process or comint-proc-query,
> >> for example.
> > If the process is locked to the thread which runs
> > comint-redirect-results-list-from-process, I wouldn't expect problems
> > there.  But it would be good for someone to look into this, sure.
> 
> Right, I meant the unlocked configuration (this could be an evidence of 
> it being bad default).

I'm not familiar with the expectations of this function.  Is it
expected to wait in a loop until PROCESS exits, and process the
output only then?  If yes, the only question is what happens when
PROCESS exits while another thread has the global lock.  This is
related to a problem discussed in bug#79334, so maybe we should
revisit this when that bug is deemed solved.




This bug report was last modified 7 days ago.

Previous Next


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