GNU bug report logs - #9323
M-x compile does not work well with make -s

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: minor; Reported by: Reuben Thomas <rrt@HIDDEN>; dated Thu, 18 Aug 2011 18:40:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Severity set to 'minor' from 'normal' Request was from Glenn Morris <rgm@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Changed bug title to 'M-x compile does not work well with make -s' from 'Non-recursive make build systems and M-x compile' Request was from Glenn Morris <rgm@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 9323 <at> debbugs.gnu.org:


Received: (at 9323) by debbugs.gnu.org; 20 Aug 2011 12:59:42 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Aug 20 08:59:42 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Qul9I-0007Y4-RE
	for submit <at> debbugs.gnu.org; Sat, 20 Aug 2011 08:59:42 -0400
Received: from mail-out.m-online.net ([212.18.0.10])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <whitebox@HIDDEN>) id 1Qul9C-0007Xs-RL
	for 9323 <at> debbugs.gnu.org; Sat, 20 Aug 2011 08:59:37 -0400
Received: from frontend1.mail.m-online.net (frontend1.mail.intern.m-online.net
	[192.168.8.180])
	by mail-out.m-online.net (Postfix) with ESMTP id 9D04D188B59A;
	Sat, 20 Aug 2011 14:57:22 +0200 (CEST)
Received: from localhost (dynscan1.mnet-online.de [192.168.8.164])
	by mail.m-online.net (Postfix) with ESMTP id 6DE711C00125;
	Sat, 20 Aug 2011 14:57:22 +0200 (CEST)
X-Virus-Scanned: amavisd-new at mnet-online.de
Received: from mail.mnet-online.de ([192.168.8.180])
	by localhost (dynscan1.mail.m-online.net [192.168.8.164]) (amavisd-new,
	port 10024)
	with ESMTP id z8TCMq8Z7BN2; Sat, 20 Aug 2011 14:57:22 +0200 (CEST)
Received: from igel.home (ppp-88-217-114-218.dynamic.mnet-online.de
	[88.217.114.218]) by mail.mnet-online.de (Postfix) with ESMTP;
	Sat, 20 Aug 2011 14:57:21 +0200 (CEST)
Received: by igel.home (Postfix, from userid 501)
	id 18060CA293; Sat, 20 Aug 2011 14:57:20 +0200 (CEST)
From: Andreas Schwab <schwab@HIDDEN>
To: Reuben Thomas <rrt@HIDDEN>
Subject: Re: bug#9323: Non-recursive make build systems and M-x compile
References: <CAOnWdogEPHNmFfCWtZ2_xOc9mYwKqXUq0pQ4qtF9MDQ1b6N73w@HIDDEN>
	<jwvvctut798.fsf-monnier+emacs@HIDDEN>
	<CAOnWdogu9czhWLXWOhqtyYMTTNxYWHjDTBNzWPGBiu5Ryk9=uA@HIDDEN>
	<m3hb5d34ej.fsf@HIDDEN>
	<CAOnWdoh_Wr=DQWgWdWyePb=naRvbEybFh5zf6WvzNZmYZ+nNcw@HIDDEN>
	<m24o1db2vn.fsf@HIDDEN>
	<CAOnWdoj1UiPPcPR6DQ1ErNSrELbnyqzkWc2zdU+OKEGuqPC57Q@HIDDEN>
	<m2vctt9dy9.fsf@HIDDEN>
	<CAOnWdoivoS-SzGriLi5Fn7nRO5XVha+vxY266udatnFa6kPXKw@HIDDEN>
X-Yow: World War Three can be averted by adherence to a strictly enforced
	dress code!
