From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dvorak Hemialgia Newsgroups: gmane.emacs.help Subject: Re: Emacs users a dying breed? Date: Wed, 20 Jun 2012 22:23:15 -0700 Organization: A noiseless patient Spider Message-ID: <87vcilw858.fsf@carbomb.basho.net> References: <1339986746.80168.YahooMailNeo@web161603.mail.bf1.yahoo.com> <871ulch282.fsf@kuiper.lan.informatimago.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1340256314 26171 80.91.229.3 (21 Jun 2012 05:25:14 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 21 Jun 2012 05:25:14 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jun 21 07:25:13 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ShZtH-0007gk-W4 for geh-help-gnu-emacs@m.gmane.org; Thu, 21 Jun 2012 07:25:12 +0200 Original-Received: from localhost ([::1]:33477 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ShZtH-0002p9-L8 for geh-help-gnu-emacs@m.gmane.org; Thu, 21 Jun 2012 01:25:11 -0400 Original-Path: usenet.stanford.edu!news.glorb.com!feeder.erje.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 19 Injection-Info: mx04.eternal-september.org; posting-host="PRNlAfEGOaEr3uOrVmdb9A"; logging-data="14165"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19f9FsmkOk80ogrrJM3gOSPCYRHSKio7a4=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) Cancel-Lock: sha1:P36wXjytklEAi8V+4NziVnp37QY= sha1:8r2KAL8rjbDpOyUBjhi5EeZacMU= Original-Xref: usenet.stanford.edu gnu.emacs.help:192944 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:85340 Archived-At: "Pascal J. Bourguignon" writes: > Assuming you have the current buffer pgm.c, > you just type M-x compile RET pgm RET > > M-x compile RET will present you a minibuffer with "make -k " in it. > Typing pgm RET will make it run: make -k pgm > Since you probably don't have a Makefile in the same directory as pgm.c, > the default rules will be used, so pgm will be built from pgm.c using > the C compiler. > > If your program doesn't take any stdin input, you can even run it at the > same time: M-x compile RET pgm && ./pgm RET Wow, Pascal, this is becoming very useful to me as I learn C. Thank you for sharing. I'll have to read up on how to do this with Java code, which would have saved me a lot of time over the last couple semesters. dkh.