Bug#594750: ess: debian-pkg-add-load-path-item

Kevin Ryde user42 at zip.com.au
Thu Sep 2 01:03:20 CEST 2010


Dirk Eddelbuettel <edd at debian.org> writes:
>
>   (debian-pkg-add-load-path-item
>    (concat "/usr/share/" (symbol-name debian-emacs-flavor) "/site-lisp/ess"))

Yes, that's about right.

>   ;; Put the uncompiled code in the path too
>   (setq load-path (cons  (concat "/usr/share/"
> 				 (symbol-name debian-emacs-flavor)
> 				 "/site-lisp/ess") load-path ))

This has the disadvantage of `M-x list-load-path-shadows' reporting the
compiled code shadows the source (wrongly), because normally the .el
should normally be in the same dir as the .elc.

The best idea so far, and as used for instance in emacs-goodies-el, is
to symlink the sources into /usr/share/emacs23/site-lisp/ess and simply
leave them after compiling.  Ie. in
/usr/lib/emacsen-common/packages/install/ess the "cp" becomes "ln -s"
and rm just the path.el compile helper.



More information about the ESS-Debian mailing list