From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.help Subject: Re: start emacs in mail mode? Date: Tue, 21 Feb 2006 09:23:41 -0700 Message-ID: References: <3041575.post@talk.nabble.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1140573731 22429 80.91.229.2 (22 Feb 2006 02:02:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 22 Feb 2006 02:02:11 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Feb 22 03:02:08 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 1FBjKQ-00040j-Nd for geh-help-gnu-emacs@m.gmane.org; Wed, 22 Feb 2006 03:02:07 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FBjKP-0007He-0D for geh-help-gnu-emacs@m.gmane.org; Tue, 21 Feb 2006 21:02:05 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FBbIP-0004Sd-4m for help-gnu-emacs@gnu.org; Tue, 21 Feb 2006 12:27:29 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FBbDM-0003K7-27 for help-gnu-emacs@gnu.org; Tue, 21 Feb 2006 12:22:26 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FBaQR-0001lx-Di for help-gnu-emacs@gnu.org; Tue, 21 Feb 2006 11:31:43 -0500 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1FBaWj-0006Cj-Cu for help-gnu-emacs@gnu.org; Tue, 21 Feb 2006 11:38:13 -0500 Original-Received: from root by ciao.gmane.org with local (Exim 4.43) id 1FBaPW-0006nq-3m for help-gnu-emacs@gnu.org; Tue, 21 Feb 2006 17:30:46 +0100 Original-Received: from 207.167.42.60 ([207.167.42.60]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 21 Feb 2006 17:30:46 +0100 Original-Received: from ihs_4664 by 207.167.42.60 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 21 Feb 2006 17:30:46 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: help-gnu-emacs@gnu.org Original-Lines: 18 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 207.167.42.60 User-Agent: Mozilla Thunderbird 0.9 (X11/20041105) X-Accept-Language: en-us, en In-Reply-To: <3041575.post@talk.nabble.com> 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:33343 Archived-At: wdn wrote: > I would like to open emacs in mail-mode on a preformated mail message, ready > to edit as necessary and then send. (This is from a perl script that > gathers the necessary data for the email and composes a draft of the email > to potential authors of a journal I edit.) > > My only idea was to try "emacs -f mail-mode tempmail" > > It does not do it. It opens the file tempmail in one buffer and starts > mail-mode in a separate background buffer. So I still have to do "M-x > mail-mode" and then respond to a prompt whether I really want to send the > current buffer when I try to send the email. Action arguments and options are processed in order, so: emacs tempmail -f mail-mode -- Kevin Rodgers