From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" 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: Wed, 18 Jul 2012 08:20:15 -0700 Message-ID: References: <623F1AC1C2E540D09676869BBDA4B15A@us.oracle.com> <83hat69thh.fsf@gnu.org> <838veh9kxu.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1342624880 24094 80.91.229.3 (18 Jul 2012 15:21:20 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 18 Jul 2012 15:21:20 +0000 (UTC) Cc: 11959@debbugs.gnu.org To: "'Eli Zaretskii'" , "'Glenn Morris'" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jul 18 17:21:19 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 1SrW3w-000156-4y for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 Jul 2012 17:21:16 +0200 Original-Received: from localhost ([::1]:51558 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SrW3v-0007TJ-Dp for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 Jul 2012 11:21:15 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:41254) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SrW3k-0007RS-K3 for bug-gnu-emacs@gnu.org; Wed, 18 Jul 2012 11:21:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SrW3c-0004TG-Lk for bug-gnu-emacs@gnu.org; Wed, 18 Jul 2012 11:21:04 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39127) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SrW3c-0004TC-I4 for bug-gnu-emacs@gnu.org; Wed, 18 Jul 2012 11:20:56 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SrW9W-0007ZM-6Q for bug-gnu-emacs@gnu.org; Wed, 18 Jul 2012 11:27:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Drew Adams" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 18 Jul 2012 15:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11959 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 11959-submit@debbugs.gnu.org id=B11959.134262519129059 (code B ref 11959); Wed, 18 Jul 2012 15:27:02 +0000 Original-Received: (at 11959) by debbugs.gnu.org; 18 Jul 2012 15:26:31 +0000 Original-Received: from localhost ([127.0.0.1]:48673 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SrW91-0007Yd-21 for submit@debbugs.gnu.org; Wed, 18 Jul 2012 11:26:31 -0400 Original-Received: from acsinet15.oracle.com ([141.146.126.227]:29655) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SrW8x-0007YU-Rb for 11959@debbugs.gnu.org; Wed, 18 Jul 2012 11:26:29 -0400 Original-Received: from ucsinet21.oracle.com (ucsinet21.oracle.com [156.151.31.93]) by acsinet15.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id q6IFKI6O014695 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 18 Jul 2012 15:20:19 GMT Original-Received: from acsmt358.oracle.com (acsmt358.oracle.com [141.146.40.158]) by ucsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id q6IFKHhR021994 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 18 Jul 2012 15:20:17 GMT Original-Received: from abhmt114.oracle.com (abhmt114.oracle.com [141.146.116.66]) by acsmt358.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id q6IFKG38010553; Wed, 18 Jul 2012 10:20:16 -0500 Original-Received: from dradamslap1 (/130.35.178.194) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 18 Jul 2012 08:20:16 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <838veh9kxu.fsf@gnu.org> Thread-Index: Ac1k9aV/W5EVB3CCQ0yfb9HN8Ko4gQAAi5JA X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Source-IP: ucsinet21.oracle.com [156.151.31.93] 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:62109 Archived-At: > The reason for this are the changes made by Glenn in revision 108939. > Prior to those changes, when load-path was determined by the value of > EMACSLOADPATH environment variable, the resulting list was never > checked to verify that every directory there exists. Now load-path > determined that way _is_ checked. May I ask why? What was the problem with allowing non-existing directories in `load-path'? A priori, that sounds like the _right_ thing to do. And what is done now whenever one such is encountered - just print a warning? > The other part of the puzzle is that when Emacs on Windows starts, it > always defines EMACSLOADPATH and puts 2 site-lisp directories into it: > one that is in the same tree as the binary, which is supposed to be > version dependent, and another one that is a sibling of the root of > the installed tree, which is supposed to be version-independent. You mean that it does so systematically, in a hard-coded fashion? Or does it put those there only if such directories exist? > This is for compatibility with Emacs on Posix platforms, where we > also push 2 directories onto load-path: > /usr/local/share/emacs/XY.Z/site-lisp and > /usr/local/share/emacs/site-lisp, respectively. However, unlike > on Unix, on Windows there's no test whether these directories actually > exist, because this was never a problem with the old code. > > But now, that the value of EMACSLOADPATH is being checked, we are > seeing these warnings (unless Emacs is invoked with -Q), and I'm > guessing that most Emacs users on Windows don't have a > version-independent site-lisp directory, so most of them will be > affected. > > It would be easy enough to make sure the site-lisp directories exist > before adding them to EMACSLOADPATH on Windows. But before doing so, > I'd like to understand why was the behavior in init_lread changed so > as to check EMACSLOADPATH in the first place? That was my question also. Just what problem is that trying to solve? > And if we do want to check that, why not exempt the site-lisp > directories from the need to exist, like we do in the case where > EMACSLOADPATH is not set? Such exceptionalism smacks of fragile design. What applies to site-lisp might apply to some other directory as well (tomorrow, if not today). But I don't have a puppy in this critter crawl - just curious why the change was made.