--- /dev/null
+Return-Path: <tomi.ollila@iki.fi>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by olra.theworths.org (Postfix) with ESMTP id 25043431FB6\r
+ for <notmuch@notmuchmail.org>; Wed, 18 Apr 2012 09:03:53 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
+ autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+ by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id dfn02u-yn0SJ for <notmuch@notmuchmail.org>;\r
+ Wed, 18 Apr 2012 09:03:48 -0700 (PDT)\r
+Received: from guru.guru-group.fi (guru-group.fi [87.108.86.66])\r
+ by olra.theworths.org (Postfix) with ESMTP id 476AF431FAE\r
+ for <notmuch@notmuchmail.org>; Wed, 18 Apr 2012 09:03:48 -0700 (PDT)\r
+Received: by guru.guru-group.fi (Postfix, from userid 501)\r
+ id 2C46068056; Wed, 18 Apr 2012 19:03:45 +0300 (EEST)\r
+From: Tomi Ollila <tomi.ollila@iki.fi>\r
+To: Felipe Contreras <felipe.contreras@gmail.com>\r
+Subject: Re: [PATCH] vim: simplify build\r
+In-Reply-To:\r
+ <CAMP44s0icH2UfnmFJ9=DDGKUzs4jNLHdnHBZ9Yxnd-Ka2nor_A@mail.gmail.com>\r
+References: <1334751115-7216-1-git-send-email-felipe.contreras@gmail.com>\r
+ <m2ty0hxk0p.fsf@guru.guru-group.fi>\r
+ <CAMP44s3wmEnP=iMQY0gvNKPNAQnMVgCGmkqqaD+L3Fd8nhnMGQ@mail.gmail.com>\r
+ <871unlgk7h.fsf@zancas.localnet>\r
+ <m2sjg1dp51.fsf@guru.guru-group.fi>\r
+ <CAMP44s0icH2UfnmFJ9=DDGKUzs4jNLHdnHBZ9Yxnd-Ka2nor_A@mail.gmail.com>\r
+User-Agent: Notmuch/0.12+113~gde05574 (http://notmuchmail.org) Emacs/23.3.1\r
+ (x86_64-unknown-linux-gnu)\r
+X-Face: HhBM'cA~<r"^Xv\KRN0P{vn'Y"Kd;zg_y3S[4)KSN~s?O\"QPoL\r
+ $[Xv_BD:i/F$WiEWax}R(MPS`^UaptOGD`*/=@\1lKoVa9tnrg0TW?"r7aRtgk[F\r
+ !)g;OY^,BjTbr)Np:%c_o'jj,Z\r
+Date: Wed, 18 Apr 2012 19:03:44 +0300\r
+Message-ID: <m2ty0huivz.fsf@guru.guru-group.fi>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=utf-8\r
+Content-Transfer-Encoding: quoted-printable\r
+Cc: notmuch@notmuchmail.org\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Wed, 18 Apr 2012 16:03:53 -0000\r
+\r
+On Wed, Apr 18 2012, Felipe Contreras <felipe.contreras@gmail.com> wrote:\r
+\r
+> On Wed, Apr 18, 2012 at 6:40 PM, Tomi Ollila <tomi.ollila@iki.fi> wrote:\r
+>> On Wed, Apr 18 2012, David Bremner <david@tethera.net> wrote:\r
+>>\r
+>>> Felipe Contreras <felipe.contreras@gmail.com> writes:\r
+>>>>> If this is not an issue, then LGTM.\r
+>>>>\r
+>>>> I don't know, I have always used $(PWD), unless anybody else prefers\r
+>>>> $(CURDIR), I'll push that.\r
+>>>\r
+>>> I think CURDIR is better; if only because it is the standard (GNU) make\r
+>>> way of doing things [1]. =C2=A0I'm not sure if there is a functional\r
+>>> difference or not. At least CURDIR definitely works with make -C [2]\r
+>>\r
+>> I read some web pages and then did an experiment; GNU make (v 3.77+)\r
+>> has builtin variable $(CURDIR). $(PWD) gets value from environment:\r
+>>\r
+>> doing the following:\r
+>>\r
+>> $ cat > foo.mk <<EOF\r
+>> all:\r
+>> =C2=A0 =C2=A0 =C2=A0 =C2=A0pwd=3D`pwd`; echo $pwd\r
+>> =C2=A0 =C2=A0 =C2=A0 =C2=A0echo $(CURDIR)\r
+>> =C2=A0 =C2=A0 =C2=A0 =C2=A0echo $(PWD)\r
+>> EOF\r
+>> $ PWD=3D make -f foo.mk\r
+>> pwd=3D`pwd`; echo $pwd\r
+>\r
+> Agh! Complete confusion. Add an '@' before echo =3D/\r
+\r
+Actually I wonder where one '$' was lose in line pwd=3D`pwd`; echo $$pwd\r
+\r
+>> So, most portable option would be using pwd=3D`pwd`; echo $pwd\r
+>> construct in the makefile. Next option would be using $(CURDIR)\r
+>> and it works with -C (and with original bourne shell which does\r
+>> not manage $PWD). That is GNU make (v 3.77+) spesific but the makefiles\r
+>> use GNU make constructs elsewhere too.\r
+>\r
+> I think `pwd` is overkill. I vote for $(CURDIR), although $$PWD\r
+> wouldn't be bad either.\r
+\r
+So, $(CURDIR) has 3 votes :D\r
+\r
+>\r
+> Cheers.\r
+>\r
+> --=20\r
+> Felipe Contreras\r
+\r
+Tomi\r