From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/68940 Path: news.gmane.org!not-for-mail From: Tim Landscheidt Newsgroups: gmane.emacs.gnus.general Subject: Re: accidentally started gnus Date: Sat, 29 Aug 2009 23:10:14 +0000 Organization: Message-ID: References: <87r5v7lpzj.fsf@jidanni.org> <87tyzw12p0.fsf@uwo.ca> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1251587496 712 80.91.229.12 (29 Aug 2009 23:11:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 29 Aug 2009 23:11:36 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M17359@lists.math.uh.edu Sun Aug 30 01:11:29 2009 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.50) id 1MhX4z-00021U-2t for ding-account@gmane.org; Sun, 30 Aug 2009 01:11:29 +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 1MhX4F-0000uV-15; Sat, 29 Aug 2009 18:10:43 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1MhX4C-0000uH-DT for ding@lists.math.uh.edu; Sat, 29 Aug 2009 18:10:40 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.69) (envelope-from ) id 1MhX4A-0002Hi-Tx for ding@lists.math.uh.edu; Sat, 29 Aug 2009 18:10:39 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1MhX4m-0003RT-00 for ; Sun, 30 Aug 2009 01:11:16 +0200 Original-Received: from list by lo.gmane.org with local (Exim 4.50) id 1MhX4A-0001sb-23 for ding@gnus.org; Sun, 30 Aug 2009 01:10:38 +0200 Original-Received: from e177153182.adsl.alicedsl.de ([85.177.153.182]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 30 Aug 2009 01:10:38 +0200 Original-Received: from tim by e177153182.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 30 Aug 2009 01:10:38 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-Lines: 19 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: e177153182.adsl.alicedsl.de Mail-Copies-To: never User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:QAYsWS88RilquaeGfQIKuDJk11w= X-Spam-Score: -2.8 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:68940 Archived-At: Dan Christensen wrote: > To avoid accidentally starting Gnus a second time, I use the following > code, which requires that you have the lockfile program in your path. > After a crash, the lock file will still exist, in which case you can > steal the lock. > It's amazing how often this has saved me from having two copies of Gnus > running! > (add-hook 'gnus-before-startup-hook 'jdc-gnus-lock) > (defun jdc-gnus-lock () > [...] That sounds rather interesting. Any chance this could be in- tegrated into the main source? Tim