Gnus development mailing list
 help / color / mirror / Atom feed
From: Rob Browning <rlb@cs.utexas.edu>
Cc: ding@gnus.org
Subject: Re: C-x m versus m in Gnus
Date: 25 Jan 2001 18:58:30 -0600	[thread overview]
Message-ID: <87zogfgmdl.fsf@raven.localnet> (raw)
In-Reply-To: <uely4q4ux.fsf@clients.ie>

Ian Swainson <ian.swainson@clients.ie> writes:

> Thanks Kai. This works great if I C-x m after having started Gnus (I
> could start it and then q it too), but if I start Emacs and then do
> C-x m (without having already started Gnus) I get an error as
> follows:
> 
> Symbol's function definition is void: nil 
> 
> Any ideas?

I had the same problem, and after mucking around in the source for a
while, I came up with this solution, though I'm not sure what parts of
it, if any, have been superceeded by 5.8.8.  If anyone notices I'm
doing the wrong thing(TM), here, please let me know.

  (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)


Hope this helps.

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



  reply	other threads:[~2001-01-26  0:58 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-01-15 12:07 Ian Swainson
2001-01-15 12:39 ` Kai Großjohann
2001-01-15 14:15   ` Ian Swainson
2001-01-26  0:58     ` Rob Browning [this message]
2001-01-27  5:17       ` ShengHuo ZHU
2001-01-26 14:26     ` Harry Putnam
2001-01-26 16:00       ` Paul Jarc
2001-01-26 23:17         ` Harry Putnam
2001-01-26 23:29           ` Paul Jarc
2001-01-27  5:19       ` ShengHuo ZHU
2001-01-27 18:23         ` C-x m versus m in Gnus [manual versions] Harry Putnam

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=87zogfgmdl.fsf@raven.localnet \
    --to=rlb@cs.utexas.edu \
    --cc=ding@gnus.org \
    /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).