From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: CRLF0710 Newsgroups: gmane.emacs.bugs Subject: bug#9481: Fwd: bug#9481: 24.0.50; emacs_dir behavior too cumbersome for use within msys Date: Mon, 12 Sep 2011 17:15:46 +0800 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1315819011 31884 80.91.229.12 (12 Sep 2011 09:16:51 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 12 Sep 2011 09:16:51 +0000 (UTC) To: 9481@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Sep 12 11:16:48 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1R32dD-0003ta-0e for geb-bug-gnu-emacs@m.gmane.org; Mon, 12 Sep 2011 11:16:47 +0200 Original-Received: from localhost ([::1]:49414 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R32dC-0007Sq-Fy for geb-bug-gnu-emacs@m.gmane.org; Mon, 12 Sep 2011 05:16:46 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:58185) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R32d9-0007Pn-FW for bug-gnu-emacs@gnu.org; Mon, 12 Sep 2011 05:16:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R32d8-0005XJ-4a for bug-gnu-emacs@gnu.org; Mon, 12 Sep 2011 05:16:43 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:45759) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R32d8-0005XD-20 for bug-gnu-emacs@gnu.org; Mon, 12 Sep 2011 05:16:42 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1R32hK-0006YV-3F; Mon, 12 Sep 2011 05:21:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: CRLF0710 Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 12 Sep 2011 09:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9481 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 9481-submit@debbugs.gnu.org id=B9481.131581923125159 (code B ref 9481); Mon, 12 Sep 2011 09:21:02 +0000 Original-Received: (at 9481) by debbugs.gnu.org; 12 Sep 2011 09:20:31 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R32gn-0006Xj-N1 for submit@debbugs.gnu.org; Mon, 12 Sep 2011 05:20:30 -0400 Original-Received: from mail-yi0-f44.google.com ([209.85.218.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R32gk-0006Xa-Uj for 9481@debbugs.gnu.org; Mon, 12 Sep 2011 05:20:27 -0400 Original-Received: by yie12 with SMTP id 12so1637141yie.3 for <9481@debbugs.gnu.org>; Mon, 12 Sep 2011 02:16:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; bh=HszI00ROEwmN2QChR99BJ/MTlU1M5DdOuKtcp0fymck=; b=KwmfnraTsVWoY+slWTKVBinxcwU/v5LfHKDs8F8BBeWx2dtE2ifLi7224S+zC1mFkV yPB23ngM7iCHQNzPeG2FFoJ22IpJ2kiu0mT89GXRjQSrtc1zC7d0P0GJ0If6KHXt03GX NkHRff/OZCrZLK9njULeVVpQ1vcJ+LAdk35IY= Original-Received: by 10.151.123.8 with SMTP id a8mr899789ybn.320.1315818966147; Mon, 12 Sep 2011 02:16:06 -0700 (PDT) Original-Received: by 10.151.45.11 with HTTP; Mon, 12 Sep 2011 02:15:46 -0700 (PDT) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 12 Sep 2011 05:21:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) 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:51051 Archived-At: ---------- Forwarded message ---------- From: CRLF0710 Date: 2011/9/12 Subject: Re: bug#9481: 24.0.50; emacs_dir behavior too cumbersome for use within msys To: Eli Zaretskii What i met is exactly the second case, however one of the environment variables should be(according to the code): set EMACSLOADPATH=3DX:/share/emacs//site-lisp;X:/share/emacs//../site-lisp;X:/share/emacs//lisp;X:/share/emacs//le= im And with the other two paths, I'll have to repeat the string "X:/share/emacs/" for six times, by hand. which is exactly the emacs_dir variable. "addpm.exe" won't help in this case because it will generate incorrect path variables in the registry which will be overridden by the code i mentioned above. At the same time it will overwrite old settings. So this is a little inconvenient. If you think this case is not TOO rare, maybe you can consider fixing it from the code? 2011/9/12 Eli Zaretskii : >> From: CRLF0710 >> Date: Mon, 12 Sep 2011 16:01:44 +0800 >> >> emacs_dir is a special environment variable on Win32. If Emacs.exe is >> located in a "bin/" directory, it will be calculated, which is not a >> desired behavior at all times. >> >> One might want to use it in msys and organize the emacs files in a way >> similiar to that of *nix systems. To fulfill this, one might want to >> set emacs_dir to the *:/share/emacs// directory. This works >> unless the emacs.exe is in the *:/bin directory(in fact any directory >> which is not with the name "bin" or "i386"). > > Sorry, I don't follow your use case and the problems you are > experiencing due to the setting of emacs_dir. =A0Please describe in more > details: > > =A0. in which directory you want to install the emacs.exe binary > =A0. why do you need to break the structure of the Emacs tree that is > =A0 =A0assumed by the current code > =A0. what does this all have to do with MSYS > > IOW, this installation should work: > > =A0 X:/share/emacs//bin/emacs.exe > =A0 X:/share/emacs//lisp/ > =A0 X:/share/emacs//etc/ > > This should also work: > > =A0 X:/usr/local/bin/emacs.exe > =A0 X:/share/emacs//lisp/ > =A0 X:/share/emacs//etc/ > =A0 set EMACSLOADPATH=3DX:/share/emacs//lisp > =A0 set EMACSDATA=3DX:/share/emacs//etc > =A0 set EMACSDOC=3DX:/share/emacs//etc > > Both of the above should work without any need to change anything in > the code. > > If you need some different configuration, please describe it and the > rationale for using it rather than the supported ones. > > Thanks. > -- Wir m=FCssen wissen; wir werden wissen! CrLF.0710