From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/80440 Path: news.gmane.org!not-for-mail From: coroa@online.de (Jonas =?utf-8?Q?H=C3=B6rsch?=) Newsgroups: gmane.emacs.gnus.general Subject: Re: Reviving Gnus after suspend/hibernation Date: Thu, 27 Oct 2011 20:30:42 +0200 Message-ID: <87obx2e17x.fsf@gmail.com> References: <87wrc2qmog.fsf@gnu.org> <877h3ule0y.fsf@lifelogs.com> <87hb2ucox4.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1319743723 15182 80.91.229.12 (27 Oct 2011 19:28:43 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 27 Oct 2011 19:28:43 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M28727@lists.math.uh.edu Thu Oct 27 21:28:37 2011 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RJVcy-0001v8-BZ for ding-account@gmane.org; Thu, 27 Oct 2011 21:28:36 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1RJVbg-0007vP-EL; Thu, 27 Oct 2011 14:27:16 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1RJUnL-0007iO-KL for ding@lists.math.uh.edu; Thu, 27 Oct 2011 13:35:15 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1RJUnJ-0005Ji-FC for ding@lists.math.uh.edu; Thu, 27 Oct 2011 13:35:15 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1RJUnI-0007y9-2t for ding@gnus.org; Thu, 27 Oct 2011 20:35:12 +0200 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RJUnE-0002dl-LQ for ding@gnus.org; Thu, 27 Oct 2011 20:35:08 +0200 Original-Received: from kafka.exp.univie.ac.at ([131.130.102.14]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 27 Oct 2011 20:35:08 +0200 Original-Received: from coroa by kafka.exp.univie.ac.at with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 27 Oct 2011 20:35:08 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 37 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: kafka.exp.univie.ac.at User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.90 (gnu/linux) Cancel-Lock: sha1:J0GrwqRpE9dEHE7UQcc9VqhJcBg= X-Spam-Score: -5.4 (-----) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:80440 Archived-At: On Thu, Oct 27 2011, Ted Zlatanov wrote: > Asking emacs-devel since the Gnus list didn't have any answers: > > On Mon, 24 Oct 2011 09:23:09 -0400 Ted Zlatanov wrote: > > TZ> On Tue, 18 Oct 2011 18:39:11 +0200 ludo@gnu.org (Ludovic Courtès) wrote: > LC> When Gnus is left plugged or has non-agentized nnimap groups, recovering > LC> from suspend-to-RAM or hibernation has always been a problem for me: > LC> sometimes Emacs is frozen upon resume, trying to get data from some IMAP > LC> stream. > ... > TZ> (Assuming modern GNU/Linux system is the main focus based on your > TZ> commands) > > TZ> Is there a D-BUS signal for this, and can Emacs catch it? If so I could > TZ> try to close the open connections in that handler. > > TZ> What happens on a W32 system? > > Any help is appreciated. I don't know anything about these system events. > > Thanks > Ted I'm not sure about catching a suspend event, that probably is based on who is suspending anyway (Is it a DBUS-using power manager, like KDE's powerdevil or the gnome-power-manager?). But if the network interfaces are managed by NetworkManager, you can at least hook into connect/disconnect signals. There is some working implementation on the EmacsWiki: http://www.emacswiki.org/emacs/GnusNetworkManager Cheers Jonas