From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ken Goldman Newsgroups: gmane.emacs.help Subject: Re: setting compile-command Date: Sun, 08 May 2011 22:20:13 -0400 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1304907654 20790 80.91.229.12 (9 May 2011 02:20:54 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 9 May 2011 02:20:54 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon May 09 04:20:46 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 1QJG5Q-0004ps-CG for geh-help-gnu-emacs@m.gmane.org; Mon, 09 May 2011 04:20:40 +0200 Original-Received: from localhost ([::1]:42724 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QJG5P-0000bB-TI for geh-help-gnu-emacs@m.gmane.org; Sun, 08 May 2011 22:20:39 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:50890) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QJG5K-0000au-0n for help-gnu-emacs@gnu.org; Sun, 08 May 2011 22:20:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QJG5F-0004lp-Mp for help-gnu-emacs@gnu.org; Sun, 08 May 2011 22:20:33 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:40757) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QJG5F-0004lP-HC for help-gnu-emacs@gnu.org; Sun, 08 May 2011 22:20:29 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QJG5E-0004lI-CH for help-gnu-emacs@gnu.org; Mon, 09 May 2011 04:20:28 +0200 Original-Received: from 75-17-109-153.lightspeed.nrwlct.sbcglobal.net ([75.17.109.153]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 09 May 2011 04:20:28 +0200 Original-Received: from kgold by 75-17-109-153.lightspeed.nrwlct.sbcglobal.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 09 May 2011 04:20:28 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 17 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 75-17-109-153.lightspeed.nrwlct.sbcglobal.net User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110419 Red Hat/3.1.10-1.el6_0 Thunderbird/3.1.10 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 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:80951 Archived-At: I can offer a work around. After you compile once from the root directory, emacs will create a 'compile' frame. Keep that frame available and M-x compile from it. On 04/27/2011 11:49 AM, Andrea Crotti wrote: > 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? >