From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/34399 Path: main.gmane.org!not-for-mail From: Rob Browning Newsgroups: gmane.emacs.gnus.general Subject: Re: C-x m versus m in Gnus Date: 25 Jan 2001 18:58:30 -0600 Sender: owner-ding@hpc.uh.edu Message-ID: <87zogfgmdl.fsf@raven.localnet> References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035170333 30200 80.91.224.250 (21 Oct 2002 03:18:53 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 03:18:53 +0000 (UTC) Cc: ding@gnus.org Return-Path: Original-Received: from karazm.math.uh.edu (karazm.math.uh.edu [129.7.128.1]) by mailhost.sclp.com (Postfix) with ESMTP id 5238BD049D for ; Thu, 25 Jan 2001 20:00:05 -0500 (EST) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by karazm.math.uh.edu (8.9.3/8.9.3) with ESMTP id SAC11059; Thu, 25 Jan 2001 18:59:45 -0600 (CST) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Thu, 25 Jan 2001 18:58:58 -0600 (CST) Original-Received: from mailhost.sclp.com (postfix@66-209.196.61.interliant.com [209.196.61.66] (may be forged)) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id SAA07434 for ; Thu, 25 Jan 2001 18:58:46 -0600 (CST) Original-Received: from dsl-198-92-137-161.constant.com (dsl-198-92-137-161.constant.com [198.92.137.161]) by mailhost.sclp.com (Postfix) with ESMTP id 91BB8D049D for ; Thu, 25 Jan 2001 19:58:49 -0500 (EST) Original-Received: from raven.localnet (raven.localnet [192.168.1.7]) by dsl-198-92-137-161.constant.com (Postfix) with ESMTP id E39A417DD3; Thu, 25 Jan 2001 18:58:40 -0600 (CST) Original-Received: by raven.localnet (Postfix, from userid 1000) id 708F514327; Thu, 25 Jan 2001 18:58:30 -0600 (CST) Original-To: Ian Swainson In-Reply-To: User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 Precedence: list X-Majordomo: 1.94.jlt7 Original-Lines: 38 Xref: main.gmane.org gmane.emacs.gnus.general:34399 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:34399 Ian Swainson 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 PGP=E80E0D04F521A094 532B97F5D64E3930