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: Paul Lalli
Subject: Re: How to pipe text or load a file directly into mail-mode?
Date: 4 May 2006 10:13:41 -0700
User-agent: G2/0.2

Adam Funk wrote:

>    my $status = system('emacs', '-nw', $temp_file, '-f mail-mode');
>
> Emacs produces this error:
>
>    standard input is not a tty

I have no idea what that error message means as far as emacs is
concerned, but your Perl system() command is wrong.  That command is
calling the executable "emacs" with three arguments:  '-nw',
$temp_file, and '-f mail-mode'.  That last one is the problem.  This is
no different than if you had called emacs on the command line,
surrounding '-f mail-mode' in quotes.  You need -f and mail-mode to be
two separate arguments, not one argument:

my $status = system('emacs', '-nw', $temp_file, '-f', 'mail-mode');

Paul Lalli



reply via email to

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