Gnus development mailing list
 help / color / mirror / Atom feed
From: Rob Browning <rlb@cs.utexas.edu>
Subject: Re: Use Gcc whenever message-mail is called
Date: 14 Nov 1999 21:34:52 -0600	[thread overview]
Message-ID: <87yac077hf.fsf@raven.localnet> (raw)
In-Reply-To: Lars Magne Ingebrigtsen's message of "06 Nov 1999 04:57:38 +0100"

Lars Magne Ingebrigtsen <larsi@gnus.org> writes:

> This is weird.  That hook seems to be run by all the message-*
> commands.  Are you sure?

To fully unify Gnus and message-mode (so I'd get my gnus
customizations no matter how I entered message mode -- i.e. even via
C-x m), I did the following in my *emacs* startup file, not my gnus
file.  This makes sure that gnus is always alive when using
message-mode.

  (require 'message)
  (require 'gnus-msg)

  (define-mail-user-agent 'gnus-user-agent
    'gnus-mail 'message-send-and-exit
    'message-kill-buffer 'message-send-hook)

  (defun gnus-mail (&rest args)
    "Start editing a mail message to be sent gnus style.
  Use message mode as the underlying agent."
    (unless (and (fboundp 'gnus-alive-p) (gnus-alive-p))
      (gnus-no-server)
      (gnus-group-suspend))
    (gnus-setup-message 'message (apply 'message-mail args)))

  (setq mail-user-agent 'gnus-user-agent)

-- 
Rob Browning <rlb@cs.utexas.edu> PGP=E80E0D04F521A094 532B97F5D64E3930


      reply	other threads:[~1999-11-15  3:34 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-10-06 16:46 Jack Vinson
1999-11-06  3:57 ` Lars Magne Ingebrigtsen
1999-11-15  3:34   ` Rob Browning [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87yac077hf.fsf@raven.localnet \
    --to=rlb@cs.utexas.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).