Mercurial > hg > xemacs-beta
comparison lisp/dump-paths.el @ 428:3ecd8885ac67 r21-2-22
Import from CVS: tag r21-2-22
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:28:15 +0200 |
parents | |
children | 98528da0b7fc |
comparison
equal
deleted
inserted
replaced
427:0a0253eac470 | 428:3ecd8885ac67 |
---|---|
1 ;; dump-paths.el --- set up XEmacs paths for dumping | |
2 | |
3 ;; Copyright (C) 1985, 1986, 1992, 1994, 1997 Free Software Foundation, Inc. | |
4 | |
5 ;; Maintainer: XEmacs Development Team | |
6 ;; Keywords: internal, dumped | |
7 | |
8 ;; This file is part of XEmacs. | |
9 | |
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) | |
13 ;; any later version. | |
14 | |
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. | |
19 | |
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 | |
23 ;; 02111-1307, USA. | |
24 | |
25 ;;; Synched up with: Not in FSF | |
26 | |
27 ;;; Commentary: | |
28 | |
29 ;; This sets up the various paths for continuing loading files for | |
30 ;; dumping. | |
31 | |
32 (let ((debug-paths (or debug-paths | |
33 (and (getenv "EMACSDEBUGPATHS") | |
34 t))) | |
35 (roots (paths-find-emacs-roots invocation-directory | |
36 invocation-name))) | |
37 | |
38 (if debug-paths | |
39 (princ (format "XEmacs thinks the roots of its hierarchy are:\n%S\n" | |
40 roots))) | |
41 | |
42 (let* ((package-locations | |
43 (packages-compute-package-locations | |
44 ;; temporary kludge: | |
45 ;; this should be synched with startup.el | |
46 (paths-construct-path '("~" ".xemacs")))) | |
47 (stuff (packages-find-packages roots package-locations))) | |
48 (setq late-packages (car (cdr stuff)))) | |
49 | |
50 (setq late-package-load-path (packages-find-package-load-path late-packages)) | |
51 | |
52 (if debug-paths | |
53 (progn | |
54 (princ (format "configure-package-path:\n%S\n" configure-package-path) | |
55 'external-debugging-output) | |
56 (princ (format "late-packages and late-package-load-path:\n%S\n%S\n" | |
57 late-packages late-package-load-path) | |
58 'external-debugging-output))) | |
59 | |
60 (setq lisp-directory (paths-find-lisp-directory roots)) | |
61 (if debug-paths | |
62 (princ (format "lisp-directory:\n%S\n" lisp-directory) | |
63 'external-debugging-output)) | |
64 (setq site-directory (and (null inhibit-site-lisp) | |
65 (paths-find-site-lisp-directory roots))) | |
66 (if (and debug-paths (null inhibit-site-lisp)) | |
67 (princ (format "site-directory:\n%S\n" site-directory) | |
68 'external-debugging-output)) | |
69 | |
70 (setq load-path (paths-construct-load-path roots | |
71 '() | |
72 late-package-load-path | |
73 '() | |
74 lisp-directory | |
75 site-directory)) | |
76 | |
77 (setq module-directory (paths-find-module-directory roots)) | |
78 (if debug-paths | |
79 (princ (format "module-directory:\n%S\n" module-directory) | |
80 'external-debugging-output)) | |
81 (setq site-module-directory (and (null inhibit-site-modules) | |
82 (paths-find-site-module-directory roots))) | |
83 (if (and debug-paths (null inhibit-site-modules)) | |
84 (princ (format "site-module-directory:\n%S\n" site-module-directory) | |
85 'external-debugging-output)) | |
86 | |
87 (setq module-load-path (paths-construct-module-load-path roots | |
88 module-directory | |
89 site-module-directory))) | |
90 | |
91 ;;; dump-paths.el ends here |