Gnus development mailing list
 help / color / mirror / Atom feed
* How do I tell if Gnus is running?
@ 2004-06-03 19:18 Paul Moore
  2004-06-04  2:07 ` Jesper Harder
  2004-06-04 16:00 ` colin.rafferty
  0 siblings, 2 replies; 12+ messages in thread
From: Paul Moore @ 2004-06-03 19:18 UTC (permalink / raw)


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




^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: How do I tell if Gnus is running?
  2004-06-03 19:18 How do I tell if Gnus is running? Paul Moore
@ 2004-06-04  2:07 ` Jesper Harder
  2004-06-04 10:31   ` Paul Moore
  2004-06-04 16:00 ` colin.rafferty
  1 sibling, 1 reply; 12+ messages in thread
From: Jesper Harder @ 2004-06-04  2:07 UTC (permalink / raw)


Paul Moore <pf_moore@yahoo.co.uk> writes:

> What's the best way of testing if Gnus is already running? Is testing
> for the existence of the *Group* buffer enough?

`gnus-alive-p' is intended for this.

-- 
Jesper Harder                                <http://purl.org/harder/>



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: How do I tell if Gnus is running?
  2004-06-04  2:07 ` Jesper Harder
@ 2004-06-04 10:31   ` Paul Moore
  0 siblings, 0 replies; 12+ messages in thread
From: Paul Moore @ 2004-06-04 10:31 UTC (permalink / raw)


Jesper Harder <harder-yWJdMwsvfx5aa/9Udqfwiw@public.gmane.org> writes:

> Paul Moore <pf_moore-/E1597aS9LT10XsdtD+oqA@public.gmane.org> writes:
>
>> What's the best way of testing if Gnus is already running? Is testing
>> for the existence of the *Group* buffer enough?
>
> `gnus-alive-p' is intended for this.

Cool. I missed that one, thanks!

Paul.
-- 
This signature intentionally left blank




^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: How do I tell if Gnus is running?
  2004-06-03 19:18 How do I tell if Gnus is running? Paul Moore
  2004-06-04  2:07 ` Jesper Harder
@ 2004-06-04 16:00 ` colin.rafferty
  2004-06-05 15:19   ` Paul Moore
  1 sibling, 1 reply; 12+ messages in thread
From: colin.rafferty @ 2004-06-04 16:00 UTC (permalink / raw)


Paul Moore wrote:

> Oh, and on a related note, is there a way of starting Gnus, but *not*
> checking for mail/news? 

(gnus-no-server)

;; Colin



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: How do I tell if Gnus is running?
  2004-06-04 16:00 ` colin.rafferty
@ 2004-06-05 15:19   ` Paul Moore
  2004-06-06 10:01     ` Frank Schmitt
  2004-06-06 15:12     ` Jonas Steverud
  0 siblings, 2 replies; 12+ messages in thread
From: Paul Moore @ 2004-06-05 15:19 UTC (permalink / raw)


colin.rafferty-/PgpppG8B+R7qynMiXIxWgC/G2K4zDHf@public.gmane.org writes:

> Paul Moore wrote:
>
>> Oh, and on a related note, is there a way of starting Gnus, but *not*
>> checking for mail/news? 
>
> (gnus-no-server)

The trouble with that is that, if I then want to check for news, "g"
doesn't work. The reason I want to start Gnus but not check for new
mail/news is because I'm processing a mailto: URL, and I just want to
get to the compose mail buffer as fast as possible. But after I've
composed my message, I may then want to get news, so I'd like to be
able to do "g" then.

Cheers,
Paul.
-- 
This signature intentionally left blank




^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: How do I tell if Gnus is running?
  2004-06-05 15:19   ` Paul Moore
@ 2004-06-06 10:01     ` Frank Schmitt
  2004-06-06 20:18       ` Paul Moore
  2004-06-06 15:12     ` Jonas Steverud
  1 sibling, 1 reply; 12+ messages in thread
From: Frank Schmitt @ 2004-06-06 10:01 UTC (permalink / raw)


Paul Moore <pf_moore@yahoo.co.uk> writes:

