emacs-devel
[Top][All Lists]
Advanced

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

Re: On compilation mode and friends


From: Eli Zaretskii
Subject: Re: On compilation mode and friends
Date: Tue, 10 Jun 2008 20:26:19 +0300

> Date: Tue, 10 Jun 2008 09:21:33 +0200
> From: Angelo Graziosi <address@hidden>
> Cc: address@hidden
> 
> Alfred M. Szmidt ha scritto:
> > Tried using shell-command (bound to M-!)?
> 
> This isn't exactly what I asked for.
> 
> Your suggestion could be OK in case of applications which do not require 
> introducing input.
> 
> Suppose the program is
> 
> $ cat hello.F95
> program hello
>    implicit none
>    integer :: i
>    print *, 'i = '
>    read *,i
>    print *,i
>    print *,'Hello World!'
> end program hello
> 
> then
> 
> M-! ./hello
> 
> fails printing:
> 
> At line 5 of file hello.F95 (unit = 5, file = 'stdin')
> Fortran runtime error: End of file
>   i =

I think you want "M-x shell RET" or "M-x term RET", and then run the
program as if from the shell prompt.




reply via email to

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