From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Giorgos Keramidas Newsgroups: gmane.emacs.help Subject: Re: How to pipe text or load a file directly into mail-mode? Date: Wed, 03 May 2006 17:26:32 +0300 Organization: SunSITE.dk - Supporting Open source Message-ID: <864q075gmf.fsf@gothmog.pc> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1146667338 12414 80.91.229.2 (3 May 2006 14:42:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 3 May 2006 14:42:18 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed May 03 16:42:17 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 1FbIX7-0005AC-85 for geh-help-gnu-emacs@m.gmane.org; Wed, 03 May 2006 16:40:53 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FbIX6-0006zP-Px for geh-help-gnu-emacs@m.gmane.org; Wed, 03 May 2006 10:40:52 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsfeed.berkeley.edu!ucberkeley!news.tele.dk!feed118.news.tele.dk!dotsrc.org!news.dotsrc.org!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (berkeley-unix) Cancel-Lock: sha1:nlA/c6tSLNSrECo3p5jCZZd/xLA= Original-Lines: 22 Original-NNTP-Posting-Host: 62.103.39.226 Original-X-Trace: news.sunsite.dk DXC=\07ZW42X7O\0Sc_VCmP]hZYSB=nbEKnk[YQN`IN^]KJ\L^MjW2:ak; I7eU]W6nT6d; jI9i_RkGRd4bR2lV Original-X-Complaints-To: staff@sunsite.dk Original-Xref: shelby.stanford.edu gnu.emacs.help:139149 Original-To: help-gnu-emacs@gnu.org 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:34772 Archived-At: On Wed, 3 May 2006 12:29:03 +0100, Adam Funk 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.