[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#49682: 27.2.50; accept-process-output within accept-process-output h
From: |
LdBeth |
Subject: |
bug#49682: 27.2.50; accept-process-output within accept-process-output hangs emacs |
Date: |
Mon, 06 Nov 2023 14:27:02 -0600 |
User-agent: |
Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (Gojō) APEL-LB/10.8 EasyPG/1.0.0 Emacs/29.1 (x86_64-apple-darwin20.6.0) MULE/6.0 (HANACHIRUSATO) |
>>>>> In <83a5rq3hna.fsf@gnu.org>
>>>>> Eli Zaretskii <eliz@gnu.org> wrote:
ldb> The shr library uses url-queue to asynchronously download images
ldb> and Wanderlust also use `accept-process-output' call to handle
ldb> IMAP.
ldb>
ldb> For this particular case I used a dirty hack
ldb>
ldb> (define-advice accept-process-output
ldb> (:before (&rest _) sync-queue)
ldb> (when (fboundp 'url-queue-check-progress)
ldb> (funcall #'url-queue-check-progress)))
ldb>
ldb> However, could we make `accept-process-output' atomic so the
ldb> timer won't interrupt it? Or there is no reliable method yet to
ldb> make any atomic operations in Emacs yet?
Eli> If a Lisp program wants to avoid timers during the call to
Eli> accept-process-output, could perhaps temporarily bind timer-list
Eli> to nil or something?
Thank you, let Wanderlust maintainers know and figure out
changes needed to fix the problem.
---
ldbeth