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#53877: 29.0.50; [PATCH] async Gnus/nnml Date: Thu, 10 Feb 2022 22:25:20 +0200 Message-ID: <837da2tqof.fsf@gnu.org> 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> <87o83faybg.fsf@elite.giraud> <87iltma8wj.fsf@ericabrahamsen.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10180"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 53877@debbugs.gnu.org, larsi@gnus.org, manuel@ledu-giraud.fr To: Eric Abrahamsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Feb 10 21:26:14 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 1nIG17-0002VD-Sx for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 10 Feb 2022 21:26:14 +0100 Original-Received: from localhost ([::1]:43540 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nIG15-0003oU-Nu for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 10 Feb 2022 15:26:11 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:56470) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nIG0x-0003nH-1b for bug-gnu-emacs@gnu.org; Thu, 10 Feb 2022 15:26:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35122) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nIG0w-0003yn-OD for bug-gnu-emacs@gnu.org; Thu, 10 Feb 2022 15:26:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nIG0w-0002ge-Lq for bug-gnu-emacs@gnu.org; Thu, 10 Feb 2022 15:26:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 10 Feb 2022 20:26: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.164452474910255 (code B ref 53877); Thu, 10 Feb 2022 20:26:02 +0000 Original-Received: (at 53877) by debbugs.gnu.org; 10 Feb 2022 20:25:49 +0000 Original-Received: from localhost ([127.0.0.1]:57239 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nIG0i-0002fL-PC for submit@debbugs.gnu.org; Thu, 10 Feb 2022 15:25:49 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:49574) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nIG0g-0002f5-Lp for 53877@debbugs.gnu.org; Thu, 10 Feb 2022 15:25:47 -0500 Original-Received: from [2001:470:142:3::e] (port=35476 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nIG0M-0003mw-Sl; Thu, 10 Feb 2022 15:25:39 -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=A8NU4qh3yPKR6gAAt93l9BjexpDX2ZecaqaJuh+HGOM=; b=aXW1afI2hKF4 v9KV1xbI/18UJj79CQAILScHekSSQazzujCX4YH8rAqthwVOu7N8XDNLCsd1u8Qtm1RaadKAc1rlC IQRC94lKlTC5Mg56XoKpqKBMLzIZTXalqZgNEUnL1MZHDRbgHeeo4cHA/54aQh5hk/ld56gzfK8MB ALVoYOB/fuHq4yHsDhZphBMzih+CPn251FuT9XUOMnh6BOE57GoAW2k1gLx9Hd8c14LVa5a2d8MFF OvmyaeXesLzjV/2+OzkzA1Of/yTQe1eG/dAgTWqgOrvKXUU63FisY6UX8sNwiy1iZkHHdoYAuftv7 af5rr+MXXDRGI0RdmBPOrw==; Original-Received: from [87.69.77.57] (port=3391 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nIG0J-00044h-VQ; Thu, 10 Feb 2022 15:25:25 -0500 In-Reply-To: <87iltma8wj.fsf@ericabrahamsen.net> (message from Eric Abrahamsen on Thu, 10 Feb 2022 10:11:56 -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:226630 Archived-At: > From: Eric Abrahamsen > Date: Thu, 10 Feb 2022 10:11:56 -0800 > Cc: 53877@debbugs.gnu.org, Lars Ingebrigtsen > > > (defun test-threads-outer () > (dolist (label (list "one" "two" "three")) > (make-thread (lambda () (test-threads-inner label)) label))) > > (defun test-threads-inner (label) > (let ((nnmail-article-buffer (format "nnmail-incoming-%s" label))) > (with-current-buffer (get-buffer-create nnmail-article-buffer) > (insert label)))) > > That creates three separate buffers, named correctly, and holding the > correct text. But only if you don't do anything in the main thread, just let it sit idling. Right? Otherwise those other threads won't get an opportunity to run.