From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Building Emacs from a new MinGW environment Date: Thu, 19 Sep 2013 13:11:51 +0300 Message-ID: <834n9hm87s.fsf@gnu.org> References: <83sixwfdjk.fsf@gnu.org> <834n9nhhp6.fsf@gnu.org> <83ppsbfoe7.fsf@gnu.org> <83mwnffkom.fsf@gnu.org> <83k3ijfhk0.fsf@gnu.org> <83hadnf7gs.fsf@gnu.org> <83hadmqvql.fsf@gnu.org> <83txhkpszv.fsf@gnu.org> <83pps8pnc9.fsf@gnu.org> <83ob7splia.fsf@gnu.org> <83k3ifq5o5.fsf@gnu.org> <83d2o7q28r.fsf@gnu.org> <8338p3pded.fsf@gnu.org> <83r4cmo9m2.fsf@gnu.org> <83bo3pmc8b.fsf@gnu.org> <8361txm9r1.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1379585528 28653 80.91.229.3 (19 Sep 2013 10:12:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 19 Sep 2013 10:12:08 +0000 (UTC) Cc: emacs-devel@gnu.org To: Dani Moncayo Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Sep 19 12:12:12 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VMbDW-00040C-6U for ged-emacs-devel@m.gmane.org; Thu, 19 Sep 2013 12:12:10 +0200 Original-Received: from localhost ([::1]:50405 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VMbDV-00082J-L5 for ged-emacs-devel@m.gmane.org; Thu, 19 Sep 2013 06:12:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48491) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VMbDN-00081a-GS for emacs-devel@gnu.org; Thu, 19 Sep 2013 06:12:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VMbDI-00059F-9h for emacs-devel@gnu.org; Thu, 19 Sep 2013 06:12:01 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:34616) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VMbDI-000598-1F for emacs-devel@gnu.org; Thu, 19 Sep 2013 06:11:56 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0MTD00A00A857700@a-mtaout22.012.net.il> for emacs-devel@gnu.org; Thu, 19 Sep 2013 13:11:52 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MTD00AY3AZQCW10@a-mtaout22.012.net.il>; Thu, 19 Sep 2013 13:11:50 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.172 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:163460 Archived-At: > Date: Thu, 19 Sep 2013 12:04:06 +0200 > From: Dani Moncayo > Cc: Emacs development discussions > > > In a nutshell, srcdir is now guaranteed to be in /d/foo/bar format, > > and should be edited into d:/foo/bar when it is placed in > > src/epaths.h. The job is to remove anything from top-level > > Makefile.in that is required for file names in format other than > > /d/foo/bar, and still allow using %emacs_dir% in > > '--enable-locallisppath=PATH' option to configure. So I think > > msys_to_w32 should stay intact, but msys_lisppath_to_w32 could be > > simplified. > > A more ambitious goal, IMO, would be to understand what is the problem > with doing every conversion of MSYS paths to native w32 format with > "pwd -W", so that the pattern-matching technique could be entirely > replaced with that simpler and more elegant one. That's a possibility, but note that "pwd -W" requires that you cd into the directory first, which might be a problem in some rare cases. Also msys_lisppath_to_w32 works on PATH-style directory lists, not on single directories, and some of those directories might not exist, or include %emacs_dir%, which will cause pwd to fail. If these difficulties can be overcome, I have nothing against using "pwd -W".