From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Herbert Euler Newsgroups: gmane.emacs.devel Subject: RE: Two problems of building Emacs on windows Date: Fri, 19 Oct 2007 20:09:26 +0800 Message-ID: References: <471898EE.3010102@gnu.org> NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0554756527==" X-Trace: ger.gmane.org 1192795791 2007 80.91.229.10 (19 Oct 2007 12:09:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 19 Oct 2007 12:09:51 +0000 (UTC) Cc: emacs-devel@gnu.org To: Jason Rumney , Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 19 14:11:46 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by dough.gmane.org with esmtp (Exim 4.50) id 1Iiqhc-0001JJ-Rc for ged-emacs-devel@m.gmane.org; Fri, 19 Oct 2007 14:11:45 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Iiqfe-00025A-F2 for ged-emacs-devel@m.gmane.org; Fri, 19 Oct 2007 08:09:42 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Iiqfb-00024g-3t for emacs-devel@gnu.org; Fri, 19 Oct 2007 08:09:39 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IiqfZ-00023U-C0 for emacs-devel@gnu.org; Fri, 19 Oct 2007 08:09:38 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IiqfZ-000238-5E for emacs-devel@gnu.org; Fri, 19 Oct 2007 08:09:37 -0400 Original-Received: from bay0-omc2-s26.bay0.hotmail.com ([65.54.246.162]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IiqfP-0002f8-Ve; Fri, 19 Oct 2007 08:09:28 -0400 Original-Received: from BAY143-W4 ([65.55.154.39]) by bay0-omc2-s26.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Fri, 19 Oct 2007 05:09:27 -0700 X-Originating-IP: [216.145.54.7] Importance: Normal In-Reply-To: <471898EE.3010102@gnu.org> X-OriginalArrivalTime: 19 Oct 2007 12:09:27.0323 (UTC) FILETIME=[E540BEB0:01C81248] X-detected-kernel: by monty-python.gnu.org: Windows 2000 SP4, XP SP1+ 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:81213 Archived-At: --===============0554756527== Content-Type: multipart/alternative; boundary="_f20bc061-b812-4ec6-9e9a-759b7d719237_" --_f20bc061-b812-4ec6-9e9a-759b7d719237_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable > However, when > emacs is dumped, it uses the hardcoded paths in epaths.h on Windows (I'm > not sure why this is not the case on GNU/Linux), This is exactly because the existence of `lib-src' in the same directory where `etc' exists: please read `init_cmdargs' in main.c. The inexistence causes Emacs not setting `installation-directory' to a proper value but leaving it nil, so later in the Emacs' starting up process `doc-directory' is left the one in nt\paths.h. If you create `lib-src' in $(OBJDIR) and copy the file buildobj.lst into et= c, it will not use the "hardcoded paths" and use the correct path instead. Regards, Guanpeng Xu _________________________________________________________________ Connect to the next generation of MSN Messenger=A0 http://imagine-msn.com/messenger/launch80/default.aspx?locale=3Den-us&sourc= e=3Dwlmailtagline= --_f20bc061-b812-4ec6-9e9a-759b7d719237_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

> However, when
> emacs is dumped, it uses the hardcoded p= aths in epaths.h on Windows (I'm
> not sure why this is not the case = on GNU/Linux),

This is exactly because the existence of `lib-src' in= the same directory
where `etc' exists: please read `init_cmdargs' in ma= in.c.  The inexistence
causes Emacs not setting `installation-direc= tory' to a proper value but
leaving it nil, so later in the Emacs' start= ing up process `doc-directory'
is left the one in nt\paths.h.

If = you create `lib-src' in $(OBJDIR) and copy the file buildobj.lst into etc,<= br>it will not use the "hardcoded paths" and use the correct path instead.<= br>
Regards,
Guanpeng Xu


Connect to the next generatio= n of MSN Messenger=A0 Get it= now! = --_f20bc061-b812-4ec6-9e9a-759b7d719237_-- --===============0554756527== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel --===============0554756527==--