help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to pipe text or load a file directly into mail-mode?


From: Adam Funk
Subject: Re: How to pipe text or load a file directly into mail-mode?
Date: Wed, 3 May 2006 16:05:54 +0100
User-agent: slrn/0.9.8.1pl1 (Debian)

On 2006-05-03, Giorgos Keramidas <keramida@ceid.upatras.gr> wrote:
> On Wed, 3 May 2006 12:29:03 +0100, Adam Funk <a24061@yahoo.com> wrote:
>> I'd like the output of a Perl program to end up in an Emacs mail-mode
>> buffer, ready to proofread, edit and then send with C-c C-c.  I don't
>> mind whether my program
>>
>> 1. pipes the output to an emacs command, or
>>
>> 2. saves the output in a temp file and opens it with an emacs command.

I forgot to make something clear: emacs is *not* running when the Perl
program starts.  The Perl program generates the unedited message and
then launches emacs.

> One way to do this is:
>
>     - Start composing your message
>
>     - Then use:
>
>         C-u M-x shell-command RET perl /foo/script.pl RET
>
>       to run the Perl script.
>
> This should put the output of the script in the mail buffer, starting at
> the point location.

On the other hand, I'll see if I can do it this way.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]