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: Directory structure changes in Emacs installed on MS-Windows Date: Fri, 05 Apr 2013 17:18:05 +0300 Message-ID: <831uapf4de.fsf@gnu.org> References: <83r4iqfaw1.fsf@gnu.org> <85obdtlwz6.fsf@member.fsf.org> <83d2u9fr4a.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1365278659 29893 80.91.229.3 (6 Apr 2013 20:04:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 6 Apr 2013 20:04:19 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Apr 06 22:04:18 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 1UOZJj-0001Uu-Vb for ged-emacs-devel@m.gmane.org; Sat, 06 Apr 2013 22:02:28 +0200 Original-Received: from localhost ([::1]:38122 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UO7TG-0006kc-HE for ged-emacs-devel@m.gmane.org; Fri, 05 Apr 2013 10:18:26 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:37256) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UO7T5-0006kF-8n for emacs-devel@gnu.org; Fri, 05 Apr 2013 10:18:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UO7Sw-0003oG-2d for emacs-devel@gnu.org; Fri, 05 Apr 2013 10:18:15 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:37289) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UO7Sv-0003nt-RB for emacs-devel@gnu.org; Fri, 05 Apr 2013 10:18:06 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0MKS00C00CTGN300@a-mtaout22.012.net.il> for emacs-devel@gnu.org; Fri, 05 Apr 2013 17:18:04 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MKS00C5RD23AS90@a-mtaout22.012.net.il>; Fri, 05 Apr 2013 17:18:04 +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:158721 Archived-At: > From: Stefan Monnier > Cc: Stephen Leake , emacs-devel@gnu.org > Date: Fri, 05 Apr 2013 09:19:21 -0400 > > > It would be important if it were true, but I don't think it's true. > > The way epaths.h is generated from epaths.in on Posix platforms leaves > > the root of the Emacs installation tree (specified via --prefix) > > hard-coded into the binary, and Emacs (AFAIK) currently doesn't > > support relocation of the installation tree on Posix systems. > > By contrast, on Windows relocation is a matter of routine. So I cannot > > use the epaths-force target of the top-level Makefile anyway. > > FWIW, such a relocation issue came up with the NS port, and as > I pointed out back then, it would be better to do it once and for all > uniformly, i.e. also do that relocation for posix platforms. I believe you are talking about this: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=11959#53 No one picked up that gauntlet. One piece of the puzzle that is still missing (at least as far as I'm concerned) for its solution is how to reliably determine on Posix platforms the directory where the invoked Emacs executable lives. I vaguely remember that the value of argv[0] is unreliable, and therefore even searching for it on PATH won't do. How can that be done reliably?