From: Tim X <timx@nospam.dev.null>
To: help-gnu-emacs@gnu.org
Subject: Re: Load ESS lisp file from user directory instead of from shared location
Date: Wed, 29 Dec 2010 11:16:22 +1100 [thread overview]
Message-ID: <87pqslwi09.fsf@puma.rapttech.com.au> (raw)
In-Reply-To: mailman.1.1293566701.3661.help-gnu-emacs@gnu.org
epowell <epowell1@med.miami.edu> 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
next prev parent reply other threads:[~2010-12-29 0:16 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.4.1293482217.2341.help-gnu-emacs@gnu.org>
2010-12-27 22:41 ` Load ESS lisp file from user directory instead of from shared location Tim X
2010-12-28 20:03 ` epowell
[not found] ` <mailman.1.1293566701.3661.help-gnu-emacs@gnu.org>
2010-12-29 0:16 ` Tim X [this message]
2010-12-29 14:58 ` epowell
2010-12-27 20:36 epowell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87pqslwi09.fsf@puma.rapttech.com.au \
--to=timx@nospam.dev.null \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.