Date: Sat, 20 Aug 2011 14:57:20 +0200
In-Reply-To: <CAOnWdoivoS-SzGriLi5Fn7nRO5XVha+vxY266udatnFa6kPXKw@HIDDEN>
	(Reuben Thomas's message of "Sat, 20 Aug 2011 06:20:57 +0100")
Message-ID: <m27h68p7f3.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Spam-Score: -2.6 (--)
X-Debbugs-Envelope-To: 9323
Cc: 9323 <at> debbugs.gnu.org, Stefan Monnier <monnier@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -2.6 (--)

Emacs should perhaps put MAKEFLAGS=w in the environment.

Andreas.

-- 
Andreas Schwab, schwab@HIDDEN
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#9323; Package emacs. Full text available.

Message received at 9323 <at> debbugs.gnu.org:


Received: (at 9323) by debbugs.gnu.org; 20 Aug 2011 05:23:11 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Aug 20 01:23:11 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Que1W-0002iI-9n
	for submit <at> debbugs.gnu.org; Sat, 20 Aug 2011 01:23:11 -0400
Received: from exprod7og113.obsmtp.com ([64.18.2.179])
	by debbugs.gnu.org with smtp (Exim 4.69)
	(envelope-from <rrt@HIDDEN>) id 1Que1T-0002iA-UM
	for 9323 <at> debbugs.gnu.org; Sat, 20 Aug 2011 01:23:08 -0400
Received: from mail-pz0-f43.google.com ([209.85.210.43]) (using TLSv1) by
	exprod7ob113.postini.com ([64.18.6.12]) with SMTP
	ID DSNKTk9EOp12O+e1ZIotJ5hIG/64roYloFTm@HIDDEN;
	Fri, 19 Aug 2011 22:20:59 PDT
Received: by pzk1 with SMTP id 1so8458856pzk.30
	for <9323 <at> debbugs.gnu.org>; Fri, 19 Aug 2011 22:20:57 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.143.93.4 with SMTP id v4mr106344wfl.389.1313817657762; Fri, 19
	Aug 2011 22:20:57 -0700 (PDT)
Received: by 10.143.99.9 with HTTP; Fri, 19 Aug 2011 22:20:57 -0700 (PDT)
In-Reply-To: <m2vctt9dy9.fsf@HIDDEN>
References: <CAOnWdogEPHNmFfCWtZ2_xOc9mYwKqXUq0pQ4qtF9MDQ1b6N73w@HIDDEN>
	<jwvvctut798.fsf-monnier+emacs@HIDDEN>
	<CAOnWdogu9czhWLXWOhqtyYMTTNxYWHjDTBNzWPGBiu5Ryk9=uA@HIDDEN>
	<m3hb5d34ej.fsf@HIDDEN>
	<CAOnWdoh_Wr=DQWgWdWyePb=naRvbEybFh5zf6WvzNZmYZ+nNcw@HIDDEN>
	<m24o1db2vn.fsf@HIDDEN>
	<CAOnWdoj1UiPPcPR6DQ1ErNSrELbnyqzkWc2zdU+OKEGuqPC57Q@HIDDEN>
	<m2vctt9dy9.fsf@HIDDEN>
Date: Sat, 20 Aug 2011 06:20:57 +0100
Message-ID: <CAOnWdoivoS-SzGriLi5Fn7nRO5XVha+vxY266udatnFa6kPXKw@HIDDEN>
Subject: Re: bug#9323: Non-recursive make build systems and M-x compile
From: Reuben Thomas <rrt@HIDDEN>
To: Andreas Schwab <schwab@HIDDEN>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -6.4 (------)
X-Debbugs-Envelope-To: 9323
Cc: 9323 <at> debbugs.gnu.org, Stefan Monnier <monnier@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.4 (------)

On 20 August 2011 00:30, Andreas Schwab <schwab@HIDDEN> wrote:
> Reuben Thomas <rrt@HIDDEN> writes:
>
>> Note that it has set default-directory to the directory of main.c, not
>> its parent.
>
> It doesn't matter. =A0Emacs will see the directory in the entering
> message and adjust:
>
> make: Entering directory `/home/rrt/Software/zile-stable'

I used -s as an argument to make (I am sorry, I see I didn't mention
this), and in this case make does not produce those messages. Hence,
"cd ..; make -k -s" works, but "make -C .. -k -s" doesn't.

So, it still seems worth documenting Emacs's ability to work around
this problem by parsing "cd ..".

--=20
http://rrt.sc3d.org




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#9323; Package emacs. Full text available.

Message received at 9323 <at> debbugs.gnu.org:


Received: (at 9323) by debbugs.gnu.org; 19 Aug 2011 23:32:51 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Aug 19 19:32:51 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1QuYYV-0004mq-AD
	for submit <at> debbugs.gnu.org; Fri, 19 Aug 2011 19:32:51 -0400
Received: from mail-out.m-online.net ([212.18.0.10])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <whitebox@HIDDEN>) id 1QuYYS-0004mj-Uf
	for 9323 <at> debbugs.gnu.org; Fri, 19 Aug 2011 19:32:50 -0400
Received: from frontend1.mail.m-online.net (frontend1.mail.intern.m-online.net
	[192.168.8.180])
	by mail-out.m-online.net (Postfix) with ESMTP id A3D05188B580;
	Sat, 20 Aug 2011 01:30:40 +0200 (CEST)
Received: from localhost (dynscan1.mnet-online.de [192.168.8.164])
	by mail.m-online.net (Postfix) with ESMTP id C48451C00043;
	Sat, 20 Aug 2011 01:30:40 +0200 (CEST)
X-Virus-Scanned: amavisd-new at mnet-online.de
Received: from mail.mnet-online.de ([192.168.8.180])
	by localhost (dynscan1.mail.m-online.net [192.168.8.164]) (amavisd-new,
	port 10024)
	with ESMTP id RatQZGiFyqZE; Sat, 20 Aug 2011 01:30:39 +0200 (CEST)
Received: from igel.home (ppp-88-217-103-7.dynamic.mnet-online.de
	[88.217.103.7]) by mail.mnet-online.de (Postfix) with ESMTP;
	Sat, 20 Aug 2011 01:30:39 +0200 (CEST)
Received: by igel.home (Postfix, from userid 501)
	id 2B8DECA293; Sat, 20 Aug 2011 01:30:39 +0200 (CEST)
From: Andreas Schwab <schwab@HIDDEN>
To: Reuben Thomas <rrt@HIDDEN>
Subject: Re: bug#9323: Non-recursive make build systems and M-x compile
References: <CAOnWdogEPHNmFfCWtZ2_xOc9mYwKqXUq0pQ4qtF9MDQ1b6N73w@HIDDEN>
	<jwvvctut798.fsf-monnier+emacs@HIDDEN>
	<CAOnWdogu9czhWLXWOhqtyYMTTNxYWHjDTBNzWPGBiu5Ryk9=uA@HIDDEN>
	<m3hb5d34ej.fsf@HIDDEN>
	<CAOnWdoh_Wr=DQWgWdWyePb=naRvbEybFh5zf6WvzNZmYZ+nNcw@HIDDEN>
	<m24o1db2vn.fsf@HIDDEN>
	<CAOnWdoj1UiPPcPR6DQ1ErNSrELbnyqzkWc2zdU+OKEGuqPC57Q@HIDDEN>
X-Yow: Talking Pinhead Blues:
	Oh, I LOST my ``HELLO KITTY'' DOLL and I get BAD reception on
	channel TWENTY-SIX!!
	Th'HOSTESS FACTORY is closin' down and I just heard ZASU PITTS
	has been DEAD for YEARS..  (sniff)
	My PLATFORM SHOE collection was CHEWED up by th'dog, ALEXANDER
	HAIG won't let me take a SHOWER 'til Easter.. (snurf)
	So I went to the kitchen, but WALNUT PANELING whup me
	upside mah HAID!! (on no, no, no..  Heh, heh)
Date: Sat, 20 Aug 2011 01:30:38 +0200
In-Reply-To: <CAOnWdoj1UiPPcPR6DQ1ErNSrELbnyqzkWc2zdU+OKEGuqPC57Q@HIDDEN>
	(Reuben Thomas's message of "Fri, 19 Aug 2011 20:55:55 +0100")
Message-ID: <m2vctt9dy9.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Spam-Score: -2.6 (--)
X-Debbugs-Envelope-To: 9323
Cc: 9323 <at> debbugs.gnu.org, Stefan Monnier <monnier@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -2.6 (--)

Reuben Thomas <rrt@HIDDEN> writes:

> Note that it has set default-directory to the directory of main.c, not
> its parent.

It doesn't matter.  Emacs will see the directory in the entering
message and adjust:

make: Entering directory `/home/rrt/Software/zile-stable'

Andreas.

-- 
Andreas Schwab, schwab@HIDDEN
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#9323; Package emacs. Full text available.

Message received at 9323 <at> debbugs.gnu.org:


Received: (at 9323) by debbugs.gnu.org; 19 Aug 2011 19:58:06 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Aug 19 15:58:05 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1QuVCf-0006rf-EF
	for submit <at> debbugs.gnu.org; Fri, 19 Aug 2011 15:58:05 -0400
Received: from exprod7og104.obsmtp.com ([64.18.2.161])
	by debbugs.gnu.org with smtp (Exim 4.69)
	(envelope-from <rrt@HIDDEN>) id 1QuVCd-0006rX-4a
	for 9323 <at> debbugs.gnu.org; Fri, 19 Aug 2011 15:58:04 -0400
Received: from mail-pz0-f41.google.com ([209.85.210.41]) (using TLSv1) by
	exprod7ob104.postini.com ([64.18.6.12]) with SMTP
	ID DSNKTk6/y//N16rWpw0DzQhWy1wAPnROrKB7@HIDDEN;
	Fri, 19 Aug 2011 12:55:56 PDT
Received: by pzk4 with SMTP id 4so7516651pzk.28
	for <9323 <at> debbugs.gnu.org>; Fri, 19 Aug 2011 12:55:55 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.142.216.20 with SMTP id o20mr50241wfg.446.1313783755033; Fri,
	19 Aug 2011 12:55:55 -0700 (PDT)
Received: by 10.143.99.9 with HTTP; Fri, 19 Aug 2011 12:55:55 -0700 (PDT)
In-Reply-To: <m24o1db2vn.fsf@HIDDEN>
References: <CAOnWdogEPHNmFfCWtZ2_xOc9mYwKqXUq0pQ4qtF9MDQ1b6N73w@HIDDEN>
	<jwvvctut798.fsf-monnier+emacs@HIDDEN>
	<CAOnWdogu9czhWLXWOhqtyYMTTNxYWHjDTBNzWPGBiu5Ryk9=uA@HIDDEN>
	<m3hb5d34ej.fsf@HIDDEN>
	<CAOnWdoh_Wr=DQWgWdWyePb=naRvbEybFh5zf6WvzNZmYZ+nNcw@HIDDEN>
	<m24o1db2vn.fsf@HIDDEN>
Date: Fri, 19 Aug 2011 20:55:55 +0100
Message-ID: <CAOnWdoj1UiPPcPR6DQ1ErNSrELbnyqzkWc2zdU+OKEGuqPC57Q@HIDDEN>
Subject: Re: bug#9323: Non-recursive make build systems and M-x compile
From: Reuben Thomas <rrt@HIDDEN>
To: Andreas Schwab <schwab@HIDDEN>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -6.4 (------)
X-Debbugs-Envelope-To: 9323
Cc: 9323 <at> debbugs.gnu.org, Stefan Monnier <monnier@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.4 (------)

On 19 August 2011 20:46, Andreas Schwab <schwab@HIDDEN> wrote:
> Reuben Thomas <rrt@HIDDEN> writes:
>
>> On 19 August 2011 14:41, Andreas Schwab <schwab@HIDDEN> wrote:
>>> Reuben Thomas <rrt@HIDDEN> writes:
>>>
>>>> That's great, but it's not documented for users (it's mentioned in
>>>> comments in lisp.el). How about adding something to compile's
>>>> docstring along the lines of:
>>>>
>>>> To launch a compilation in a directory other than that of the buffer,
>>>> prefix the compilation command with `cd ..;' or similar; compile will
>>>> parse this to set the default directory of the compile buffer.
>>>
>>> ??? That's exactly what "make -C ..." accomplishes.
>>
>> That's right, but compile.el does not parse the directory out of a
>> "make -C .." command,
>
> Yes, it does. =A0The directory is displayed by the entering
> message.

I'm sorry things are still unclear. I will now demonstrate step by
step exactly the difference I am talking about:

Running a recent build of emacs master branch from bazaar (emacs -Q):

I visit ~/Software/zile-stable/src/main.c

I do M-x compile

I edit the command so that it reads:

make -C .. -k

and then run it. At the top of the compile buffer the following is shown:

-*- mode: compilation; default-directory: "~/Software/zile-stable/src/" -*-

Note that it has set default-directory to the directory of main.c, not
its parent.

Later, there is a warning:

src/astr.c:67:12: warning: assignment discards qualifiers from pointer
target type

If I press enter over this warning, Emacs cannot open the target file,
and prompts me with:

Find this error in (default src/astr.c): ...

Now I make clean (in a terminal) and try again, M-x compile, and this
time I edit the command to:

cd ..; make -k

Now the compile buffer's first line reads:

-*- mode: compilation; default-directory: "~/Software/zile-stable/" -*-

Note that default-directory has been correctly set.

The same warning as above is displayed in the buffer, and if I hit
Enter over it, Emacs visits the file referred to without a prompt.

Note that in compile.el there is no mention of make's -C option,
whereas there are a couple of mentions of parsing out cd commands at
the start of the compile command.

--=20
http://rrt.sc3d.org




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#9323; Package emacs. Full text available.

Message received at 9323 <at> debbugs.gnu.org:


Received: (at 9323) by debbugs.gnu.org; 19 Aug 2011 19:49:04 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Aug 19 15:49:04 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1QuV3w-0006fY-3d
	for submit <at> debbugs.gnu.org; Fri, 19 Aug 2011 15:49:04 -0400
Received: from mail-out.m-online.net ([212.18.0.9])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <whitebox@HIDDEN>) id 1QuV3s-0006f8-OR
	for 9323 <at> debbugs.gnu.org; Fri, 19 Aug 2011 15:49:02 -0400
Received: from frontend1.mail.m-online.net (unknown [192.168.8.180])
	by mail-out.m-online.net (Postfix) with ESMTP id A69441C1DA16;
	Fri, 19 Aug 2011 21:46:53 +0200 (CEST)
Received: from localhost (dynscan1.mnet-online.de [192.168.8.164])
	by mail.m-online.net (Postfix) with ESMTP id 7B5C21C0013F;
	Fri, 19 Aug 2011 21:46:53 +0200 (CEST)
X-Virus-Scanned: amavisd-new at mnet-online.de
Received: from mail.mnet-online.de ([192.168.8.180])
	by localhost (dynscan1.mail.m-online.net [192.168.8.164]) (amavisd-new,
	port 10024)
	with ESMTP id ZGrdEy3Sop5I; Fri, 19 Aug 2011 21:46:53 +0200 (CEST)
Received: from igel.home (ppp-88-217-103-7.dynamic.mnet-online.de
	[88.217.103.7]) by mail.mnet-online.de (Postfix) with ESMTP;
	Fri, 19 Aug 2011 21:46:52 +0200 (CEST)
Received: by igel.home (Postfix, from userid 501)
	id 7283DCA293; Fri, 19 Aug 2011 21:46:52 +0200 (CEST)
From: Andreas Schwab <schwab@HIDDEN>
To: Reuben Thomas <rrt@HIDDEN>
Subject: Re: bug#9323: Non-recursive make build systems and M-x compile
References: <CAOnWdogEPHNmFfCWtZ2_xOc9mYwKqXUq0pQ4qtF9MDQ1b6N73w@HIDDEN>
	<jwvvctut798.fsf-monnier+emacs@HIDDEN>
	<CAOnWdogu9czhWLXWOhqtyYMTTNxYWHjDTBNzWPGBiu5Ryk9=uA@HIDDEN>
	<m3hb5d34ej.fsf@HIDDEN>
	<CAOnWdoh_Wr=DQWgWdWyePb=naRvbEybFh5zf6WvzNZmYZ+nNcw@HIDDEN>
X-Yow: How do you explain Wayne Newton's POWER over millions?
	It's th' MOUSTACHE...  Have you ever noticed th' way it radiates
	SINCERITY, HONESTY & WARMTH?  It's a MOUSTACHE you want to take
	HOME and introduce to NANCY SINATRA!
Date: Fri, 19 Aug 2011 21:46:52 +0200
In-Reply-To: <CAOnWdoh_Wr=DQWgWdWyePb=naRvbEybFh5zf6WvzNZmYZ+nNcw@HIDDEN>
	(Reuben Thomas's message of "Fri, 19 Aug 2011 18:22:06 +0100")
Message-ID: <m24o1db2vn.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Spam-Score: -2.6 (--)
X-Debbugs-Envelope-To: 9323
Cc: 9323 <at> debbugs.gnu.org, Stefan Monnier <monnier@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -2.6 (--)

Reuben Thomas <rrt@HIDDEN> writes:

> On 19 August 2011 14:41, Andreas Schwab <schwab@HIDDEN> wrote:
>> Reuben Thomas <rrt@HIDDEN> writes:
>>
>>> That's great, but it's not documented for users (it's mentioned in
>>> comments in lisp.el). How about adding something to compile's
>>> docstring along the lines of:
>>>
>>> To launch a compilation in a directory other than that of the buffer,
>>> prefix the compilation command with `cd ..;' or similar; compile will
>>> parse this to set the default directory of the compile buffer.
>>
>> ??? That's exactly what "make -C ..." accomplishes.
>
> That's right, but compile.el does not parse the directory out of a
> "make -C .." command,

Yes, it does.  The directory is displayed by the entering message.

Andreas.

-- 
Andreas Schwab, schwab@HIDDEN
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#9323; Package emacs. Full text available.

Message received at 9323 <at> debbugs.gnu.org:


Received: (at 9323) by debbugs.gnu.org; 19 Aug 2011 17:24:16 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Aug 19 13:24:15 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1QuSnn-000572-Hl
	for submit <at> debbugs.gnu.org; Fri, 19 Aug 2011 13:24:15 -0400
Received: from exprod7og127.obsmtp.com ([64.18.2.210])
	by debbugs.gnu.org with smtp (Exim 4.69)
	(envelope-from <rrt@HIDDEN>) id 1QuSnl-00056u-N4
	for 9323 <at> debbugs.gnu.org; Fri, 19 Aug 2011 13:24:14 -0400
Received: from mail-pz0-f47.google.com ([209.85.210.47]) (using TLSv1) by
	exprod7ob127.postini.com ([64.18.6.12]) with SMTP
	ID DSNKTk6bvr1oy3316D3AKRMIYeRRvB0he3Mi@HIDDEN;
	Fri, 19 Aug 2011 10:22:07 PDT
Received: by mail-pz0-f47.google.com with SMTP id 2so5093221pzk.20
	for <9323 <at> debbugs.gnu.org>; Fri, 19 Aug 2011 10:22:06 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.142.133.14 with SMTP id g14mr385368wfd.389.1313774526690; Fri,
	19 Aug 2011 10:22:06 -0700 (PDT)
Received: by 10.143.99.9 with HTTP; Fri, 19 Aug 2011 10:22:06 -0700 (PDT)
In-Reply-To: <m3hb5d34ej.fsf@HIDDEN>
References: <CAOnWdogEPHNmFfCWtZ2_xOc9mYwKqXUq0pQ4qtF9MDQ1b6N73w@HIDDEN>
	<jwvvctut798.fsf-monnier+emacs@HIDDEN>
	<CAOnWdogu9czhWLXWOhqtyYMTTNxYWHjDTBNzWPGBiu5Ryk9=uA@HIDDEN>
	<m3hb5d34ej.fsf@HIDDEN>
Date: Fri, 19 Aug 2011 18:22:06 +0100
Message-ID: <CAOnWdoh_Wr=DQWgWdWyePb=naRvbEybFh5zf6WvzNZmYZ+nNcw@HIDDEN>
Subject: Re: bug#9323: Non-recursive make build systems and M-x compile
From: Reuben Thomas <rrt@HIDDEN>
To: Andreas Schwab <schwab@HIDDEN>
Content-Type: text/plain; charset=ISO-8859-1
X-Spam-Score: -6.4 (------)
X-Debbugs-Envelope-To: 9323
Cc: 9323 <at> debbugs.gnu.org, Stefan Monnier <monnier@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.4 (------)

On 19 August 2011 14:41, Andreas Schwab <schwab@HIDDEN> wrote:
> Reuben Thomas <rrt@HIDDEN> writes:
>
>> That's great, but it's not documented for users (it's mentioned in
>> comments in lisp.el). How about adding something to compile's
>> docstring along the lines of:
>>
>> To launch a compilation in a directory other than that of the buffer,
>> prefix the compilation command with `cd ..;' or similar; compile will
>> parse this to set the default directory of the compile buffer.
>
> ??? That's exactly what "make -C ..." accomplishes.

That's right, but compile.el does not parse the directory out of a
"make -C .." command, leading to the problem I described above where
the paths listed in error & warning messages in the compile buffer are
not correct relative to the path of the compile buffer itself. On the
other hand, compile.el does understand the format "cd ..; make",
allowing it to set the path of the compile buffer correctly.

-- 
http://rrt.sc3d.org




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#9323; Package emacs. Full text available.

Message received at 9323 <at> debbugs.gnu.org:


Received: (at 9323) by debbugs.gnu.org; 19 Aug 2011 13:43:21 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Aug 19 09:43:21 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1QuPM0-0000w7-Nu
	for submit <at> debbugs.gnu.org; Fri, 19 Aug 2011 09:43:21 -0400
Received: from mail-out.m-online.net ([212.18.0.10])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <whitebox@HIDDEN>) id 1QuPLx-0000vy-Kt
	for 9323 <at> debbugs.gnu.org; Fri, 19 Aug 2011 09:43:18 -0400
Received: from frontend1.mail.m-online.net (frontend1.mail.intern.m-online.net
	[192.168.8.180])
	by mail-out.m-online.net (Postfix) with ESMTP id 45A6B188B5B6;
	Fri, 19 Aug 2011 15:41:10 +0200 (CEST)
Received: from localhost (dynscan1.mnet-online.de [192.168.8.164])
	by mail.m-online.net (Postfix) with ESMTP id 543741C00132;
	Fri, 19 Aug 2011 15:41:10 +0200 (CEST)
X-Virus-Scanned: amavisd-new at mnet-online.de
Received: from mail.mnet-online.de ([192.168.8.180])
	by localhost (dynscan1.mail.m-online.net [192.168.8.164]) (amavisd-new,
	port 10024)
	with ESMTP id IWmDOQiHWCVC; Fri, 19 Aug 2011 15:41:09 +0200 (CEST)
Received: from hase.home (ppp-88-217-103-7.dynamic.mnet-online.de
	[88.217.103.7]) by mail.mnet-online.de (Postfix) with ESMTP;
	Fri, 19 Aug 2011 15:41:09 +0200 (CEST)
From: Andreas Schwab <schwab@HIDDEN>
To: Reuben Thomas <rrt@HIDDEN>
Subject: Re: bug#9323: Non-recursive make build systems and M-x compile
References: <CAOnWdogEPHNmFfCWtZ2_xOc9mYwKqXUq0pQ4qtF9MDQ1b6N73w@HIDDEN>
	<jwvvctut798.fsf-monnier+emacs@HIDDEN>
	<CAOnWdogu9czhWLXWOhqtyYMTTNxYWHjDTBNzWPGBiu5Ryk9=uA@HIDDEN>
X-Yow: All this time I've been VIEWING a RUSSIAN MIDGET SODOMIZE a HOUSECAT!
Date: Fri, 19 Aug 2011 15:41:08 +0200
In-Reply-To: <CAOnWdogu9czhWLXWOhqtyYMTTNxYWHjDTBNzWPGBiu5Ryk9=uA@HIDDEN>
	(Reuben Thomas's message of "Fri, 19 Aug 2011 13:17:10 +0100")
Message-ID: <m3hb5d34ej.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Spam-Score: -2.6 (--)
X-Debbugs-Envelope-To: 9323
Cc: 9323 <at> debbugs.gnu.org, Stefan Monnier <monnier@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -2.6 (--)

Reuben Thomas <rrt@HIDDEN> writes:

> That's great, but it's not documented for users (it's mentioned in
> comments in lisp.el). How about adding something to compile's
> docstring along the lines of:
>
> To launch a compilation in a directory other than that of the buffer,
> prefix the compilation command with `cd ..;' or similar; compile will
> parse this to set the default directory of the compile buffer.

??? That's exactly what "make -C ..." accomplishes.

Andreas.

-- 
Andreas Schwab, schwab@HIDDEN
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#9323; Package emacs. Full text available.

Message received at 9323 <at> debbugs.gnu.org:


Received: (at 9323) by debbugs.gnu.org; 19 Aug 2011 12:19:21 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Aug 19 08:19:20 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1QuO2h-0007Le-V1
	for submit <at> debbugs.gnu.org; Fri, 19 Aug 2011 08:19:20 -0400
Received: from exprod7og104.obsmtp.com ([64.18.2.161])
	by debbugs.gnu.org with smtp (Exim 4.69)
	(envelope-from <rrt@HIDDEN>) id 1QuO2f-0007LV-0u
	for 9323 <at> debbugs.gnu.org; Fri, 19 Aug 2011 08:19:18 -0400
Received: from mail-pz0-f43.google.com ([209.85.210.43]) (using TLSv1) by
	exprod7ob104.postini.com ([64.18.6.12]) with SMTP
	ID DSNKTk5URoqN0qvs9gCedT0JvzOUUpwLEGg8@HIDDEN;
	Fri, 19 Aug 2011 05:17:12 PDT
Received: by pzk1 with SMTP id 1so5076435pzk.2
	for <9323 <at> debbugs.gnu.org>; Fri, 19 Aug 2011 05:17:10 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.142.140.3 with SMTP id n3mr983554wfd.218.1313756230057; Fri,
	19 Aug 2011 05:17:10 -0700 (PDT)
Received: by 10.143.99.9 with HTTP; Fri, 19 Aug 2011 05:17:10 -0700 (PDT)
In-Reply-To: <jwvvctut798.fsf-monnier+emacs@HIDDEN>
References: <CAOnWdogEPHNmFfCWtZ2_xOc9mYwKqXUq0pQ4qtF9MDQ1b6N73w@HIDDEN>
	<jwvvctut798.fsf-monnier+emacs@HIDDEN>
Date: Fri, 19 Aug 2011 13:17:10 +0100
Message-ID: <CAOnWdogu9czhWLXWOhqtyYMTTNxYWHjDTBNzWPGBiu5Ryk9=uA@HIDDEN>
Subject: Re: bug#9323: Non-recursive make build systems and M-x compile
From: Reuben Thomas <rrt@HIDDEN>
To: Stefan Monnier <monnier@HIDDEN>
Content-Type: text/plain; charset=ISO-8859-1
X-Spam-Score: -6.4 (------)
X-Debbugs-Envelope-To: 9323
Cc: 9323 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.4 (------)

On 19 August 2011 04:23, Stefan Monnier <monnier@HIDDEN> wrote:
>> If I change the build command to make -C .., then Emacs gives errors
>> in the compile buffer pointing to files like "src/foo.c", but can't
>> follow those links, I presume because it considers the current dir for
>> the build to be "src".
>
> compile.el has ad-hoc support to try and recognize "cd ..; <foo>" and
> similar (with more dot-dots).

Thanks, so I just need to use a different compile command.

That's great, but it's not documented for users (it's mentioned in
comments in lisp.el). How about adding something to compile's
docstring along the lines of:

To launch a compilation in a directory other than that of the buffer,
prefix the compilation command with `cd ..;' or similar; compile will
parse this to set the default directory of the compile buffer.

-- 
http://rrt.sc3d.org




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#9323; Package emacs. Full text available.

Message received at 9323 <at> debbugs.gnu.org:


Received: (at 9323) by debbugs.gnu.org; 19 Aug 2011 03:25:55 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Aug 18 23:25:55 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1QuFiV-0002pB-8l
	for submit <at> debbugs.gnu.org; Thu, 18 Aug 2011 23:25:55 -0400
Received: from ironport2-out.teksavvy.com ([206.248.154.181]
	helo=ironport2-out.pppoe.ca)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <monnier@HIDDEN>) id 1QuFiT-0002p3-0S
	for 9323 <at> debbugs.gnu.org; Thu, 18 Aug 2011 23:25:53 -0400
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: Av0EAI/WTU5Ld+HZ/2dsb2JhbABCp3d4gUABAQQBViMFCwsOJhIUGA0kiAS4DYZIBJ9vhDU
X-IronPort-AV: E=Sophos;i="4.68,249,1312171200"; d="scan'208";a="131879963"
Received: from 75-119-225-217.dsl.teksavvy.com (HELO ceviche.home)
	([75.119.225.217])
	by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA;
	18 Aug 2011 23:23:49 -0400
Received: by ceviche.home (Postfix, from userid 20848)
	id 0274866329; Thu, 18 Aug 2011 23:23:47 -0400 (EDT)
From: Stefan Monnier <monnier@HIDDEN>
To: Reuben Thomas <rrt@HIDDEN>
Subject: Re: bug#9323: Non-recursive make build systems and M-x compile
Message-ID: <jwvvctut798.fsf-monnier+emacs@HIDDEN>
References: <CAOnWdogEPHNmFfCWtZ2_xOc9mYwKqXUq0pQ4qtF9MDQ1b6N73w@HIDDEN>
Date: Thu, 18 Aug 2011 23:23:46 -0400
In-Reply-To: <CAOnWdogEPHNmFfCWtZ2_xOc9mYwKqXUq0pQ4qtF9MDQ1b6N73w@HIDDEN>
	(Reuben Thomas's message of "Thu, 18 Aug 2011 19:37:10 +0100")
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -2.1 (--)
X-Debbugs-Envelope-To: 9323
Cc: 9323 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -2.1 (--)

> If I change the build command to make -C .., then Emacs gives errors
> in the compile buffer pointing to files like "src/foo.c", but can't
> follow those links, I presume because it considers the current dir for
> the build to be "src".

compile.el has ad-hoc support to try and recognize "cd ..; <foo>" and
similar (with more dot-dots).


        Stefan




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#9323; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 19 Aug 2011 01:31:31 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Aug 18 21:31:31 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1QuDvm-0007tw-Qg
	for submit <at> debbugs.gnu.org; Thu, 18 Aug 2011 21:31:31 -0400
Received: from eggs.gnu.org ([140.186.70.92])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <grishka@HIDDEN>) id 1QuDvk-0007tp-P5
	for submit <at> debbugs.gnu.org; Thu, 18 Aug 2011 21:31:29 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <grishka@HIDDEN>) id 1QuDtk-0007Gf-El
	for submit <at> debbugs.gnu.org; Thu, 18 Aug 2011 21:29:26 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,
	RCVD_IN_DNSWL_NONE,
	T_TO_NO_BRKTS_FREEMAIL autolearn=unavailable version=3.3.1
Received: from lists.gnu.org ([140.186.70.17]:49410)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <grishka@HIDDEN>) id 1QuDtk-0007Gb-DJ
	for submit <at> debbugs.gnu.org; Thu, 18 Aug 2011 21:29:24 -0400
Received: from eggs.gnu.org ([140.186.70.92]:55922)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <grishka@HIDDEN>) id 1QuDtj-00070z-Ci
	for bug-gnu-emacs@HIDDEN; Thu, 18 Aug 2011 21:29:24 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <grishka@HIDDEN>) id 1QuDti-0007G5-59
	for bug-gnu-emacs@HIDDEN; Thu, 18 Aug 2011 21:29:23 -0400
Received: from mailout-de.gmx.net ([213.165.64.23]:42297)
	by eggs.gnu.org with smtp (Exim 4.71)
	(envelope-from <grishka@HIDDEN>) id 1QuDth-0007Fn-Pd
	for bug-gnu-emacs@HIDDEN; Thu, 18 Aug 2011 21:29:22 -0400
Received: (qmail invoked by alias); 19 Aug 2011 01:29:18 -0000
Received: from unknown (EHLO [10.131.15.20]) [89.204.155.20]
	by mail.gmx.net (mp005) with SMTP; 19 Aug 2011 03:29:18 +0200
X-Authenticated: #18588216
X-Provags-ID: V01U2FsdGVkX18R0GoZpSkRHIEvKDvjbUlJZPkUxkLVdveXo8weON
	Qt8+TSMYlNDwGU
Message-ID: <4E4DBC52.2020909@HIDDEN>
Date: Fri, 19 Aug 2011 03:28:50 +0200
From: grischka <grishka@HIDDEN>
User-Agent: Thunderbird 2.0.0.24 (Windows/20100228)
MIME-Version: 1.0
To: rrt@HIDDEN
Subject: bug#9323: Non-recursive make build systems and M-x compile
References: CAOnWdogEPHNmFfCWtZ2_xOc9mYwKqXUq0pQ4qtF9MDQ1b6N73w@HIDDEN
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Y-GMX-Trusted: 0
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 140.186.70.17
X-Spam-Score: -5.9 (-----)
X-Debbugs-Envelope-To: submit
Cc: bug-gnu-emacs@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -5.9 (-----)

Reuben Thomas wrote:
> With a non-recursive make-based build system, how do I make M-x
> compile work nicely?
> 
> If I just run M-x compile when visiting a source file under src/ it
> doesn't work, as src/ contains no Makefile.

eproject does a cd to the project root before it runs commands:

     http://www.emacswiki.org/emacs-en/eproject

--- grischka





Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#9323; Package emacs. Full text available.

Message received at 9323 <at> debbugs.gnu.org:


Received: (at 9323) by debbugs.gnu.org; 18 Aug 2011 22:45:13 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Aug 18 18:45:13 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1QuBKr-0004Aa-Bc
	for submit <at> debbugs.gnu.org; Thu, 18 Aug 2011 18:45:13 -0400
Received: from exprod7og120.obsmtp.com ([64.18.2.18])
	by debbugs.gnu.org with smtp (Exim 4.69)
	(envelope-from <rrt@HIDDEN>) id 1QuBKn-0004AR-SU
	for 9323 <at> debbugs.gnu.org; Thu, 18 Aug 2011 18:45:11 -0400
Received: from mail-pz0-f49.google.com ([209.85.210.49]) (using TLSv1) by
	exprod7ob120.postini.com ([64.18.6.12]) with SMTP
	ID DSNKTk2Ve4nAhE66qwy2u7w/0YPtDo3nQ/9D@HIDDEN;
	Thu, 18 Aug 2011 15:43:08 PDT
Received: by mail-pz0-f49.google.com with SMTP id 6so4946661pzk.8
	for <9323 <at> debbugs.gnu.org>; Thu, 18 Aug 2011 15:43:07 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.143.76.10 with SMTP id d10mr646311wfl.332.1313707387086; Thu,
	18 Aug 2011 15:43:07 -0700 (PDT)
Received: by 10.143.99.9 with HTTP; Thu, 18 Aug 2011 15:43:07 -0700 (PDT)
In-Reply-To: <m2ei0ipf1n.fsf@HIDDEN>
References: <CAOnWdogEPHNmFfCWtZ2_xOc9mYwKqXUq0pQ4qtF9MDQ1b6N73w@HIDDEN>
	<m2ei0ipf1n.fsf@HIDDEN>
Date: Thu, 18 Aug 2011 23:43:07 +0100
Message-ID: <CAOnWdohjUQLkFoCJ19qAHX3n4=a1j5fT7JPWkZ7BEfZoEdzwYA@HIDDEN>
Subject: Re: bug#9323: Non-recursive make build systems and M-x compile
From: Reuben Thomas <rrt@HIDDEN>
To: Andreas Schwab <schwab@HIDDEN>
Content-Type: text/plain; charset=ISO-8859-1
X-Spam-Score: -6.4 (------)
X-Debbugs-Envelope-To: 9323
Cc: 9323 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.4 (------)

On 18 August 2011 22:48, Andreas Schwab <schwab@HIDDEN> wrote:
> Reuben Thomas <rrt@HIDDEN> writes:
>
>> If I change the build command to make -C .., then Emacs gives errors
>> in the compile buffer pointing to files like "src/foo.c", but can't
>> follow those links, I presume because it considers the current dir for
>> the build to be "src".
>
> make -C should output "Entering directory" lines which are parsed by
> Emacs.

It does; sorry I wasn't clear. The problem is that the links start:
src/foo.c, but the directory for the compilation is src, so in
following the link, Emacs tries to find src/src/foo.c, and fails.

-- 
http://rrt.sc3d.org




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#9323; Package emacs. Full text available.

Message received at 9323 <at> debbugs.gnu.org:


Received: (at 9323) by debbugs.gnu.org; 18 Aug 2011 21:50:08 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Aug 18 17:50:08 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1QuATY-0002w0-D6
	for submit <at> debbugs.gnu.org; Thu, 18 Aug 2011 17:50:08 -0400
Received: from mail-out.m-online.net ([212.18.0.9])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <whitebox@HIDDEN>) id 1QuATW-0002vs-57
	for 9323 <at> debbugs.gnu.org; Thu, 18 Aug 2011 17:50:07 -0400
Received: from frontend1.mail.m-online.net (unknown [192.168.8.180])
	by mail-out.m-online.net (Postfix) with ESMTP id F194D1C1D9E2;
	Thu, 18 Aug 2011 23:48:03 +0200 (CEST)
X-Auth-Info: 360rOdr8XvL6c+Ro4BB1rm5b26h2VaPxdRbSr0SdizM=
Received: from linux.local (ppp-88-217-109-224.dynamic.mnet-online.de
	[88.217.109.224])
	by mail.mnet-online.de (Postfix) with ESMTPA id E02021C00054;
	Thu, 18 Aug 2011 23:48:03 +0200 (CEST)
Received: by linux.local (Postfix, from userid 501)
	id 7AAAA14EB28; Thu, 18 Aug 2011 23:48:05 +0200 (CEST)
From: Andreas Schwab <schwab@HIDDEN>
To: Reuben Thomas <rrt@HIDDEN>
Subject: Re: bug#9323: Non-recursive make build systems and M-x compile
References: <CAOnWdogEPHNmFfCWtZ2_xOc9mYwKqXUq0pQ4qtF9MDQ1b6N73w@HIDDEN>
X-Yow: Where do your SOCKS go when you lose them in th' WASHER?
Date: Thu, 18 Aug 2011 23:48:04 +0200
In-Reply-To: <CAOnWdogEPHNmFfCWtZ2_xOc9mYwKqXUq0pQ4qtF9MDQ1b6N73w@HIDDEN>
	(Reuben Thomas's message of "Thu, 18 Aug 2011 19:37:10 +0100")
Message-ID: <m2ei0ipf1n.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Spam-Score: -2.6 (--)
X-Debbugs-Envelope-To: 9323
Cc: 9323 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -2.6 (--)

Reuben Thomas <rrt@HIDDEN> writes:

> If I change the build command to make -C .., then Emacs gives errors
> in the compile buffer pointing to files like "src/foo.c", but can't
> follow those links, I presume because it considers the current dir for
> the build to be "src".

make -C should output "Entering directory" lines which are parsed by
Emacs.

Andreas.

-- 
Andreas Schwab, schwab@HIDDEN
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#9323; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 18 Aug 2011 18:39:26 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Aug 18 14:39:26 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Qu7Uw-0006vh-Jp
	for submit <at> debbugs.gnu.org; Thu, 18 Aug 2011 14:39:25 -0400
Received: from eggs.gnu.org ([140.186.70.92])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <rrt@HIDDEN>) id 1Qu7Us-0006vY-6a
	for submit <at> debbugs.gnu.org; Thu, 18 Aug 2011 14:39:20 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <rrt@HIDDEN>) id 1Qu7Su-0003Uh-Ue
	for submit <at> debbugs.gnu.org; Thu, 18 Aug 2011 14:37:17 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED
	autolearn=unavailable version=3.3.1
Received: from lists.gnu.org ([140.186.70.17]:40519)
	by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <rrt@HIDDEN>)
	id 1Qu7Su-0003Ud-TA
	for submit <at> debbugs.gnu.org; Thu, 18 Aug 2011 14:37:16 -0400
Received: from eggs.gnu.org ([140.186.70.92]:58565)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <rrt@HIDDEN>) id 1Qu7St-0000W1-OZ
	for bug-gnu-emacs@HIDDEN; Thu, 18 Aug 2011 14:37:16 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <rrt@HIDDEN>) id 1Qu7St-0003UJ-0e
	for bug-gnu-emacs@HIDDEN; Thu, 18 Aug 2011 14:37:15 -0400
Received: from fencepost.gnu.org ([140.186.70.10]:37433)
	by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <rrt@HIDDEN>)
	id 1Qu7Ss-0003UF-VL
	for bug-gnu-emacs@HIDDEN; Thu, 18 Aug 2011 14:37:14 -0400
Received: from eggs.gnu.org ([140.186.70.92]:47633)
	by fencepost.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
	(Exim 4.71) (envelope-from <rrt@HIDDEN>) id 1Qu7Ss-0002XM-Ks
	for bug-emacs@HIDDEN; Thu, 18 Aug 2011 14:37:14 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <rrt@HIDDEN>) id 1Qu7Sr-0003Tr-As
	for bug-emacs@HIDDEN; Thu, 18 Aug 2011 14:37:14 -0400
Received: from exprod7og125.obsmtp.com ([64.18.2.28]:55371)
	by eggs.gnu.org with smtp (Exim 4.71) (envelope-from <rrt@HIDDEN>)
	id 1Qu7Sr-0003Td-1U
	for bug-emacs@HIDDEN; Thu, 18 Aug 2011 14:37:13 -0400
Received: from mail-pz0-f42.google.com ([209.85.210.42]) (using TLSv1) by
	exprod7ob125.postini.com ([64.18.6.12]) with SMTP
	ID DSNKTk1b1uJY0ImQaBqMxrRgMC8RzvAT92tV@HIDDEN;
	Thu, 18 Aug 2011 11:37:12 PDT
Received: by pzk37 with SMTP id 37so4041251pzk.29
	for <bug-emacs@HIDDEN>; Thu, 18 Aug 2011 11:37:10 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.143.76.10 with SMTP id d10mr536933wfl.332.1313692630348; Thu,
	18 Aug 2011 11:37:10 -0700 (PDT)
Received: by 10.143.99.9 with HTTP; Thu, 18 Aug 2011 11:37:10 -0700 (PDT)
Date: Thu, 18 Aug 2011 19:37:10 +0100
Message-ID: <CAOnWdogEPHNmFfCWtZ2_xOc9mYwKqXUq0pQ4qtF9MDQ1b6N73w@HIDDEN>
Subject: Non-recursive make build systems and M-x compile
From: Reuben Thomas <rrt@HIDDEN>
To: bug-emacs <bug-emacs@HIDDEN>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older,
	4)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 140.186.70.17
X-Spam-Score: -6.1 (------)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.1 (------)

With a non-recursive make-based build system, how do I make M-x
compile work nicely?

If I just run M-x compile when visiting a source file under src/ it
doesn't work, as src/ contains no Makefile.

If I change the build command to make -C .., then Emacs gives errors
in the compile buffer pointing to files like "src/foo.c", but can't
follow those links, I presume because it considers the current dir for
the build to be "src".

Looking through compile.el it seems I ought to be able to set
compile-directory conveniently somehow; I imagine that I wouldn't want
to change the default-directory for my source buffers, though.

(BTW, typo in compile.el: "fone after" =E2=86=92 "done after".)

--=20
http://rrt.sc3d.org




Acknowledgement sent to Reuben Thomas <rrt@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#9323; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.