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#9481: Fwd: bug#9481: 24.0.50; emacs_dir behavior too cumbersome for use within msys Date: Mon, 12 Sep 2011 06:40:55 -0400 Message-ID: References: Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1315824114 2260 80.91.229.12 (12 Sep 2011 10:41:54 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 12 Sep 2011 10:41:54 +0000 (UTC) Cc: 9481@debbugs.gnu.org To: CRLF0710 Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Sep 12 12:41: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 1R33xT-0007lg-92 for geb-bug-gnu-emacs@m.gmane.org; Mon, 12 Sep 2011 12:41:47 +0200 Original-Received: from localhost ([::1]:46243 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R33xS-0000TV-Js for geb-bug-gnu-emacs@m.gmane.org; Mon, 12 Sep 2011 06:41:46 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:54927) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R33xQ-0000TM-E9 for bug-gnu-emacs@gnu.org; Mon, 12 Sep 2011 06:41:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R33xP-0004xR-C5 for bug-gnu-emacs@gnu.org; Mon, 12 Sep 2011 06:41:44 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:33011) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R33xP-0004xN-9J for bug-gnu-emacs@gnu.org; Mon, 12 Sep 2011 06:41:43 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1R341b-0004C9-FN; Mon, 12 Sep 2011 06:46:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii 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 10:46:03 +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.131582433115540 (code B ref 9481); Mon, 12 Sep 2011 10:46:03 +0000 Original-Received: (at 9481) by debbugs.gnu.org; 12 Sep 2011 10:45: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 1R3413-00042O-NN for submit@debbugs.gnu.org; Mon, 12 Sep 2011 06:45:31 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R340r-0003yu-As for 9481@debbugs.gnu.org; Mon, 12 Sep 2011 06:45:22 -0400 Original-Received: from eliz by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1R33wd-00058r-Vn; Mon, 12 Sep 2011 06:40:56 -0400 In-reply-to: (message from CRLF0710 on Mon, 12 Sep 2011 17:15:46 +0800) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 12 Sep 2011 06:46:03 -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:51052 Archived-At: > From: CRLF0710 > Date: Mon, 12 Sep 2011 17:15:46 +0800 > > What i met is exactly the second case, however one of the environment > variables should be(according to the code): > > set EMACSLOADPATH=X:/share/emacs//site-lisp;X:/share/emacs//../site-lisp;X:/share/emacs//lisp;X:/share/emacs//leim > > 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. You set these variables in some startup script or in .bash_rc, and that's it. It's a one-time thing. > So this is a little inconvenient. If you think this case is not TOO > rare, maybe you can consider fixing it from the code? I don't mind adding something, but what you originally suggested is a non-starter, because the current operation with forceful setting of emacs_dir must stay, as most users need it. You cannot blindly obey an external setting of emacs_dir, because it could come from an incompatible Emacs version, e.g., if one version of Emacs spawns a shell that then runs another version. So if you can suggest a way that leaves the emacs_dir variable alone, but still lets you do what you want more conveniently, please do. Personally, I don't think that setting 3 environment variables is such a grave problem, but that's me. By the way, you didn't tell why you need this configuration and what does it have to do with MSYS.