From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "N. Raghavendra" Newsgroups: gmane.emacs.help Subject: Re: compile/run a code from emacs Date: 19 Jul 2005 10:39:34 +0530 Organization: SunSITE.dk - Supporting Open source Message-ID: <86mzoj5qlt.fsf@unicorn.campus.hri> References: <42daa964_1@news.iprimus.com.au> <86ek9xw6az.fsf@unicorn.campus.hri> <42dbf648_1@news.iprimus.com.au> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1121750029 14400 80.91.229.2 (19 Jul 2005 05:13:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 19 Jul 2005 05:13:49 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jul 19 07:13:47 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DukPw-0008UA-Kn for geh-help-gnu-emacs@m.gmane.org; Tue, 19 Jul 2005 07:13:20 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DukRu-0008Kl-QB for geh-help-gnu-emacs@m.gmane.org; Tue, 19 Jul 2005 01:15:22 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!uninett.no!news.net.uni-c.dk!dotsrc.org!news.dotsrc.org!not-for-mail Original-Newsgroups: gnu.emacs.help X-Organization: Harish-Chandra Research Institute (HRI) X-Address: Chhatnag Road, Jhusi, Allahabad 211 019, India X-URL: http://www.mri.ernet.in/ X-Phone: +91 (532) 2667 509, 2667 318, 2667 578, 2567 746, 2567 747 X-Fax: +91 (532) 2667 576, 2567 748, 2567 444, 2568 036 X-OpenPGP-Key-ID: 0x03618806 X-OpenPGP-Key-Fingerprint: C75D D0AF 457E 7454 BEC2 37AD C6E1 0407 0361 8806 X-OpenPGP-Public-Key-Available-At: http://www.keyserver.net/ User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 Original-Lines: 37 Original-NNTP-Posting-Host: 202.41.87.100 Original-X-Trace: news.sunsite.dk DXC=_WAV7Oo3T_PlW2_Qa?Yk]^YSB=nbEKnk[?879THhZVS^ID5_U; QN1YS=JDn=l3B; k]ATKI?[mLM1[hGV>7]YX4k[K8bb 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:28004 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:28004 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) > > > when I put this line in my ~/.emacs and hit f5 I get "Mark set" in > the mini buffer It looks like the `f5' key has been bound in your setup to `set-mark-command'. According to `(elisp)Coding Conventions', "Function keys through without modifier keys are reserved for users to define." So the key should be unbound. Did you load the init file, or evaluate the key binding expression before trying the key? Raghavendra. -- N. Raghavendra | See message headers for contact Harish-Chandra Research Institute | and OpenPGP details.