home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / alt / lucidem / help / 268 < prev    next >
Encoding:
Internet Message Format  |  1992-08-14  |  1.9 KB

  1. Date: Fri, 14 Aug 1992 19:14:35 +0200
  2. From: h.b.furuseth%usit.uio.no@lucid.com
  3. Message-ID: <9208141714.AAdurin24643@durin.uio.no>
  4. Subject: Re: Automatic load path failing?
  5. References: <1992Aug14.034455.20843@colorado.edu>
  6.     <9208140418.AA04768@thalidomide.lucid>
  7. Newsgroups: alt.lucid-emacs.help
  8. Path: sparky!uunet!wendy-fate.uu.net!help-lucid-emacs
  9. Sender: help-lucid-emacs-request@lucid.com
  10. Lines: 37
  11.  
  12. I think you can define the four paths in paths.h (be sure to include
  13. trailing "/"s everywhere!) and then insert something like this in
  14. site-init.el:
  15.  
  16.     (defun set-default-load-path ()
  17.       ;; various search paths were set here
  18.       (and (boundp 'Info-directory-list) (null Info-directory-list)
  19.            (setq Info-directory-list
  20.                  (list (expand-file-name "../info/" exec-directory))))
  21.       (set-default-load-path-warning))
  22.  
  23. To get it slightly more flexible, set load-path in paths.h to all your
  24. load directories EXCEPT the standard load path with subdirectories, and
  25. insert this in set-default-load-path too:
  26.  
  27.     (let ((lisp (expand-file-name "../lisp/" exec-directory)))
  28.       (or (member lisp load-path)
  29.       (setq load-path
  30.         (nconc load-path (list lisp)
  31.                (mapcar 'file-name-as-directory
  32.                    (directory-files lisp t "^[^.]" nil 'dirs))))))
  33.  
  34.  
  35. I wish for a way to nail down load-path myself (other than hacking the
  36. code), since it does not help to modify paths.h when dumped paths must
  37. be named "/local/..." and /local is a symlink.
  38.  
  39. My default load-path is ("...lisp/local/" "...lisp/elc/" "...lisp/" nil)
  40. where local/ has files that override the standard packages and elc/ has
  41. links to all standard .elc files (or .el files when an .elc is missing).
  42. The last is to avoid directory searches of course.
  43. There is also a lisp/extra/ directory which _must_not_ be inserted
  44. in load-path by default; it has "use at your own risk" packages that may
  45. not work with V19.
  46.  
  47.  
  48. Hallvard
  49.