From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andrea Crotti Newsgroups: gmane.emacs.help Subject: setting compile-command Date: Wed, 27 Apr 2011 17:49:46 +0200 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7BIT X-Trace: dough.gmane.org 1303919401 15982 80.91.229.12 (27 Apr 2011 15:50:01 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 27 Apr 2011 15:50:01 +0000 (UTC) To: Emacs help Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Apr 27 17:49:57 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QF701-0004c1-9s for geh-help-gnu-emacs@m.gmane.org; Wed, 27 Apr 2011 17:49:57 +0200 Original-Received: from localhost ([::1]:34153 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QF700-0002az-DX for geh-help-gnu-emacs@m.gmane.org; Wed, 27 Apr 2011 11:49:56 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:45530) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QF6zu-0002at-AV for help-gnu-emacs@gnu.org; Wed, 27 Apr 2011 11:49:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QF6zt-0003fa-Ce for help-gnu-emacs@gnu.org; Wed, 27 Apr 2011 11:49:50 -0400 Original-Received: from mta-2.ms.rz.rwth-aachen.de ([134.130.7.73]:51618) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QF6zt-0003fQ-7p for help-gnu-emacs@gnu.org; Wed, 27 Apr 2011 11:49:49 -0400 Original-Received: from ironport-out-1.rz.rwth-aachen.de ([134.130.5.40]) by mta-2.ms.rz.RWTH-Aachen.de (Sun Java(tm) System Messaging Server 6.3-7.04 (built Sep 26 2008)) with ESMTP id <0LKB000DCIMYJO60@mta-2.ms.rz.RWTH-Aachen.de> for help-gnu-emacs@gnu.org; Wed, 27 Apr 2011 17:49:46 +0200 (CEST) X-IronPort-AV: E=Sophos;i="4.64,274,1301868000"; d="scan'208";a="108867895" Original-Received: from relay-2.ms.rz.rwth-aachen.de (HELO relay.rwth-aachen.de) ([134.130.7.75]) by ironport-in-1.rz.rwth-aachen.de with ESMTP; Wed, 27 Apr 2011 17:49:46 +0200 Original-Received: from plaetekopp (plaetekopp.informatik.RWTH-Aachen.DE [137.226.59.97]) by relay.rwth-aachen.de (8.14.4+Sun/8.13.8/1) with ESMTP id p3RFnkHu025039 for ; Wed, 27 Apr 2011 17:49:46 +0200 (CEST) Original-Received: from crotti by plaetekopp with local (Exim 4.72) (envelope-from ) id 1QF6zq-0006GA-AM for help-gnu-emacs@gnu.org; Wed, 27 Apr 2011 17:49:46 +0200 User-Agent: Gnus/5.110016 (No Gnus v0.16) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 134.130.7.73 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:80858 Archived-At: It would be nice to set the compile-command for every project with dir-local variables. The problem is that the compile-command should be run from the root directory of the project, but apparently it doesn't work like that automatically and the "make" is run from the current position. I ended up with something like "cd $PROJ_DIR && make" but I believe that there must be a better way to do that, am I right? -- GNU Emacs 24.0.50.2 (x86_64-unknown-linux-gnu, GTK+ Version 2.22.0) of 2011-04-22 on plaetekopp