From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Adam Funk Newsgroups: gmane.emacs.help Subject: Re: How to pipe text or load a file directly into mail-mode? Date: Tue, 9 May 2006 15:16:44 +0100 Message-ID: References: NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1147185704 893 80.91.229.2 (9 May 2006 14:41:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 9 May 2006 14:41:44 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue May 09 16:41:33 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FdTNu-0007h4-2B for geh-help-gnu-emacs@m.gmane.org; Tue, 09 May 2006 16:40:22 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FdTNt-0003I0-Kb for geh-help-gnu-emacs@m.gmane.org; Tue, 09 May 2006 10:40:21 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: comp.emacs,gnu.emacs.help Original-Lines: 19 Original-X-Trace: individual.net A0RgV96IITtTd4+1iY5v1ggh5SWZXB0sZfIsxDlXFOoTxJrVSG X-Orig-Path: news.ducksburg.com!news User-Agent: slrn/0.9.8.1pl1 (Debian) Original-Xref: shelby.stanford.edu comp.emacs:92133 gnu.emacs.help:139309 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:34932 Archived-At: On 2006-05-09, Ralf Fassel wrote: > * Adam Funk >| $status = system('emacs', '-nw', $edit_file, '-f', ' mail-mode'); > ---- >| and "Symbol's function definition is void: \ mail-mode" in the > > Get rid of the leading space in the last argument of the system() > invocation: > ' mail-mode' >=> > 'mail-mode' I think I have just one more question! Any idea why the expand-mail-aliases command isn't available when emacs opens the file and goes into mail-mode? The aliases get expanded when the mail is sent with C-c C-c, but it's impossible to check them before that point.