unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Angelo Graziosi <angelo.graziosi@alice.it>
Cc: ams@gnu.org, emacs-devel@gnu.org
Subject: Re: On compilation mode and friends
Date: Tue, 10 Jun 2008 20:26:19 +0300	[thread overview]
Message-ID: <ulk1djj5w.fsf@gnu.org> (raw)
In-Reply-To: <484E2B7D.7080002@alice.it>

> Date: Tue, 10 Jun 2008 09:21:33 +0200
> From: Angelo Graziosi <angelo.graziosi@alice.it>
> Cc: emacs-devel@gnu.org
> 
> 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	other threads:[~2008-06-10 17:26 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-08 10:41 On compilation mode and friends Angelo Graziosi
2008-06-08 10:43 ` Alfred M. Szmidt
2008-06-10  7:21   ` Angelo Graziosi
2008-06-10 17:26     ` Eli Zaretskii [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ulk1djj5w.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=ams@gnu.org \
    --cc=angelo.graziosi@alice.it \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).