From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#17686: 24.3; fetching mail in gnus -vs- erc Date: Tue, 09 Dec 2014 03:13:15 +0100 Message-ID: References: <87mwdsenrz.fsf@fleche.redhat.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1418091267 7975 80.91.229.3 (9 Dec 2014 02:14:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 9 Dec 2014 02:14:27 +0000 (UTC) Cc: 17686@debbugs.gnu.org To: Tom Tromey Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Dec 09 03:14:21 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XyAJf-0007cj-D9 for geb-bug-gnu-emacs@m.gmane.org; Tue, 09 Dec 2014 03:14:19 +0100 Original-Received: from localhost ([::1]:37379 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XyAJe-0001vf-Do for geb-bug-gnu-emacs@m.gmane.org; Mon, 08 Dec 2014 21:14:18 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51144) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XyAJV-0001vE-2m for bug-gnu-emacs@gnu.org; Mon, 08 Dec 2014 21:14:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XyAJO-0003ZV-RP for bug-gnu-emacs@gnu.org; Mon, 08 Dec 2014 21:14:09 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:32939) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XyAJO-0003ZR-O0 for bug-gnu-emacs@gnu.org; Mon, 08 Dec 2014 21:14:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XyAJO-00069R-HA; Mon, 08 Dec 2014 21:14:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Magne Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Tue, 09 Dec 2014 02:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17686 X-GNU-PR-Package: emacs,gnus X-GNU-PR-Keywords: Original-Received: via spool by 17686-submit@debbugs.gnu.org id=B17686.141809121623607 (code B ref 17686); Tue, 09 Dec 2014 02:14:02 +0000 Original-Received: (at 17686) by debbugs.gnu.org; 9 Dec 2014 02:13:36 +0000 Original-Received: from localhost ([127.0.0.1]:58384 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XyAIy-00068g-Bf for submit@debbugs.gnu.org; Mon, 08 Dec 2014 21:13:36 -0500 Original-Received: from hermes.netfonds.no ([80.91.224.195]:48505) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XyAIw-00068W-3N for 17686@debbugs.gnu.org; Mon, 08 Dec 2014 21:13:34 -0500 Original-Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58] helo=stories.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1XyAIe-0001up-1F; Tue, 09 Dec 2014 03:13:16 +0100 X-Now-Playing: Wishmountain's _Tesco_: "Coke" X-Hashcash: 1:23:141209:tromey@redhat.com::REJ6KTiM0TndAff/:000000000000000000000000000000000000000000004IQm X-Hashcash: 1:23:141209:17686@debbugs.gnu.org::dDk5QVFma513kOer:0000000000000000000000000000000000000000AUEx In-Reply-To: <87mwdsenrz.fsf@fleche.redhat.com> (Tom Tromey's message of "Wed, 04 Jun 2014 08:45:52 -0600") User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux) X-MailScanner-ID: 1XyAIe-0001up-1F MailScanner-NULL-Check: 1418695996.34003@dCq8nj6jEtMBJ3OTWFJCFA X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:97058 Archived-At: Tom Tromey writes: > I somewhat regularly experience an unfortunate interaction between gnus > and erc. > > I use fetchmail to download mail to my machine. Then I tell gnus to > pull this into nnmail groups. > > I also use ERC. > > If I have a lot of email (thousands of messages) pending, and then start > ERC and only after that start gnus, then the ERC connection will time > out while gnus processes the mail. This logs me out of the irc server. > > I don't see why this has to happen. Perhaps gnus and/or emacs could > ensure that the ERC process gets called while importing the email. Emacs Lisp is (basically) single-threaded, and Gnus fetches mail synchronously, so all other Lisp stuff has to wait until the synchronous action is over. Including the ERC stuff, which is presumably running off of a process filter. I don't think there's any way to fix this without rewriting Emacs Lisp to be multithreaded, and then this would like, just work, or rewrite Gnus to do its fetching stuff asynchronously, and that's probably not going to happen. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no