Thanks!
Is your site-lisp directory still empty?
/usr/share/emacs22/site-lisp
has ess and auctex files in it
/usr/share/emacs/site-lisp
has ess and auctex files in it
/usr/share/emacs/22.2/site-lisp
is an empty folder.
Did you get any error
messages when you tried to reinstall auctex?
No
What does M-x find-library<RET>auctex<RET> do?
Can't find library
What's the value of the load-path variable (C-h v load-path<RET>)?
load-path is a variable defined in `C source code'.
Its value is
("/usr/share/emacs22/site-lisp/ess/" "/usr/share/emacs22/site-lisp/ess" "/usr/share/emacs22/site-lisp/dictionaries-common" "/usr/share/emacs22/site-lisp/auctex" "/usr/share/emacs/site-lisp/auctex" "/etc/emacs22" "/etc/emacs" "/usr/local/share/emacs/22.2/site-lisp" "/usr/local/share/emacs/site-lisp" "/usr/share/emacs/22.2/site-lisp" "/usr/share/emacs/site-lisp" "/usr/share/emacs/22.2/leim" "/usr/share/emacs/22.2/lisp" "/usr/share/emacs/22.2/lisp/url" "/usr/share/emacs/22.2/lisp/textmodes" "/usr/share/emacs/22.2/lisp/progmodes" "/usr/share/emacs/22.2/lisp/play" "/usr/share/emacs/22.2/lisp/obsolete" "/usr/share/emacs/22.2/lisp/net" "/usr/share/emacs/22.2/lisp/mh-e" "/usr/share/emacs/22.2/lisp/mail" "/usr/share/emacs/22.2/lisp/language" "/usr/share/emacs/22.2/lisp/international" "/usr/share/emacs/22.2/lisp/gnus" "/usr/share/emacs/22.2/lisp/eshell" "/usr/share/emacs/22.2/lisp/erc" "/usr/share/emacs/22.2/lisp/emulation" "/usr/share/emacs/22.2/lisp/emacs-lisp" "/usr/share/emacs/22.2/lisp/calendar" "/usr/share/emacs/22.2/lisp/calc" "/usr/share/emacs/22.2/leim")
I'm on Ubuntu 9.04 myself, using the emacs-snapshot package. The elisp
files from auctex are installed in
/usr/share/emacs/site-lisp/auctex
Indeed this directory also has the auctex files
on my machine, with byte-compiled versions in
/usr/share/emacs/23.0.91/site-lisp/auctex
Have you compiled emacs or did you use a Ubuntu package?
I used the Ubuntu package
The way it should work is that a debianized Emacs reads all files in
/etc/emacs/site-start.d and /etc/<emacs-flavor>/site-start.d. The
packages drop their initialization code here. I've got
/etc/emacs-snapshot/site-start.d/50auctex.el
and you should have
/etc/emacs22/site-start.d/50auctex.el
This file is present.
I also have the snapshot, an emacs21, and an emacs directory
Is this file present? What happens if you load it with M-x load-file?
If you really like to know how packaging emacs extensions works on
Debian you should read this:
http://www.debian.org/doc/packaging-manuals/debian-emacs-policy
You might be interested in the part where it speaks about the
/usr/lib/emacsen-common/emacs-package-install script (written in the
perfect emacs rewrite language, btw).
Oh yeah I will definitely give this a read. Thanks.