[gnu.emacs.bug] site-init.el

loeffler@MCC.COM (David D. Loeffler) (01/17/90)

I would like to make one customization for our site.  I wanted to keep
all the emacs extensions that people share over the net in a separate
directory from the lisp files that are distributed with system.  I
thought I could do this by using the site-init.el file.  I put the
following form in the file:

;;; All the programs contributed over the net go in "contrib" directory.  
;;; Users should add any paths they would like searched to this list in their .emacs file.
;;; Be sure to use expand-file-name as in this example:
;;; (setq load-path (cons (expand-file-name "~/emacs-stuff") load-path))

(setq load-path (cons (expand-file-name "/usr/src/gnu/dist-18.55/contrib") load-path))

But after building emacs all I get the default directory in the list.
What am I doing wrong?

tale@cs.rpi.edu (David C Lawrence) (01/17/90)

In <9001161919.AA08201@racine.aca.mcc.com> loeffler@MCC.COM (David D Loeffler):
> [[in site-init.el ...]]
> (setq load-path (cons (expand-file-name "/usr/src/gnu/dist-18.55/contrib") load-path))

> But after building emacs all I get the default directory in the list.
> What am I doing wrong?

This should be done in $BUILD/src/paths.h.  Define the path list as
you would a path environment variable -- a colon seperated list of
directories.

#define PATH_LOADSEARCH "/usr/src/gnu/dist-18.55/contrib:/usr/src/gnu/dist-18.55/lisp"

Reverse them if you want distribution files with conflicting names to
be loaded by default.

Dave
-- 
   (setq mail '("tale@cs.rpi.edu" "tale@ai.mit.edu" "tale@rpitsmts.bitnet"))

zmacx07@doc.ic.ac.uk (Simon E Spero) (01/17/90)

[ site-init.el and load-path stuff deleted]

On a related point, is there an easy way to execute a lisp file at startup
time before the user's .emacs gets executed?  "default.el" runs afterwards,
to allow users to prevent it's execution; however, this means that features
provided by default.el aren't available for the user's init file, and variables
that are initialised in the users file may get overwritten or consed onto. This
can be a problem especially with the load path.

Simon
--
------------------------------------------------------------------------------
zmacx07@uk.ac.ic.doc | sispero%cix@specialix.co.uk | ..!ukc!slxsys!cix!sispero
------------------------------------------------------------------------------
"Advisers advise, Ministers resign"|   Not the official view	|ORTEGA 1990! 
"The GNU Manifesto refers to all Software, not just Editors"    | (I'm the FSF)