From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Daniel" Newsgroups: gmane.emacs.help Subject: Re: Management C Project Files with Emacs? Date: 28 Mar 2007 17:00:19 -0700 Organization: http://groups.google.com Message-ID: <1175126419.543700.232830@p77g2000hsh.googlegroups.com> References: <1175109304.583467.65140@n59g2000hsh.googlegroups.com> <460af700$0$90268$14726298@news.sunsite.dk> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: sea.gmane.org 1175128760 13998 80.91.229.12 (29 Mar 2007 00:39:20 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 29 Mar 2007 00:39:20 +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 Mar 29 02:39:17 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HWifb-0003JE-Uc for geh-help-gnu-emacs@m.gmane.org; Thu, 29 Mar 2007 02:39:16 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HWii8-0007pn-3i for geh-help-gnu-emacs@m.gmane.org; Wed, 28 Mar 2007 19:41:52 -0500 Original-Path: shelby.stanford.edu!newshub.stanford.edu!postnews.google.com!p77g2000hsh.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 33 Original-NNTP-Posting-Host: 74.62.17.156 Original-X-Trace: posting.google.com 1175126421 8995 127.0.0.1 (29 Mar 2007 00:00:21 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 29 Mar 2007 00:00:21 +0000 (UTC) In-Reply-To: <460af700$0$90268$14726298@news.sunsite.dk> User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: p77g2000hsh.googlegroups.com; posting-host=74.62.17.156; posting-account=sSuG_Q0AAACBMwnT3Ej4aAinBHQ74NmN Original-Xref: shelby.stanford.edu gnu.emacs.help:146653 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:42258 Archived-At: On Mar 28, 4:15 pm, "Colin S. Miller" wrote: > Daniel wrote: > > Hi, > > > If I want to compile a large project like Linux Kernel, I don't know > > how I can use emacs. > > > 2. Whenever opening a file, it seems that emacs change current > > directory. So, I cannot simply type "M-x compile RET make". Is there > > anyway to have emacs to stick on specific directory? > > These easiest way to do this is to change the compile line to > > cd /path/to/src/ && make -f Makefile ALL > > HTH, > Colin S. Miller > > -- > Replace the obvious in my email address with the first three letters of the hostname to reply. Hi Colin, That is good idea. Moreover, I also find I could make it this: M-x make RET make -C /usr/src/linux RET Above make option indicates the root directory for the make no matter where I am in. Thank you guys, it was helpful to me.