> colin.rafferty@morganstanley.com writes:
>
>> (gnus-no-server)
>
> The trouble with that is that, if I then want to check for news, "g"
> doesn't work. The reason I want to start Gnus but not check for new
> mail/news is because I'm processing a mailto: URL, and I just want to
> get to the compose mail buffer as fast as possible. But after I've
> composed my message, I may then want to get news, so I'd like to be
> able to do "g" then.

^ M-o g should do the job in those cases.

-- 
Did you ever realize how much text fits in eighty columns? If you now consider
that a signature usually consists of up to four lines, this gives you enough
space to spread a tremendous amount of information with your messages. So seize
this opportunity and don't waste your signature with bullshit nobody will read.




^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: How do I tell if Gnus is running?
  2004-06-05 15:19   ` Paul Moore
  2004-06-06 10:01     ` Frank Schmitt
@ 2004-06-06 15:12     ` Jonas Steverud
  2004-06-06 20:22       ` Paul Moore
  1 sibling, 1 reply; 12+ messages in thread
From: Jonas Steverud @ 2004-06-06 15:12 UTC (permalink / raw)


Paul Moore <pf_moore@yahoo.co.uk> writes:

> colin.rafferty@morganstanley.com writes:
[...]
>> (gnus-no-server)
>
> The trouble with that is that, if I then want to check for news, "g"
> doesn't work. The reason I want to start Gnus but not check for new
> mail/news is because I'm processing a mailto: URL, and I just want to
> get to the compose mail buffer as fast as possible. But after I've
> composed my message, I may then want to get news, so I'd like to be
> able to do "g" then.

Maybe gnus-unplugged can help you? The downside is that it isn't
sufficient to press 'g' to get email, you have to press J j first to
plug in Gnus.

