From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Build failure on M$ (using MSVC): Patch enclosed Date: Wed, 21 May 2008 13:28:32 -0400 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1211390954 27245 80.91.229.12 (21 May 2008 17:29:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 21 May 2008 17:29:14 +0000 (UTC) Cc: Eli Zaretskii , emacs-devel@gnu.org To: dhruva Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed May 21 19:29:52 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 1Jys7z-0005ND-Qx for ged-emacs-devel@m.gmane.org; Wed, 21 May 2008 19:29:28 +0200 Original-Received: from localhost ([127.0.0.1]:57180 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jys7F-00069T-Er for ged-emacs-devel@m.gmane.org; Wed, 21 May 2008 13:28:41 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jys7A-00066J-0P for emacs-devel@gnu.org; Wed, 21 May 2008 13:28:36 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jys78-00063c-Id for emacs-devel@gnu.org; Wed, 21 May 2008 13:28:35 -0400 Original-Received: from [199.232.76.173] (port=57850 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jys78-00063P-AZ for emacs-devel@gnu.org; Wed, 21 May 2008 13:28:34 -0400 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:39899) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Jys78-0000ex-9o for emacs-devel@gnu.org; Wed, 21 May 2008 13:28:34 -0400 Original-Received: from ceviche.home (vpn-132-204-232-142.acd.umontreal.ca [132.204.232.142]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id m4LHSWhZ013415 for ; Wed, 21 May 2008 13:28:32 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 33FB4700D5; Wed, 21 May 2008 13:28:32 -0400 (EDT) In-Reply-To: (dhruva's message of "Wed, 21 May 2008 08:43:35 +0530") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV3021=0 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) 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:97482 Archived-At: > diff --git a/lisp/files.el b/lisp/files.el > index ee5efe4..bb8a021 100644 > --- a/lisp/files.el > +++ b/lisp/files.el > @@ -3120,8 +3120,9 @@ If the file is in a registered project, a cons from > `project-directory-alist' is returned. > Otherwise this returns nil." > (let ((dir (file-name-directory file)) > - (result nil)) > - (while (and (not (string= dir "/")) > + (result nil) > + (prevdir nil)) > + (while (and (not (string= dir prevdir)) > (not result)) > (cond > ((setq result (assoc dir project-directory-alist)) > @@ -3130,6 +3131,7 @@ Otherwise this returns nil." > ((file-exists-p (expand-file-name ".dir-settings.el" dir)) > (setq result (expand-file-name ".dir-settings.el" dir))) > (t > + (setq prevdir dir) > (setq dir (file-name-directory (directory-file-name dir)))))) > result)) Actually, why doesn't this code use locate-dominating-file? Stefan