From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/57832 Path: main.gmane.org!not-for-mail From: Paul Moore Newsgroups: gmane.emacs.gnus.general Subject: How do I tell if Gnus is running? Date: Thu, 03 Jun 2004 20:18:42 +0100 Sender: ding-owner-qhrM8SXbD5ICJmmTlSVZx4dd74u8MsAO@public.gmane.org Message-ID: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1086313051 15161 80.91.224.253 (4 Jun 2004 01:37:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 4 Jun 2004 01:37:31 +0000 (UTC) Original-X-From: ding-owner+M6373-qhrM8SXbD5ICJmmTlSVZx4dd74u8MsAO@public.gmane.org Fri Jun 04 03:37:26 2004 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BW3e9-0006nd-00 for ; Fri, 04 Jun 2004 03:37:26 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1BW3d5-0002bx-00; Thu, 03 Jun 2004 20:36:19 -0500 Original-Received: from util2.math.uh.edu ([129.7.128.23]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1BVxlx-0001j1-00 for ding@lists.math.uh.edu; Thu, 03 Jun 2004 14:21:05 -0500 Original-Received: from justine.libertine.org ([66.139.78.221] ident=postfix) by util2.math.uh.edu with esmtp (Exim 4.30) id 1BVxlx-0001Kl-0r for ding@lists.math.uh.edu; Thu, 03 Jun 2004 14:21:05 -0500 Original-Received: from main.gmane.org (main.gmane.org [80.91.224.249]) by justine.libertine.org (Postfix) with ESMTP id 5737E3A003C for ; Thu, 3 Jun 2004 14:21:03 -0500 (CDT) Original-Received: from root by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1BVxlu-0003aU-00 for ; Thu, 03 Jun 2004 21:21:02 +0200 Original-Received: from arkenstone.demon.co.uk ([80.177.167.183]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 03 Jun 2004 21:21:01 +0200 Original-Received: from pf_moore by arkenstone.demon.co.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 03 Jun 2004 21:21:01 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding-smP1P7uqpqc@public.gmane.org Original-To: ding-smP1P7uqpqc@public.gmane.org Original-Lines: 16 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: arkenstone.demon.co.uk X-Archive: encrypt Mail-Copies-To: never User-Agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.5 (chayote, windows-nt) Cancel-Lock: sha1:PVRkZH0H6Y5MuTqGsmNc4iloaD0= Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:57832 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:57832 I'd like to write a function which starts Gnus, only if it's not already running. (It's for a mailto handler, and I want to run gnus-url-mailto, but before I do I want to make sure that Gnus is started). What's the best way of testing if Gnus is already running? Is testing for the existence of the *Group* buffer enough? Oh, and on a related note, is there a way of starting Gnus, but *not* checking for mail/news? The documentation implies that (gnus nil t) should do it, but my experiments seem to show that it doesn't... Thanks, Paul. -- This signature intentionally left blank