-- 
(        http://hem.bredband.net/steverud/        !     Wei Wu Wei     )
(        Meaning of U2 Lyrics, Roleplaying        !  To Do Without Do  )




^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: How do I tell if Gnus is running?
  2004-06-06 10:01     ` Frank Schmitt
@ 2004-06-06 20:18       ` Paul Moore
  0 siblings, 0 replies; 12+ messages in thread
From: Paul Moore @ 2004-06-06 20:18 UTC (permalink / raw)


Frank Schmitt <ich-WcwDWC4U+zAziNsQvjjKTV6hYfS7NtTn@public.gmane.org> writes:

> Paul Moore <pf_moore-/E1597aS9LT10XsdtD+oqA@public.gmane.org> writes:
>
>> colin.rafferty-/PgpppG8B+R7qynMiXIxWgC/G2K4zDHf@public.gmane.org writes:
>>
>>> (gnus-no-server)
>>
>> The trouble with that is that, if I then want to check for news, "g"
>> doesn't work. The reason I want to start Gnus but not check for new
>> mail/news is because I'm processing a mailto: URL, and I just want to
>> get to the compose mail buffer as fast as possible. But after I've
>> composed my message, I may then want to get news, so I'd like to be
>> able to do "g" then.
>
> ^ M-o g should do the job in those cases.

Unfortunately, after gnus-no-server, the server list is empty - no
servers other than nnarchive (IIRC). So ^ M-o doesn't do what's
needed, as there are no servers to open...

But thanks for the suggestion. Actually, after some experimentation,
the extra time to open the servers isn't a major issue, so I don't
*really* need a solution any more - it's now more of a nagging feeling
of "surely there's a way of doing this" rather than a burning need...

Paul.
-- 
This signature intentionally left blank




^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: How do I tell if Gnus is running?
  2004-06-06 15:12     ` Jonas Steverud
@ 2004-06-06 20:22       ` Paul Moore
  2004-06-07 14:34         ` David S Goldberg
  0 siblings, 1 reply; 12+ messages in thread
From: Paul Moore @ 2004-06-06 20:22 UTC (permalink / raw)


Jonas Steverud <tvrud-cgr7CL/LOSDk1uMJSBkQmQ@public.gmane.org> writes:

> Maybe gnus-unplugged can help you?

Probably not, as my original need was to get Gnus started as fast as
possible, to execute message-mail in response to a click on a mailto
URL.

Starting up unplugged would mean that my message wouldn't be sent
immediately, but would sit in the queue until I plugged and sent it.

Thanks anyway,
Paul
-- 
This signature intentionally left blank




^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: How do I tell if Gnus is running?
  2004-06-06 20:22       ` Paul Moore
@ 2004-06-07 14:34         ` David S Goldberg
  2004-06-07 19:31           ` Paul Moore
  0 siblings, 1 reply; 12+ messages in thread
From: David S Goldberg @ 2004-06-07 14:34 UTC (permalink / raw)


>>>>> On Sun, 06 Jun 2004 21:22:10 +0100, Paul Moore <pf_moore@yahoo.co.uk> said:

> Probably not, as my original need was to get Gnus started as fast as
> possible, to execute message-mail in response to a click on a mailto
> URL.

Does not frobbing mail-user-agent, perhaps to gnus-user-agent or
message-user-agent, do what you want?  I have it set to
gnus-user-agent, but checking doc strings it looks like that may no
longer be valid.  However, it does appear to do what I want when I run
M-x compose-mail from a freshly started XEmacs.

-- 
Dave Goldberg
david.goldberg6@verizon.net





^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: How do I tell if Gnus is running?
  2004-06-07 14:34         ` David S Goldberg
@ 2004-06-07 19:31           ` Paul Moore
       [not found]             ` <y8mz9ncd.fsf-/E1597aS9LT10XsdtD+oqA@public.gmane.org>
  0 siblings, 1 reply; 12+ messages in thread
From: Paul Moore @ 2004-06-07 19:31 UTC (permalink / raw)


David S Goldberg <david.goldberg6-H+0wwilmMs3R7s880joybQ@public.gmane.org> writes:

>>>>>> On Sun, 06 Jun 2004 21:22:10 +0100, Paul Moore <pf_moore-/E1597aS9LT10XsdtD+oqA@public.gmane.org> said:
>
>> Probably not, as my original need was to get Gnus started as fast as
>> possible, to execute message-mail in response to a click on a mailto
>> URL.
>
> Does not frobbing mail-user-agent, perhaps to gnus-user-agent or
> message-user-agent, do what you want?  I have it set to
> gnus-user-agent, but checking doc strings it looks like that may no
> longer be valid.  However, it does appear to do what I want when I run
> M-x compose-mail from a freshly started XEmacs.

I had tried this - it doesn't seem to invoke all of the Gnus "stuff"
like the gcc header, posting styles, etc etc. Not sure why.

As I said in another message, I'm no longer sure it's a big deal, but
thanks for the suggestion anyway.

Paul.
-- 
This signature intentionally left blank




^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: How do I tell if Gnus is running?
       [not found]             ` <y8mz9ncd.fsf-/E1597aS9LT10XsdtD+oqA@public.gmane.org>
@ 2004-06-09  7:38               ` Jochen Küpper
  0 siblings, 0 replies; 12+ messages in thread
From: Jochen Küpper @ 2004-06-09  7:38 UTC (permalink / raw)


Sorry to jump in late, forgive me if you tried it already:

What if you set mail-user-agent to gnus-user agent and then use
compose-mail to set up your message buffer?

Greetings,
Jochen
-- 
Einigkeit und Recht und Freiheit                http://www.Jochen-Kuepper.de
    Liberté, Égalité, Fraternité                GnuPG key: CC1B0B4D
        (Part 3 you find in my messages before fall 2003.)




^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2004-06-09  7:38 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-03 19:18 How do I tell if Gnus is running? Paul Moore
2004-06-04  2:07 ` Jesper Harder
2004-06-04 10:31   ` Paul Moore
2004-06-04 16:00 ` colin.rafferty
2004-06-05 15:19   ` Paul Moore
2004-06-06 10:01     ` Frank Schmitt
2004-06-06 20:18       ` Paul Moore
2004-06-06 15:12     ` Jonas Steverud
2004-06-06 20:22       ` Paul Moore
2004-06-07 14:34         ` David S Goldberg
2004-06-07 19:31           ` Paul Moore
     [not found]             ` <y8mz9ncd.fsf-/E1597aS9LT10XsdtD+oqA@public.gmane.org>
2004-06-09  7:38               ` Jochen Küpper

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).