[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
- How to pipe text or load a file directly into mail-mode?, Adam Funk, 2006/05/03
- Re: How to pipe text or load a file directly into mail-mode?, Ralf Fassel, 2006/05/03
- Re: How to pipe text or load a file directly into mail-mode?, Giorgos Keramidas, 2006/05/04
- Re: How to pipe text or load a file directly into mail-mode?, Ralf Fassel, 2006/05/04
- Re: How to pipe text or load a file directly into mail-mode?, Adam Funk, 2006/05/04
- Re: How to pipe text or load a file directly into mail-mode?, Giorgos Keramidas, 2006/05/04
- Re: How to pipe text or load a file directly into mail-mode?, Adam Funk, 2006/05/05
- Re: How to pipe text or load a file directly into mail-mode?, Giorgos Keramidas, 2006/05/05
- Re: How to pipe text or load a file directly into mail-mode?, Reiner Steib, 2006/05/05
- Re: How to pipe text or load a file directly into mail-mode?, Adam Funk, 2006/05/05
- Re: How to pipe text or load a file directly into mail-mode?, Ralf Fassel, 2006/05/05
- Re: How to pipe text or load a file directly into mail-mode?, John Sullivan, 2006/05/06