From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim X Newsgroups: gmane.emacs.help Subject: Re: Load ESS lisp file from user directory instead of from shared location Date: Wed, 29 Dec 2010 11:16:22 +1100 Organization: Unlimited download news at news.astraweb.com Message-ID: <87pqslwi09.fsf@puma.rapttech.com.au> References: <30541254.post@talk.nabble.com> <87pqsmrg7z.fsf@puma.rapttech.com.au> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1293583245 21723 80.91.229.12 (29 Dec 2010 00:40:45 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 29 Dec 2010 00:40:45 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 29 01:40:41 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PXk5m-0002p6-I2 for geh-help-gnu-emacs@m.gmane.org; Wed, 29 Dec 2010 01:40:38 +0100 Original-Received: from localhost ([127.0.0.1]:58056 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PXk5m-0008Rs-0K for geh-help-gnu-emacs@m.gmane.org; Tue, 28 Dec 2010 19:40:38 -0500 Original-Path: usenet.stanford.edu!news.glorb.com!news2.glorb.com!news.glorb.com!news-xfer.nntp.sonic.net!news.astraweb.com!border5.newsrouter.astraweb.com!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:kVHTg9t4qo5fUDPgaHNDXHrNKHo= Original-Lines: 41 Original-NNTP-Posting-Host: 30a68752.news.astraweb.com Original-X-Trace: DXC=B7LXRf9<``Co; ii5o?B_6AL?0kYOcDh@JSBc; \8ijUdKjhD`>?RN>LAQXkmji5R; fLbZ78]\S\f\N Original-Xref: usenet.stanford.edu gnu.emacs.help:183723 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:77947 Archived-At: epowell writes: > Here's where I'm at now: > > By examining the load-path variable, I was able to determine that the > appropriate subdirectories were added to my load-path (e.g. ess-5.12), but I > didn't take account of the fact that all the lisp files were in a further > sub-directory of that. This also explains why the list-load-path-shadows > command was not picking up a conflict between my ess files and those on the > shared location. > > I updated my .emacs file with: (add-to-list 'load-path > "~/elisp/ess-5.12/lisp") and now when I do list-load-path-shadows I get a > ton of messages about my ess files hiding the ones in the shared location. > > Unfortunately, the ess in the shared location still gets loaded over mine, > though. I think this could be because there is a site-start.el file that > calls (require 'ess-site), and since that file gets read before my .emacs > file adds new locations to load-path, that could explain the problem. > Still, I'm not sure how to fix it. > > I am aware of the --no-site-file argument that can be used when invoking > emacs, but I was hoping I could find a solution that wouldn't compromise all > the other things done by site-start.el. > > Thanks in advance! Why not just remove the old version? ESS is not part of the standard emacs distribution, it is an add on. On most (modern) systems, site wide configuraitons are broken up into individual files with a numberic prefix (usually in somewhere like /etc/emacs or similar). You could create your own one and make sure it has a numeric prefix smaller than the existing one. This would mean your config would be loaded before the other one. However, this is still a kludge - I'd just remove the old version. Tim -- tcross (at) rapttech dot com dot au