Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I use Emacs 23 on my system. I received a file from a colleague (who has a different Linux distro) to add to the /usr/share/emacs/site-lisp/ directory.

As I worked to do this, I noticed another, similarly-named, directory: /usr/share/emacs23/site-lisp/. When viewing their contents, I notice that they are not identical.

Is this common with all Emacs configurations on all distros? Are there distinct purposes for when I should add into one over the other? Which one? How do I know?

In short, what is the difference between these 2 directories?

share|improve this question
    
I'm assuming you meant site-lisp. I've never heard of an Emacs with a site-list directory. –  cjm Jan 6 '12 at 23:01
    
I don't have emacs installed, but I'd bet that /usr/share/emacs is a symlink that gets updated on package upgrades to point to the most recent version (emacs23, in this case). –  Kevin Jan 6 '12 at 23:07
    
@Kevin No, it's not a symlink. cjm has it right. –  Gilles Jan 6 '12 at 23:29

1 Answer 1

up vote 2 down vote accepted

It's possible to have multiple versions of Emacs installed on the same machine. Only Emacs 23 would load files from /usr/share/emacs23/site-lisp/. All versions of Emacs would load files from /usr/share/emacs/site-lisp/.

Generally, you just use /usr/share/emacs/site-lisp/, unless there's some reason the code applies only to a particular version of Emacs.

To see where your Emacs is loading code from, type Control+h    v load-path Enter.

share|improve this answer
    
I see. That explains why the 2 directories are not in-sync, then. Thank you for explaining. –  TheGeeko61 Jan 6 '12 at 23:43

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.