home *** CD-ROM | disk | FTP | other *** search
- Date: Fri, 14 Aug 1992 19:14:35 +0200
- From: h.b.furuseth%usit.uio.no@lucid.com
- Message-ID: <9208141714.AAdurin24643@durin.uio.no>
- Subject: Re: Automatic load path failing?
- References: <1992Aug14.034455.20843@colorado.edu>
- <9208140418.AA04768@thalidomide.lucid>
- Newsgroups: alt.lucid-emacs.help
- Path: sparky!uunet!wendy-fate.uu.net!help-lucid-emacs
- Sender: help-lucid-emacs-request@lucid.com
- Lines: 37
-
- I think you can define the four paths in paths.h (be sure to include
- trailing "/"s everywhere!) and then insert something like this in
- site-init.el:
-
- (defun set-default-load-path ()
- ;; various search paths were set here
- (and (boundp 'Info-directory-list) (null Info-directory-list)
- (setq Info-directory-list
- (list (expand-file-name "../info/" exec-directory))))
- (set-default-load-path-warning))
-
- To get it slightly more flexible, set load-path in paths.h to all your
- load directories EXCEPT the standard load path with subdirectories, and
- insert this in set-default-load-path too:
-
- (let ((lisp (expand-file-name "../lisp/" exec-directory)))
- (or (member lisp load-path)
- (setq load-path
- (nconc load-path (list lisp)
- (mapcar 'file-name-as-directory
- (directory-files lisp t "^[^.]" nil 'dirs))))))
-
-
- I wish for a way to nail down load-path myself (other than hacking the
- code), since it does not help to modify paths.h when dumped paths must
- be named "/local/..." and /local is a symlink.
-
- My default load-path is ("...lisp/local/" "...lisp/elc/" "...lisp/" nil)
- where local/ has files that override the standard packages and elc/ has
- links to all standard .elc files (or .el files when an .elc is missing).
- The last is to avoid directory searches of course.
- There is also a lisp/extra/ directory which _must_not_ be inserted
- in load-path by default; it has "use at your own risk" packages that may
- not work with V19.
-
-
- Hallvard
-