<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Multiple Build Commands For Emacs</title>
	<atom:link href="http://curiousprogrammer.wordpress.com/2009/02/13/build-commands-emacs/feed/" rel="self" type="application/rss+xml" />
	<link>http://curiousprogrammer.wordpress.com/2009/02/13/build-commands-emacs/</link>
	<description>Leveraging Perl and Emacs</description>
	<lastBuildDate>Tue, 07 May 2013 11:25:25 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Jared</title>
		<link>http://curiousprogrammer.wordpress.com/2009/02/13/build-commands-emacs/#comment-7263</link>
		<dc:creator><![CDATA[Jared]]></dc:creator>
		<pubDate>Sun, 15 Feb 2009 17:13:33 +0000</pubDate>
		<guid isPermaLink="false">http://curiousprogrammer.wordpress.com/?p=211#comment-7263</guid>
		<description><![CDATA[@Alex

&lt;blockquote&gt;
necessity being the main driver for such things
&lt;/blockquote&gt;

Aint that the truth :)]]></description>
		<content:encoded><![CDATA[<p>@Alex</p>
<blockquote><p>
necessity being the main driver for such things
</p></blockquote>
<p>Aint that the truth <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Emacs Links - 2009 Week 7 &#171; A Curious Programmer</title>
		<link>http://curiousprogrammer.wordpress.com/2009/02/13/build-commands-emacs/#comment-7262</link>
		<dc:creator><![CDATA[Emacs Links - 2009 Week 7 &#171; A Curious Programmer]]></dc:creator>
		<pubDate>Sun, 15 Feb 2009 14:42:39 +0000</pubDate>
		<guid isPermaLink="false">http://curiousprogrammer.wordpress.com/?p=211#comment-7262</guid>
		<description><![CDATA[[...] post on providing different compile commands in different directories resulted in some interesting comments on directory local variables and [...]]]></description>
		<content:encoded><![CDATA[<p>[...] post on providing different compile commands in different directories resulted in some interesting comments on directory local variables and [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex Bennee</title>
		<link>http://curiousprogrammer.wordpress.com/2009/02/13/build-commands-emacs/#comment-7258</link>
		<dc:creator><![CDATA[Alex Bennee]]></dc:creator>
		<pubDate>Sat, 14 Feb 2009 12:51:20 +0000</pubDate>
		<guid isPermaLink="false">http://curiousprogrammer.wordpress.com/?p=211#comment-7258</guid>
		<description><![CDATA[It is simple at the moment because I&#039;m not working with much stuff
that needs complex make invocations. Most FLOSS code is ready to build
with a straight &quot;make -k&quot;. However from time to time when I&#039;m working
at a proprietary shop I usually code up slightly &lt;a href=&quot;http://github.com/stsquad/my-emacs-stuff/blob/fd04e0fc6dfa0346016a0d0255e5d074b0d90f77/cbnl.el#L18&quot; rel=&quot;nofollow&quot;&gt;more
complex project-root&lt;/a&gt; stuff. One day if I ever have the need I may
generalise the code a bit more and make it deal nicely with buffer
local variables. However I don&#039;t need to at the moment, necessity
being the main driver for such things :-)]]></description>
		<content:encoded><![CDATA[<p>It is simple at the moment because I&#8217;m not working with much stuff<br />
that needs complex make invocations. Most FLOSS code is ready to build<br />
with a straight &#8220;make -k&#8221;. However from time to time when I&#8217;m working<br />
at a proprietary shop I usually code up slightly <a href="http://github.com/stsquad/my-emacs-stuff/blob/fd04e0fc6dfa0346016a0d0255e5d074b0d90f77/cbnl.el#L18" rel="nofollow">more<br />
complex project-root</a> stuff. One day if I ever have the need I may<br />
generalise the code a bit more and make it deal nicely with buffer<br />
local variables. However I don&#8217;t need to at the moment, necessity<br />
being the main driver for such things <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jared</title>
		<link>http://curiousprogrammer.wordpress.com/2009/02/13/build-commands-emacs/#comment-7255</link>
		<dc:creator><![CDATA[Jared]]></dc:creator>
		<pubDate>Fri, 13 Feb 2009 21:39:50 +0000</pubDate>
		<guid isPermaLink="false">http://curiousprogrammer.wordpress.com/?p=211#comment-7255</guid>
		<description><![CDATA[Hi folks,

Thanks for the comments - great info as usual.

@Alex B - I had a quick look at your .emacs and the bit I can see that that sets the compile is:
(setq compile-command (format &quot;cd %s &amp;&amp; make -k&quot; current-project-root)).
It looks like it is always calling make-k.  Or have I missed something?

Thanks for the pointer to &lt;a href=&quot;http://www.emacswiki.org/emacs/ProjectSettings&quot; rel=&quot;nofollow&quot;&gt;ProjectSettings&lt;/a&gt;.  That looks very handy (although is it superceded by directory local variables?) .

@Alex O - I had a look at CEDET a couple of years ago and I found it very impressive although I decided it wasn&#039;t for me.  I don&#039;t really want to change Emacs into a fully-fledged IDE.  However, I do like pressing f7 and C-c ` to o to the different errors :)

By the way I went over to take a quick look so I could make an informed comment.  Is this intended to replace an entire build system?

@Joakim and Ian - Yes, directory-local variables look like what I want.  I&#039;ll probably change over to use them instead.  And Ian, nice fix to remove the helper functions.

@phil - I really like the look of project-root.  I have a home-grown thing that I call aliases for finding various files but I think project-root is much more comprehensive.  Cheers]]></description>
		<content:encoded><![CDATA[<p>Hi folks,</p>
<p>Thanks for the comments &#8211; great info as usual.</p>
<p>@Alex B &#8211; I had a quick look at your .emacs and the bit I can see that that sets the compile is:<br />
(setq compile-command (format &#8220;cd %s &amp;&amp; make -k&#8221; current-project-root)).<br />
It looks like it is always calling make-k.  Or have I missed something?</p>
<p>Thanks for the pointer to <a href="http://www.emacswiki.org/emacs/ProjectSettings" rel="nofollow">ProjectSettings</a>.  That looks very handy (although is it superceded by directory local variables?) .</p>
<p>@Alex O &#8211; I had a look at CEDET a couple of years ago and I found it very impressive although I decided it wasn&#8217;t for me.  I don&#8217;t really want to change Emacs into a fully-fledged IDE.  However, I do like pressing f7 and C-c ` to o to the different errors <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>By the way I went over to take a quick look so I could make an informed comment.  Is this intended to replace an entire build system?</p>
<p>@Joakim and Ian &#8211; Yes, directory-local variables look like what I want.  I&#8217;ll probably change over to use them instead.  And Ian, nice fix to remove the helper functions.</p>
<p>@phil &#8211; I really like the look of project-root.  I have a home-grown thing that I call aliases for finding various files but I think project-root is much more comprehensive.  Cheers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ian Eure</title>
		<link>http://curiousprogrammer.wordpress.com/2009/02/13/build-commands-emacs/#comment-7254</link>
		<dc:creator><![CDATA[Ian Eure]]></dc:creator>
		<pubDate>Fri, 13 Feb 2009 17:35:20 +0000</pubDate>
		<guid isPermaLink="false">http://curiousprogrammer.wordpress.com/?p=211#comment-7254</guid>
		<description><![CDATA[Seconding the Emacs 23 directory-local variables opinion.

See http://atomized.org/2009/01/emacs-23-directory-local-variables/ for info about setting it up.

You should be able to change compile-command pretty easily with that.

If you prefer your approach, you may as well put the compile commands into run-compile:

(defun run-compile ()
  (interactive)
  (let ((file (buffer-file-name (current-buffer))))
    (compile (cond 
              ((string-match &quot;/src/lib/&quot; file) &quot;make-lib-command&quot;)
              ((string-match &quot;/src/app/&quot; file) &quot;make-app-command&quot;)
              (t (error &quot;Invalid unknown/location %s&quot;
                        (or file (buffer-name))))))))]]></description>
		<content:encoded><![CDATA[<p>Seconding the Emacs 23 directory-local variables opinion.</p>
<p>See <a href="http://atomized.org/2009/01/emacs-23-directory-local-variables/" rel="nofollow">http://atomized.org/2009/01/emacs-23-directory-local-variables/</a> for info about setting it up.</p>
<p>You should be able to change compile-command pretty easily with that.</p>
<p>If you prefer your approach, you may as well put the compile commands into run-compile:</p>
<p>(defun run-compile ()<br />
  (interactive)<br />
  (let ((file (buffer-file-name (current-buffer))))<br />
    (compile (cond<br />
              ((string-match &#8220;/src/lib/&#8221; file) &#8220;make-lib-command&#8221;)<br />
              ((string-match &#8220;/src/app/&#8221; file) &#8220;make-app-command&#8221;)<br />
              (t (error &#8220;Invalid unknown/location %s&#8221;<br />
                        (or file (buffer-name))))))))</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: phil</title>
		<link>http://curiousprogrammer.wordpress.com/2009/02/13/build-commands-emacs/#comment-7253</link>
		<dc:creator><![CDATA[phil]]></dc:creator>
		<pubDate>Fri, 13 Feb 2009 13:50:02 +0000</pubDate>
		<guid isPermaLink="false">http://curiousprogrammer.wordpress.com/?p=211#comment-7253</guid>
		<description><![CDATA[Sounds like an opportunity for me to plug project-root, which is available from:

http://www.shellarchive.co.uk/content/emacs.html

It has a simple, clean and out of the way interface which is really good and will make women like you and stuff.]]></description>
		<content:encoded><![CDATA[<p>Sounds like an opportunity for me to plug project-root, which is available from:</p>
<p><a href="http://www.shellarchive.co.uk/content/emacs.html" rel="nofollow">http://www.shellarchive.co.uk/content/emacs.html</a></p>
<p>It has a simple, clean and out of the way interface which is really good and will make women like you and stuff.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pages tagged "curious"</title>
		<link>http://curiousprogrammer.wordpress.com/2009/02/13/build-commands-emacs/#comment-7252</link>
		<dc:creator><![CDATA[Pages tagged "curious"]]></dc:creator>
		<pubDate>Fri, 13 Feb 2009 13:46:56 +0000</pubDate>
		<guid isPermaLink="false">http://curiousprogrammer.wordpress.com/?p=211#comment-7252</guid>
		<description><![CDATA[[...] bookmarks tagged curious A Curious Programmer: Jared&#160;saved by 4 others  &#160;&#160;&#160;&#160;Head1st4Halos7 bookmarked on 02/13/09 &#124; [...]]]></description>
		<content:encoded><![CDATA[<p>[...] bookmarks tagged curious A Curious Programmer: Jared&nbsp;saved by 4 others  &nbsp;&nbsp;&nbsp;&nbsp;Head1st4Halos7 bookmarked on 02/13/09 | [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joakim Hårsman</title>
		<link>http://curiousprogrammer.wordpress.com/2009/02/13/build-commands-emacs/#comment-7251</link>
		<dc:creator><![CDATA[Joakim Hårsman]]></dc:creator>
		<pubDate>Fri, 13 Feb 2009 13:45:56 +0000</pubDate>
		<guid isPermaLink="false">http://curiousprogrammer.wordpress.com/?p=211#comment-7251</guid>
		<description><![CDATA[In Emacs 23 you could use directory local variables to set the build command (and other stuff) per project.

Either add .dir-locals.el in the project root or C-h f dir-locals-set-directory-class and dir-locals-set-class-variables]]></description>
		<content:encoded><![CDATA[<p>In Emacs 23 you could use directory local variables to set the build command (and other stuff) per project.</p>
<p>Either add .dir-locals.el in the project root or C-h f dir-locals-set-directory-class and dir-locals-set-class-variables</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex Ott</title>
		<link>http://curiousprogrammer.wordpress.com/2009/02/13/build-commands-emacs/#comment-7250</link>
		<dc:creator><![CDATA[Alex Ott]]></dc:creator>
		<pubDate>Fri, 13 Feb 2009 13:36:09 +0000</pubDate>
		<guid isPermaLink="false">http://curiousprogrammer.wordpress.com/?p=211#comment-7250</guid>
		<description><![CDATA[I think, that it&#039;s better to look to the EDE package from Cedet (http://cedet.sf.net) - it allows to specify different targets, and build them separately]]></description>
		<content:encoded><![CDATA[<p>I think, that it&#8217;s better to look to the EDE package from Cedet (<a href="http://cedet.sf.net" rel="nofollow">http://cedet.sf.net</a>) &#8211; it allows to specify different targets, and build them separately</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex Bennee</title>
		<link>http://curiousprogrammer.wordpress.com/2009/02/13/build-commands-emacs/#comment-7249</link>
		<dc:creator><![CDATA[Alex Bennee]]></dc:creator>
		<pubDate>Fri, 13 Feb 2009 12:52:28 +0000</pubDate>
		<guid isPermaLink="false">http://curiousprogrammer.wordpress.com/?p=211#comment-7249</guid>
		<description><![CDATA[This is a problem there are many solutions too. I set up a &quot;&lt;a href=&quot;http://github.com/stsquad/my-emacs-stuff/blob/fd04e0fc6dfa0346016a0d0255e5d074b0d90f77/dotemacs#L203&quot; rel=&quot;nofollow&quot;&gt;current-project-root&lt;/a&gt;&quot;
which I use as the basis for for decisions about invoking &lt;a href=&quot;http://github.com/stsquad/my-emacs-stuff/blob/fd04e0fc6dfa0346016a0d0255e5d074b0d90f77/my-c-mode.el#L234&quot; rel=&quot;nofollow&quot;&gt;compile
commands&lt;/a&gt;. The setup here is actually quite simple and is usually
more complex when I have customised compile commands when working in
proprietary environments.

Many people have had &lt;a href=&quot;http://www.emacswiki.org/emacs/ProjectSettings&quot; rel=&quot;nofollow&quot;&gt;similar&lt;/a&gt;
ideas. Maybe one day I&#039;ll either properly rationalise my project code
or use another project package.]]></description>
		<content:encoded><![CDATA[<p>This is a problem there are many solutions too. I set up a &#8220;<a href="http://github.com/stsquad/my-emacs-stuff/blob/fd04e0fc6dfa0346016a0d0255e5d074b0d90f77/dotemacs#L203" rel="nofollow">current-project-root</a>&#8221;<br />
which I use as the basis for for decisions about invoking <a href="http://github.com/stsquad/my-emacs-stuff/blob/fd04e0fc6dfa0346016a0d0255e5d074b0d90f77/my-c-mode.el#L234" rel="nofollow">compile<br />
commands</a>. The setup here is actually quite simple and is usually<br />
more complex when I have customised compile commands when working in<br />
proprietary environments.</p>
<p>Many people have had <a href="http://www.emacswiki.org/emacs/ProjectSettings" rel="nofollow">similar</a><br />
ideas. Maybe one day I&#8217;ll either properly rationalise my project code<br />
or use another project package.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
