From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Manuel Giraud Newsgroups: gmane.emacs.bugs Subject: bug#53877: 29.0.50; [PATCH] async Gnus/nnml Date: Thu, 10 Feb 2022 10:02:59 +0100 Message-ID: <87o83faybg.fsf@elite.giraud> References: <87leyl1lr9.fsf@elite.giraud> <87bkzgpi9u.fsf@gnus.org> <87tud8cr5q.fsf@elite.giraud> <878rukmkpf.fsf@gnus.org> <87k0e4cojb.fsf@elite.giraud> <87v8xol3tr.fsf@gnus.org> <877da4cjdg.fsf@elite.giraud> <87o83gq9q5.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12177"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (berkeley-unix) Cc: 53877@debbugs.gnu.org, Lars Ingebrigtsen To: Eric Abrahamsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Feb 10 10:16:47 2022 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 1nI5ZG-00030a-Cp for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 10 Feb 2022 10:16:46 +0100 Original-Received: from localhost ([::1]:39404 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nI5ZF-0001qV-3p for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 10 Feb 2022 04:16:45 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:60214) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nI5N0-0000VO-SU for bug-gnu-emacs@gnu.org; Thu, 10 Feb 2022 04:04:10 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60025) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nI5Mx-0000ev-7d for bug-gnu-emacs@gnu.org; Thu, 10 Feb 2022 04:04:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nI5Mw-0001gB-4X for bug-gnu-emacs@gnu.org; Thu, 10 Feb 2022 04:04:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Manuel Giraud Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 10 Feb 2022 09:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53877 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 53877-submit@debbugs.gnu.org id=B53877.16444837846368 (code B ref 53877); Thu, 10 Feb 2022 09:04:02 +0000 Original-Received: (at 53877) by debbugs.gnu.org; 10 Feb 2022 09:03:04 +0000 Original-Received: from localhost ([127.0.0.1]:53922 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nI5M0-0001ee-3e for submit@debbugs.gnu.org; Thu, 10 Feb 2022 04:03:04 -0500 Original-Received: from ledu-giraud.fr ([51.159.28.247]:3959) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nI5Ly-0001eD-84 for 53877@debbugs.gnu.org; Thu, 10 Feb 2022 04:03:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=rsa; bh=kngUuoj3KVgTzESc SGs0cd9vRDO5TlVqiDBSWvlh0+M=; h=in-reply-to:date:references:subject: cc:to:from; d=ledu-giraud.fr; b=JOZ6/LS/cnJzi7LTGIb1BhIWNIBAa7BmmLqn5N MpyQCF8+8qtSYVAqqcUqM+YXMHa+0rM0W2mf/LCvdt3EbMkNoC33LNqOL3lxT7MWPKpXWy zSZKOz/darW6jLqQuq4e4ohKZfEHldohNIafNE6ijKCQrSdl24YUutr8UN3yROvsGcEbhv 2xKleb/F2dli3GKFdjIi4q4ft7KlwGLbLw3HwsLhTxUjK2Oj9s97W31Mz4+EV/a/2C0NpX FIPiGBTfdXt4TjTNo8gnA4vGMmHxKCM0w2dPl8Sy41yjjrLWT5Gt8gH7Tp/tpUlj/PyAix WGCJsy2AMaoViP9joz+ZpHiw== Original-Received: from elite.giraud ( [10.1.1.1]) by ledu-giraud.fr (OpenSMTPD) with ESMTPSA id 6b652dd8 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Thu, 10 Feb 2022 10:03:00 +0100 (CET) In-Reply-To: <87o83gq9q5.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Wed, 09 Feb 2022 08:35:14 -0800") 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" Xref: news.gmane.io gmane.emacs.bugs:226575 Archived-At: Eric Abrahamsen writes: > Manuel Giraud writes: > >> Lars Ingebrigtsen writes: >> >>> Why can't you bind `nnmail-article-buffer' before calling the splitting >>> function? >> >> I spoke too quickly. The idea was that with a temporay buffer I could >> run multiple splitting in "parallel". But rebinding just *one* global >> variable won't help much here. > > Are you sure? AFAIK this was Dick Chiang's approach to threading > server updates: let-binding the value of `nntp-server-buffer' within > the thread function. As far as I know it worked okay. The splitting > function and code run within it will have a separate value of > `nnmail-article-buffer'. I'm trying another approach: seek to the processes in the backend, don't wait for them to end but instead attach sentinels for what's left to do. Maybe it is not the best approach because Gnus seems to be heavily stateful/serial. I'm not sure about binding in sentinels: do you think it would work as binding in threads? -- Manuel Giraud