From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jason Rumney Newsgroups: gmane.emacs.devel Subject: Re: Build failure on M$ (using MSVC): Patch enclosed Date: Thu, 22 May 2008 09:32:12 +0100 Message-ID: <48352F8C.5030006@gnu.org> 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: ger.gmane.org 1211445170 16717 80.91.229.12 (22 May 2008 08:32:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 22 May 2008 08:32:50 +0000 (UTC) Cc: Eli Zaretskii , Stefan Monnier , emacs-devel@gnu.org To: dhruva Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu May 22 10:33:25 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Jz6Ek-0001fR-HR for ged-emacs-devel@m.gmane.org; Thu, 22 May 2008 10:33:22 +0200 Original-Received: from localhost ([127.0.0.1]:60506 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jz6E0-0002Vs-1g for ged-emacs-devel@m.gmane.org; Thu, 22 May 2008 04:32:36 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jz6Dr-0002Si-4C for emacs-devel@gnu.org; Thu, 22 May 2008 04:32:27 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jz6Dp-0002Rq-7f for emacs-devel@gnu.org; Thu, 22 May 2008 04:32:26 -0400 Original-Received: from [199.232.76.173] (port=34324 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jz6Do-0002RH-KU for emacs-devel@gnu.org; Thu, 22 May 2008 04:32:24 -0400 Original-Received: from mk-outboundfilter-3.mail.uk.tiscali.com ([212.74.114.23]:19185) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Jz6Dg-0000NW-Cj; Thu, 22 May 2008 04:32:16 -0400 Original-X-Trace: 120031324/mk-outboundfilter-1.mail.uk.tiscali.com/F2S/$ACCEPTED/freedom2Surf-customers/83.67.23.108 X-SBRS: None X-RemoteIP: 83.67.23.108 X-IP-MAIL-FROM: jasonr@gnu.org X-IP-BHB: Once X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArwEAF7MNEhTQxds/2dsb2JhbACBVa4L X-IronPort-AV: E=Sophos;i="4.27,524,1204502400"; d="scan'208";a="120031324" X-IP-Direction: IN Original-Received: from i-83-67-23-108.freedom2surf.net (HELO wanchan.jasonrumney.net) ([83.67.23.108]) by smtp.f2s.tiscali.co.uk with ESMTP; 22 May 2008 09:32:14 +0100 Original-Received: from [192.168.249.27] (chiko.jasonrumney.net [192.168.249.27]) by wanchan.jasonrumney.net (Postfix) with ESMTP id DE54E15B9; Thu, 22 May 2008 09:32:13 +0100 (BST) User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) In-Reply-To: X-Enigmail-Version: 0.95.6 OpenPGP: id=8086879D X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:97508 Archived-At: dhruva wrote: > Well, I was not aware of that function. Looking a little deeper into > it, it does not traverse above the current user $HOME (~/ or %HOME%). > This code needs to go all the way till the top. Since it does a > username comparison, it apprears a bit more expensive (based on gut > feel though). > > > my HOME is set to: c:/users/dhruva > My lisp expresssion: (locate-dominating-file > "c:/users/dhruva/stub/git/emacs/" ".dir-settings.el") > 1. I place the .dir-settings.el under "C:/" and I get a nil > 2. I move the file under HOME (c:/users/dhruva/.dir-settings.el) and get it. > => It does not traverse beyond the HOME directory. > If you run (locate-dominating-file "c:/some/other/path" ".dir-settings.el"), does it go all the way to the top, or does it not search at all? I think it is OK to stop at ~/ when inside the users home directory, as that will be what most users want.