From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thomas Hisch Newsgroups: gmane.emacs.help Subject: Re: setting compile-command Date: Thu, 28 Apr 2011 21:22:05 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1304108132 3739 80.91.229.12 (29 Apr 2011 20:15:32 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 29 Apr 2011 20:15:32 +0000 (UTC) Cc: Emacs help To: Andrea Crotti Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Apr 29 22:15:28 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 1QFu63-0005dS-Uc for geh-help-gnu-emacs@m.gmane.org; Fri, 29 Apr 2011 22:15:28 +0200 Original-Received: from localhost ([::1]:34460 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QFu63-0006Mo-Bd for geh-help-gnu-emacs@m.gmane.org; Fri, 29 Apr 2011 16:15:27 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:43246) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QFWmt-0005fQ-KN for help-gnu-emacs@gnu.org; Thu, 28 Apr 2011 15:22:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QFWms-0001o8-Ny for help-gnu-emacs@gnu.org; Thu, 28 Apr 2011 15:22:07 -0400 Original-Received: from mail-vw0-f41.google.com ([209.85.212.41]:36055) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QFWms-0001k0-Km for help-gnu-emacs@gnu.org; Thu, 28 Apr 2011 15:22:06 -0400 Original-Received: by vws4 with SMTP id 4so2985434vws.0 for ; Thu, 28 Apr 2011 12:22:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=skSuxJ4d0sGWVO2j5kpPvOv3DHKanm8ukiFMZ7AVWyQ=; b=ZoUTLbXwbXvwCUQb23s76+Se4Bpi5ebeoJc4BtWVAwnMQLDVDyc5Cemjl75NbsxAII Gqp40w32KxwEv/uX8jx1X7pU6X2QCcqZlF4+M38o7EITWbGVjICvQjoWsreXfhDAZFxU eplFWjIKZOojIL2toKq5MmC19fhnhGGpmIZ7I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=hjCbhc+VUuZwJ7d2+5H8Qpkg4qF0Nf1xjdl3ggDa9DKymX+IQfiJ6O7D/t3KOL0d4D /ODJvEaIZU2qqh59f0Sa4PAAlqLe1EbUoF7ryNaWgV50OstsRnFbXB3ZBZvNsZ03SJl2 /GzBTwl4KMmwD8kz0MoQzudqbSqsE8K9HGhnc= Original-Received: by 10.220.123.153 with SMTP id p25mr1165672vcr.10.1304018525489; Thu, 28 Apr 2011 12:22:05 -0700 (PDT) Original-Received: by 10.220.45.82 with HTTP; Thu, 28 Apr 2011 12:22:05 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.212.41 X-Mailman-Approved-At: Fri, 29 Apr 2011 16:15:06 -0400 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:80873 Archived-At: Thank you for the question! Coincidentally, I have the exact same problem and I look forward to the answers! Regards Thomas On Wed, Apr 27, 2011 at 5:49 PM, 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? > > -- > GNU Emacs 24.0.50.2 (x86_64-unknown-linux-gnu, GTK+ Version 2.22.0) > =C2=A0of 2011-04-22 on plaetekopp > >