all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Katsumi Yamaoka <yamaoka@jpl.org>
Subject: Re: start emacs in mail mode?
Date: Tue, 21 Feb 2006 16:32:35 +0900	[thread overview]
Message-ID: <b4mvev9f9po.fsf@jpl.org> (raw)
In-Reply-To: mailman.1015.1140504979.2856.help-gnu-emacs@gnu.org

>>>>> In <mailman.1015.1140504979.2856.help-gnu-emacs@gnu.org> 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.

> Any help appreciated.

emacs -f mail -eval '(goto-char (point-max))' --insert tempmail

If tempmail has headers and a separator,

emacs -f mail -eval '(erase-buffer)' --insert tempmail

       reply	other threads:[~2006-02-21  7:32 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.1015.1140504979.2856.help-gnu-emacs@gnu.org>
2006-02-21  7:32 ` Katsumi Yamaoka [this message]
2006-02-21 10:57   ` start emacs in mail mode? Thien-Thi Nguyen
2006-02-21 15:59   ` wdn
     [not found] <mailman.1011.1140499884.2856.help-gnu-emacs@gnu.org>
2006-02-21 16:21 ` Stefan Monnier
2006-02-21  0:02 wdn
2006-02-21 12:27 ` Reiner Steib
2006-02-21 16:23 ` Kevin Rodgers

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=b4mvev9f9po.fsf@jpl.org \
    --to=yamaoka@jpl.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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.