From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#11959: 24.1.50; Warning: Lisp directory `C:/Emacs-24-2012-07-16/../site-lisp' does not exist. Date: Sat, 04 Aug 2012 17:30:12 +0300 Message-ID: <838vdubuh7.fsf@gnu.org> References: <623F1AC1C2E540D09676869BBDA4B15A@us.oracle.com> <83hat69thh.fsf@gnu.org> <838veh9kxu.fsf@gnu.org> <836295hqgi.fsf@gnu.org> <83txwneu13.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: dough.gmane.org 1344090688 16732 80.91.229.3 (4 Aug 2012 14:31:28 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 4 Aug 2012 14:31:28 +0000 (UTC) Cc: cyd@gnu.org, 11959-done@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Aug 04 16:31:28 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1SxfO1-0007hr-5E for geb-bug-gnu-emacs@m.gmane.org; Sat, 04 Aug 2012 16:31:25 +0200 Original-Received: from localhost ([::1]:48477 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SxfO0-00077c-BA for geb-bug-gnu-emacs@m.gmane.org; Sat, 04 Aug 2012 10:31:24 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:56711) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SxfNx-00077H-OK for bug-gnu-emacs@gnu.org; Sat, 04 Aug 2012 10:31:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SxfNw-0006qz-PW for bug-gnu-emacs@gnu.org; Sat, 04 Aug 2012 10:31:21 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52144) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SxfNw-0006qq-Ld for bug-gnu-emacs@gnu.org; Sat, 04 Aug 2012 10:31:20 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SxfVO-0003Js-8K for bug-gnu-emacs@gnu.org; Sat, 04 Aug 2012 10:39:02 -0400 Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Sat, 04 Aug 2012 14:39:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 11959 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 11959@debbugs.gnu.org, eliz@gnu.org Original-Received: via spool by 11959-done@debbugs.gnu.org id=D11959.134409108312693 (code D ref 11959); Sat, 04 Aug 2012 14:39:01 +0000 Original-Received: (at 11959-done) by debbugs.gnu.org; 4 Aug 2012 14:38:03 +0000 Original-Received: from localhost ([127.0.0.1]:33456 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SxfUR-0003If-4O for submit@debbugs.gnu.org; Sat, 04 Aug 2012 10:38:03 -0400 Original-Received: from mtaout23.012.net.il ([80.179.55.175]:34330) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SxfUM-0003ID-WB for 11959-done@debbugs.gnu.org; Sat, 04 Aug 2012 10:38:00 -0400 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0M8800900IY34500@a-mtaout23.012.net.il> for 11959-done@debbugs.gnu.org; Sat, 04 Aug 2012 17:30:15 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0M88008ZXIYEZQ80@a-mtaout23.012.net.il>; Sat, 04 Aug 2012 17:30:15 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:62814 Archived-At: > From: Stefan Monnier > Cc: Glenn Morris , cyd@gnu.org, 11959@debbugs.gnu.org > Date: Wed, 01 Aug 2012 16:32:01 -0400 > > >> > I would encourage to rewrite that code on all platforms to allow > >> > relocation of the binary, since that cannot be bad on any platform. > >> I think this would be pretty straightforward to implement (bascially > >> just copy what the NS port does), if considered generally desirable. > > I'm waiting for Stefan and Chong to chime in. > > Sounds fine to me, Upon studying the NS code, I didn't like it. It's too platform-specific (so would require implementing the same stuff at least one more time), and it bypasses most of the code in emacs.c, callproc.c, and lread.c that sets up the various VFOO_directory and VBAR_path variables on Posix platforms, and IMO for no good reason, since the logic of that code is generally correct and useful. So instead I made a few changes in decode_env_path that allow use of a "magical" prefix in strings defined in epaths.h. That prefix is expanded at startup time into the root of the Emacs tree, either installation tree or the source tree. (Some changes to support these were needed in w32.c and nt/paths.h, as well.) This allows to leave the logic in init_lread and other similar places intact, and still DTRT both in installed and uninstalled Emacs. The advantage of this is that making this work on all the other platforms is (I hope) _really_ trivial; we just need to agree on some suitable replacement for the %emacs_dir% thingy. The changes I installed (in trunk revision 109429) are for MS-Windows only for now. This eliminates the annoying warning that started this bug report, and I'm therefore marking this bug as done.