unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: LdBeth <andpuke@foxmail.com>
Cc: 49682@debbugs.gnu.org
Subject: bug#49682: 27.2.50; accept-process-output within accept-process-output hangs emacs
Date: Mon, 06 Nov 2023 19:39:53 +0200	[thread overview]
Message-ID: <83a5rq3hna.fsf@gnu.org> (raw)
In-Reply-To: <tencent_67746CAD7AFF16DCAEBA8F1DED7AE8318209@qq.com> (message from LdBeth on Mon, 06 Nov 2023 11:14:18 -0600)

> Date: Mon, 06 Nov 2023 11:14:18 -0600
> From: LdBeth <andpuke@foxmail.com>
> 
> 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?





  reply	other threads:[~2023-11-06 17:39 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-21 14:58 bug#49682: 27.2.50; accept-process-output within accept-process-output hangs emacs Rajeev N via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-07-21 15:14 ` Lars Ingebrigtsen
2021-07-21 16:14   ` Rajeev N via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-07-21 16:18     ` Lars Ingebrigtsen
     [not found]       ` <87tukntz2m.fsf@hm.sivalik.com>
2021-07-21 16:40         ` Lars Ingebrigtsen
2021-07-23 17:00       ` Rajeev N via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-07-24 10:28         ` Lars Ingebrigtsen
2021-07-24 10:46           ` Rajeev N via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-07-26 18:58         ` Dmitry Gutov
2021-07-26 19:54           ` Rajeev N via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-07-26 20:22             ` Dmitry Gutov
2021-07-26 20:55               ` Rajeev N via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-07-27 14:13                 ` Dmitry Gutov
2021-07-27 17:22                   ` Rajeev N via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-07-27 17:35                     ` Eli Zaretskii
2021-07-27 21:40                       ` Rajeev N via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-07-28 16:12                         ` Eli Zaretskii
2021-07-28 17:12                           ` Rajeev N via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-08-06 16:55                           ` Robert Pluim
2021-07-21 19:29 ` Eli Zaretskii
2021-07-21 21:32   ` Lars Ingebrigtsen
2021-07-21 21:53     ` Rajeev N via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-07-22  5:47     ` Eli Zaretskii
2021-07-23 18:30       ` Dmitry Gutov
2023-11-06 17:14 ` LdBeth
2023-11-06 17:39   ` Eli Zaretskii [this message]
2023-11-06 20:27     ` LdBeth
2023-11-07  9:24       ` Michael Albinus
2023-11-08 15:50     ` Kazuhiro Ito
2023-11-08 16:37       ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83a5rq3hna.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=49682@debbugs.gnu.org \
    --cc=andpuke@foxmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).