From: "Pascal J. Bourguignon" <pjb@informatimago.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Running Programs from Inside Emacs
Date: Thu, 17 Feb 2011 12:15:50 +0100 [thread overview]
Message-ID: <87r5b6vrmh.fsf@kuiper.lan.informatimago.com> (raw)
In-Reply-To: 73d0253a-5d33-461f-9d55-cc3102cd67cb@glegroupsg2000goo.googlegroups.com
haziz <hsaziz@gmail.com> writes:
> When using emacs for programming in C, I know how to compile programs from inside emacs using Mx compile to invoke make -k which then compiles using gcc (I am running Linux Mint on a desktop machine at home and also use Mac OS X on a laptop).
>
> I have so far been unable to figure out how to "run" the resulting binary from inside emacs. I would like to be able to then run the binary file from inside emacs. So far I have had to exit emacs returning to my bash shell to run the binary by for e.g. ./helloworld
For non-interactive programs you can run them after the compilation:
M-x compile RET C-e && ./helloword RET
> Is it possible to get a shell prompt inside emacs and run the file in a secondary buffer within emacs?
M-x shell RET
--
__Pascal Bourguignon__ http://www.informatimago.com/
A bad day in () is better than a good day in {}.
next prev parent reply other threads:[~2011-02-17 11:15 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-17 11:08 Running Programs from Inside Emacs haziz
2011-02-17 11:15 ` Pascal J. Bourguignon [this message]
2011-02-17 15:09 ` despen
2011-02-19 12:08 ` Oleksandr Gavenko
2011-02-19 12:25 ` Peter Dyballa
[not found] ` <mailman.4.1298117344.32106.help-gnu-emacs@gnu.org>
2011-02-19 12:28 ` Pascal J. Bourguignon
2011-02-19 15:48 ` despen
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87r5b6vrmh.fsf@kuiper.lan.informatimago.com \
--to=pjb@informatimago.com \
--cc=help-gnu-emacs@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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.