From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Re: "load-file" surreptitiously pushes directories onto load-path. Date: 9 Apr 2007 12:16:16 +0200 Message-ID: <20070409110222.GB1065@muc.de> References: <20070408221024.GA1395@muc.de> <17946.90.547705.72200@farnswood.snap.net.nz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1176114105 6701 80.91.229.12 (9 Apr 2007 10:21:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 9 Apr 2007 10:21:45 +0000 (UTC) Cc: emacs-devel@acm.muc.de To: Nick Roberts Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Apr 09 12:21:08 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HaqxF-0002ur-Na for ged-emacs-devel@m.gmane.org; Mon, 09 Apr 2007 12:18:33 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Har13-000860-GN for ged-emacs-devel@m.gmane.org; Mon, 09 Apr 2007 06:22:29 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Haqyy-0004iE-4z for emacs-devel@gnu.org; Mon, 09 Apr 2007 06:20:20 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Haqyt-0004gB-Tm for emacs-devel@gnu.org; Mon, 09 Apr 2007 06:20:18 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Haqyt-0004g3-Fg for emacs-devel@gnu.org; Mon, 09 Apr 2007 06:20:15 -0400 Original-Received: from colin.muc.de ([193.149.48.1] helo=mail.muc.de) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Haqv4-0006Dv-7E for emacs-devel@gnu.org; Mon, 09 Apr 2007 06:16:18 -0400 Original-Received: (qmail 83391 invoked by uid 3782); 9 Apr 2007 10:16:16 -0000 Original-Received: from acm.muc.de (p54a3f648.dip.t-dialin.net [84.163.246.72]) by colin2.muc.de (tmda-ofmipd) with ESMTP; Mon, 09 Apr 2007 12:16:15 +0200 Original-Received: (qmail 4012 invoked by uid 1000); 9 Apr 2007 11:35:42 -0000 Resent-Date: Mon, 9 Apr 2007 12:35:42 +0100 Resent-Message-ID: <20070409113542.GC1065@muc.de> Resent-To: emacs-devel@gnu.org Original-Date: Mon, 9 Apr 2007 12:02:22 +0100 Content-Disposition: inline In-Reply-To: <17946.90.547705.72200@farnswood.snap.net.nz> User-Agent: Mutt/1.5.9i X-Delivery-Agent: TMDA/1.1.5 (Fettercairn) Resent-From: Alan Mackenzie X-Primary-Address: acm@muc.de X-detected-kernel: FreeBSD 4.6-4.9 Resent-Date: Mon, 09 Apr 2007 06:20:18 -0400 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:69219 Archived-At: Hi, Nick! On Mon, Apr 09, 2007 at 08:59:06PM +1200, Nick Roberts wrote: > > Start a modern Emacs with > > # emacs -Q > > In *scratch*, do > > C-u M-: load-path > > Follow this up with > > M-x load-file ~/cc-mode-5.31.n/tests/000tests.elc > > and repeat > > C-u M-: load-path > > It will be seen that load-file has pushed the element > > "/home/acm/cc-mode-5.31.n" onto the front of load-path. This is surely > > a bug. And even if it's not, it ought to be! > I suspect that 000tests.elc does this, not load-file. Yes, that's exactly it. Thanks for the help. Sorry for wasting everybody's time. > Nick -- Alan.