From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kai Grossjohann Newsgroups: gmane.emacs.help Subject: compile and the current directory Date: Fri, 16 Jan 2004 11:28:51 +0100 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <87isjcchlo.fsf@emptyhost.emptydomain.de> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1074249472 815 80.91.224.253 (16 Jan 2004 10:37:52 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 16 Jan 2004 10:37:52 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jan 16 11:37:48 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AhRMK-0007zd-00 for ; Fri, 16 Jan 2004 11:37:48 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AhRIT-0007I8-Cv for geh-help-gnu-emacs@m.gmane.org; Fri, 16 Jan 2004 05:33:49 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!headwall.stanford.edu!fu-berlin.de!uni-berlin.de!213-203-244-156.kunde.vdserver.DE!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 17 Original-NNTP-Posting-Host: 213-203-244-156.kunde.vdserver.de (213.203.244.156) Original-X-Trace: news.uni-berlin.de 1074248915 15873673 213.203.244.156 ([73968] 10430) User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.2 (gnu/linux) Cancel-Lock: sha1:f6fR+Jp8BSI/R4ov+89rZxlPZ30= Original-Xref: shelby.stanford.edu gnu.emacs.help:120153 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 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 Xref: main.gmane.org gmane.emacs.help:16096 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:16096 I have a project which contains a Makefile at its root directory. Running make for me means to change to that directory before running make. (Actually, I'm running another command, not make.) The problem with "just" running make from the current directory is that it is a different directory depending on the file I'm editing. Has somebody made something that would allow me to just invoke M-x compile RET from any directory and that makes sure that the command is invoked from the right directory, and that Emacs knows about it? (I could specify "make -C $HOME/work/foo" as the command if I was using make.) Kai