From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Baloff Newsgroups: gmane.emacs.help Subject: Re: compile/run a code from emacs Date: Wed, 20 Jul 2005 06:14:55 -0700 Organization: iPrimus Customer - reports relating to abuse should be sent to abuse@iprimus.com.au Message-ID: <42dd5c84$1_1@news.iprimus.com.au> References: <42daa964_1@news.iprimus.com.au> <86ek9xw6az.fsf@unicorn.campus.hri> <42dbf648_1@news.iprimus.com.au> <86mzoj5qlt.fsf@unicorn.campus.hri> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1121803855 15082 80.91.229.2 (19 Jul 2005 20:10:55 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 19 Jul 2005 20:10:55 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jul 19 22:10:47 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DuyPN-0007Js-UF for geh-help-gnu-emacs@m.gmane.org; Tue, 19 Jul 2005 22:09:42 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DuyRN-0004za-OV for geh-help-gnu-emacs@m.gmane.org; Tue, 19 Jul 2005 16:11:45 -0400 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: en-us, en Original-Newsgroups: gnu.emacs.help In-Reply-To: <86mzoj5qlt.fsf@unicorn.campus.hri> X-Original-NNTP-Posting-Host: 210.50.52.20 X-Original-NNTP-Posting-Host: 127.0.0.1 Original-Lines: 38 Original-NNTP-Posting-Host: 203.134.67.67 Original-X-Trace: 1121803397 un-2park-reader-02.sydney.pipenetworks.com.au 795 203.134.67.67:4774 Original-X-Complaints-To: Abuse, including message IDs to abuse@pipenetworks.com Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.kjsl.com!news.spies.com!newsfeed-3001.bay.webtv.net!news.moat.net!quokka.wn.com.au!token.pipenetworks.com!218.100.2.58.MISMATCH!not-for-mail Original-Xref: shelby.stanford.edu gnu.emacs.help:132506 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:28020 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:28020 N. Raghavendra wrote: > At 2005-07-19T04:46:28-07:00, Baloff wrote: > > >>N. Raghavendra wrote: > > >>>In your source files, specify the value of the variable >>>`compile-command' like this: >>>/* * Local Variables: >>> * mode: c >>> * compile-command: "make && ./project1" >>> * End: >>> */ >>> >> >>do you mean to put the above 4 lines in my c++ code but with out the >>/*, *, */? since they are for commenting? > > > The local variables section should be commented, since it is not part > of your source code. So, do not remove the comment delimiters. > > >>>(global-set-key [f5] 'compile) >>> ok, it works, I put the commented code in my source file and hit f5, it asked to save main.cpp and it then opened another buffer window and compiled it, but did not run the program. my line in the commented section is *compile-command: "make && ./proj1" since proj1 is the target I have in my makefile > > Raghavendra. >