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: Giorgos Keramidas
Subject: Re: How to pipe text or load a file directly into mail-mode?
Date: Wed, 03 May 2006 17:26:32 +0300
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (berkeley-unix)

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.

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.



reply via email to

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