From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#49682: 27.2.50; accept-process-output within accept-process-output hangs emacs Date: Mon, 06 Nov 2023 19:39:53 +0200 Message-ID: <83a5rq3hna.fsf@gnu.org> References: <87mtqfzpbl.fsf@hm.sivalik.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24555"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 49682@debbugs.gnu.org To: LdBeth Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Nov 06 18:41:06 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1r03b0-0006EB-BY for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 06 Nov 2023 18:41:06 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r03ae-0004dC-VD; Mon, 06 Nov 2023 12:40:45 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r03aT-0004c9-M3 for bug-gnu-emacs@gnu.org; Mon, 06 Nov 2023 12:40:34 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r03aK-0005gl-Pk for bug-gnu-emacs@gnu.org; Mon, 06 Nov 2023 12:40:27 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r03av-00062z-VH for bug-gnu-emacs@gnu.org; Mon, 06 Nov 2023 12:41:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 06 Nov 2023 17:41:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49682 X-GNU-PR-Package: emacs Original-Received: via spool by 49682-submit@debbugs.gnu.org id=B49682.169929245823228 (code B ref 49682); Mon, 06 Nov 2023 17:41:01 +0000 Original-Received: (at 49682) by debbugs.gnu.org; 6 Nov 2023 17:40:58 +0000 Original-Received: from localhost ([127.0.0.1]:40663 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r03as-00062Z-1e for submit@debbugs.gnu.org; Mon, 06 Nov 2023 12:40:58 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48358) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r03ap-00062L-Rv for 49682@debbugs.gnu.org; Mon, 06 Nov 2023 12:40:56 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r03a9-0005fb-0q; Mon, 06 Nov 2023 12:40:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=ZW+3vIdfl9PHR4XeoGjG1S7Je5bhlHOlkKnOpyUBIvI=; b=n+W8bSCqTX80 3BIIzaK8jrLPerpGWWxWQ+HRRgD2/Ak2VRCjpjxzOPfG7em+6ke1oufcsjUu9rQajxzxVwLkPjkMK y+vWkEPTx0NWb+9j8WrbTpRBM1QzG156PXWl4gGOCVqT58lef+Q9519/i4MRQvR8igaeyZSKpfjqf RZSbUW0NkOkIjMlZaz91S5CROFcIQx+qDw/AolJkjBoN0536aObepsD2G6yZNBBPHL1sadDWx7u/g WDP0SwOI3DvVGEMfT+te3LOdjSgOT1DBX6HUREIxTXJO0Mpxg+/bSm4AIDRe9Q/zEWqNvH4LdzAYG N3TnHKE6ozo5jLPs3sob+A==; In-Reply-To: (message from LdBeth on Mon, 06 Nov 2023 11:14:18 -0600) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:273889 Archived-At: > Date: Mon, 06 Nov 2023 11:14:18 -0600 > From: LdBeth > > This bug seems happened many times to me (on Emacs 29.1 macOS, with > Mitsuharu's patches if that matters) whenever I open an multipart > email that contains HTML that has several image links through IMAP in > the Wanderlust email reader since I start to enable HTML images in the > email reader. (And for some reason C-g seems not able to interrupt the > hang) > > The shr library uses url-queue to asynchronously download images > and Wanderlust also use `accept-process-output' call to handle IMAP. > > For this particular case I used a dirty hack > > (define-advice accept-process-output > (:before (&rest _) sync-queue) > (when (fboundp 'url-queue-check-progress) > (funcall #'url-queue-check-progress))) > > However, could we make `accept-process-output' atomic so > the timer won't interrupt it? Or there is no reliable > method yet to make any atomic operations in Emacs yet? 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?