Hilko Bengen <[EMAIL PROTECTED]> writes: > My workaround consists of adding the source directory for w3m-el to > the load-path when sepia is byte-compiled.
I think it's a good policy to add the source directories for all Emacs Lisp packages that are depended upon while performing byte-compilation, and to inhibit the loading of site-start.el. This prevents any 3rd party packages from interfering with the build, and gets rid of the many "Loading ..." messages that appear when byte-compilation is started. I've implemented this as follows for the semantic package.
pgpnfSC04FW2l.pgp
Description: PGP signature
#! /bin/sh -e # /usr/lib/emacsen-common/packages/install/semanic # Written by Jim Van Zandt <[EMAIL PROTECTED]>, borrowing heavily # from the install scripts for gettext by Santiago Vila # <[EMAIL PROTECTED]> and octave by Dirk Eddelbuettel <[EMAIL PROTECTED]>. FLAVOR=$1 PACKAGE=semantic if [ ${FLAVOR} = emacs ]; then exit 0; fi echo install/${PACKAGE}: Handling install for emacsen flavor ${FLAVOR} FLAVORTEST=`echo $FLAVOR | cut -c-6` if [ ${FLAVORTEST} = xemacs ] ; then SITEFLAG="-no-site-file" else SITEFLAG="--no-site-file" fi FLAGS="${SITEFLAG} -q -batch -l path.el -f batch-byte-compile" # Install-info-altdir does not actually exist. # Maybe somebody will write it. if test -x /usr/sbin/install-info-altdir; then echo install/${PACKAGE}: install Info links for ${FLAVOR} install-info-altdir --quiet --section "" "" --dirname=${FLAVOR} /usr/share/info/${PACKAGE}.info.gz fi ELPREFIX=/usr/share/emacs/site-lisp/${PACKAGE} UNCOMPILED='semantic-\(ede-grammar\|example\)\.el\|erlang' for subdir in "" "/bovine"; do ELDIR=/usr/share/emacs/site-lisp/${PACKAGE}${subdir} ELCDIR=/usr/share/${FLAVOR}/site-lisp/${PACKAGE}${subdir} install -m 755 -d ${ELCDIR} cd ${ELDIR} FILES=`ls -1 *.el | grep -v ${UNCOMPILED}` cd ${ELCDIR} ln -sf ${ELDIR}/*.el . cat << EOF > path.el (let ((paths (list "${ELPREFIX}" "${ELPREFIX}/bovine" "${ELPREFIX}/wisent" "/usr/share/${FLAVOR}/site-lisp/cedet-common" "/usr/share/${FLAVOR}/site-lisp/ede" "/usr/share/${FLAVOR}/site-lisp/eieio" "/usr/share/${FLAVOR}/site-lisp/speedbar"))) (setq load-path (nconc paths load-path) byte-compile-warnings nil)) EOF ${FLAVOR} ${FLAGS} ${FILES} rm -f path.el done ln -sf /usr/share/emacs/site-lisp/${PACKAGE}/wisent \ /usr/share/${FLAVOR}/site-lisp/${PACKAGE}/wisent exit 0
-- | Michael Olson | FSF Associate Member #652 | | http://mwolson.org/ | Hobbies: Lisp, HCoop | | Projects: Emacs, Muse, ERC, EMMS, ErBot, DVC, Planner | `-------------------------------------------------------'