load-path shadows (Re: New DFSG-compliant emacs packages )
Manoj Srivastava <srivasta@debian.org> wrote:
> Please join me in a new thread about load path issues in
> Debian's emacsen.
As I mentionned earlier, I think I have done something sensible with the
emacs-goodies-el source package (binary packages emacs-goodies-el,
debian-el, gnus-bonus-el, devscripts-el, vm-bonus-el, dpkg-dev-el), so
that's a starting point to quickly look at. It doesn't seem to be
responsible for any nasty shadows.
The source files go in e.g. /usr/share/emacs/site-lisp/emacs-goodies-el/.
This is typical. That directory isn't added to the load-path. That
isn't typical.
The byte-compiled files go in
e.g. /usr/share/emacs21/site-lisp/emacs-goodies-el/ and that is added to
the load-path. That is typical.
The source elisp files are symlinked into the byte-compiled directory of
each flavour. That is not typical.
This has the advantage that source and byte-compiled files are in the
same directory, and I can include in the load-path only files that are
compatible with each flavour.
I will likely change my other Emacs-related packages to do the same (if
they don't already, I'm not sure). This would include mh-e and gri-el.
That is, unless we come up with something better.
Peter
Reply to: