all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* start emacs in mail mode?
@ 2006-02-21  0:02 wdn
  2006-02-21 12:27 ` Reiner Steib
  2006-02-21 16:23 ` Kevin Rodgers
  0 siblings, 2 replies; 7+ messages in thread
From: wdn @ 2006-02-21  0:02 UTC (permalink / raw)



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.

--wdn
--
View this message in context: http://www.nabble.com/start-emacs-in-mail-mode--t1158821.html#a3041575
Sent from the Emacs - Help forum at Nabble.com.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: start emacs in mail mode?
       [not found] <mailman.1015.1140504979.2856.help-gnu-emacs@gnu.org>
@ 2006-02-21  7:32 ` Katsumi Yamaoka
  2006-02-21 10:57   ` Thien-Thi Nguyen
  2006-02-21 15:59   ` wdn
  0 siblings, 2 replies; 7+ messages in thread
From: Katsumi Yamaoka @ 2006-02-21  7:32 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: start emacs in mail mode?
  2006-02-21  7:32 ` Katsumi Yamaoka
@ 2006-02-21 10:57   ` Thien-Thi Nguyen
  2006-02-21 15:59   ` wdn
  1 sibling, 0 replies; 7+ messages in thread
From: Thien-Thi Nguyen @ 2006-02-21 10:57 UTC (permalink / raw)


Katsumi Yamaoka <yamaoka@jpl.org> writes:

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

here is an equivalent invocation:

  emacs -f mail -f mail-text --insert tempmail

thi

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: start emacs in mail mode?
  2006-02-21  0:02 start emacs in mail mode? wdn
@ 2006-02-21 12:27 ` Reiner Steib
  2006-02-21 16:23 ` Kevin Rodgers
  1 sibling, 0 replies; 7+ messages in thread
From: Reiner Steib @ 2006-02-21 12:27 UTC (permalink / raw)


On Tue, Feb 21 2006, wdn wrote:

> My only idea was to try "emacs -f mail-mode tempmail" 

"emacs tempmail -f mail-mode"?

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: start emacs in mail mode?
  2006-02-21  7:32 ` Katsumi Yamaoka
  2006-02-21 10:57   ` Thien-Thi Nguyen
@ 2006-02-21 15:59   ` wdn
  1 sibling, 0 replies; 7+ messages in thread
From: wdn @ 2006-02-21 15:59 UTC (permalink / raw)



Perfect!  Thank-you
--
View this message in context: http://www.nabble.com/start-emacs-in-mail-mode--t1158821.html#a3052474
Sent from the Emacs - Help forum at Nabble.com.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: start emacs in mail mode?
       [not found] <mailman.1011.1140499884.2856.help-gnu-emacs@gnu.org>
@ 2006-02-21 16:21 ` Stefan Monnier
  0 siblings, 0 replies; 7+ messages in thread
From: Stefan Monnier @ 2006-02-21 16:21 UTC (permalink / raw)


> 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" 

Try "emacs tempmail -f mail-mode"


-- Stefan

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: start emacs in mail mode?
  2006-02-21  0:02 start emacs in mail mode? wdn
  2006-02-21 12:27 ` Reiner Steib
@ 2006-02-21 16:23 ` Kevin Rodgers
  1 sibling, 0 replies; 7+ messages in thread
From: Kevin Rodgers @ 2006-02-21 16:23 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2006-02-21 16:23 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-21  0:02 start emacs in mail mode? wdn
2006-02-21 12:27 ` Reiner Steib
2006-02-21 16:23 ` Kevin Rodgers
     [not found] <mailman.1015.1140504979.2856.help-gnu-emacs@gnu.org>
2006-02-21  7:32 ` Katsumi Yamaoka
2006-02-21 10:57   ` 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

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.