1 ;; dump-paths.el --- set up XEmacs paths for dumping
3 ;; Copyright (C) 1985, 1986, 1992, 1994, 1997 Free Software Foundation, Inc.
5 ;; Maintainer: XEmacs Development Team
6 ;; Keywords: internal, dumped
8 ;; This file is part of XEmacs.
10 ;; XEmacs is free software; you can redistribute it and/or modify it
11 ;; under the terms of the GNU General Public License as published by
12 ;; the Free Software Foundation; either version 2, or (at your option)
15 ;; XEmacs is distributed in the hope that it will be useful, but
16 ;; WITHOUT ANY WARRANTY; without even the implied warranty of
17 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 ;; General Public License for more details.
20 ;; You should have received a copy of the GNU General Public License
21 ;; along with XEmacs; see the file COPYING. If not, write to the Free
22 ;; Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
25 ;;; Synched up with: Not in FSF
29 ;; This sets up the various paths for continuing loading files for
32 (let ((debug-paths (or debug-paths
33 (and (getenv "EMACSDEBUGPATHS")
35 (roots (paths-find-emacs-roots invocation-directory
39 (princ (format "XEmacs thinks the roots of its hierarchy are:\n%S\n"
42 (let ((stuff (packages-find-packages roots)))
43 (setq late-packages (car (cdr stuff))))
45 (setq late-package-load-path (packages-find-package-load-path late-packages))
49 (princ (format "configure-package-path:\n%S\n" configure-package-path)
50 'external-debugging-output)
51 (princ (format "late-packages and late-package-load-path:\n%S\n%S\n"
52 late-packages late-package-load-path)
53 'external-debugging-output)))
55 (setq lisp-directory (paths-find-lisp-directory roots))
57 (princ (format "lisp-directory:\n%S\n" lisp-directory)
58 'external-debugging-output))
59 (setq site-directory (and (null inhibit-site-lisp)
60 (paths-find-site-lisp-directory roots)))
61 (if (and debug-paths (null inhibit-site-lisp))
62 (princ (format "site-directory:\n%S\n" site-directory)
63 'external-debugging-output))
65 (setq load-path (paths-construct-load-path roots
67 late-package-load-path
72 ;;; dump-paths.el ends here