annotate lisp/dump-paths.el @ 424:11054d720c21 r21-2-20

Import from CVS: tag r21-2-20
author cvs
date Mon, 13 Aug 2007 11:26:11 +0200
parents 697ef44129c6
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
267
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
1 ;; dump-paths.el --- set up XEmacs paths for dumping
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
2
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
3 ;; Copyright (C) 1985, 1986, 1992, 1994, 1997 Free Software Foundation, Inc.
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
4
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
5 ;; Maintainer: XEmacs Development Team
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
6 ;; Keywords: internal, dumped
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
7
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
8 ;; This file is part of XEmacs.
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
9
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
10 ;; XEmacs is free software; you can redistribute it and/or modify it
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
11 ;; under the terms of the GNU General Public License as published by
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
12 ;; the Free Software Foundation; either version 2, or (at your option)
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
13 ;; any later version.
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
14
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
15 ;; XEmacs is distributed in the hope that it will be useful, but
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
16 ;; WITHOUT ANY WARRANTY; without even the implied warranty of
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
17 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
18 ;; General Public License for more details.
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
19
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
20 ;; You should have received a copy of the GNU General Public License
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
21 ;; along with XEmacs; see the file COPYING. If not, write to the Free
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
22 ;; Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
23 ;; 02111-1307, USA.
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
24
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
25 ;;; Synched up with: Not in FSF
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
26
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
27 ;;; Commentary:
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
28
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
29 ;; This sets up the various paths for continuing loading files for
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
30 ;; dumping.
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
31
276
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
32 (let ((debug-paths (or debug-paths
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
33 (and (getenv "EMACSDEBUGPATHS")
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
34 t)))
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
35 (roots (paths-find-emacs-roots invocation-directory
267
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
36 invocation-name)))
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
37
276
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
38 (if debug-paths
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
39 (princ (format "XEmacs thinks the roots of its hierarchy are:\n%S\n"
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
40 roots)))
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
41
424
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 412
diff changeset
42 (let* ((package-locations
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 412
diff changeset
43 (packages-compute-package-locations
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 412
diff changeset
44 ;; temporary kludge:
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 412
diff changeset
45 ;; this should be synched with startup.el
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 412
diff changeset
46 (paths-construct-path '("~" ".xemacs"))))
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 412
diff changeset
47 (stuff (packages-find-packages roots package-locations)))
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 267
diff changeset
48 (setq late-packages (car (cdr stuff))))
267
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
49
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
50 (setq late-package-load-path (packages-find-package-load-path late-packages))
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
51
276
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
52 (if debug-paths
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
53 (progn
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
54 (princ (format "configure-package-path:\n%S\n" configure-package-path)
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
55 'external-debugging-output)
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
56 (princ (format "late-packages and late-package-load-path:\n%S\n%S\n"
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
57 late-packages late-package-load-path)
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
58 'external-debugging-output)))
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
59
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
60 (setq lisp-directory (paths-find-lisp-directory roots))
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
61 (if debug-paths
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
62 (princ (format "lisp-directory:\n%S\n" lisp-directory)
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
63 'external-debugging-output))
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
64 (setq site-directory (and (null inhibit-site-lisp)
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
65 (paths-find-site-lisp-directory roots)))
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
66 (if (and debug-paths (null inhibit-site-lisp))
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
67 (princ (format "site-directory:\n%S\n" site-directory)
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
68 'external-debugging-output))
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
69
267
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
70 (setq load-path (paths-construct-load-path roots
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
71 '()
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
72 late-package-load-path
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 267
diff changeset
73 '()
276
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
74 lisp-directory
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 276
diff changeset
75 site-directory))
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 276
diff changeset
76
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 276
diff changeset
77 (setq module-directory (paths-find-module-directory roots))
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 276
diff changeset
78 (if debug-paths
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 276
diff changeset
79 (princ (format "module-directory:\n%S\n" module-directory)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 276
diff changeset
80 'external-debugging-output))
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 276
diff changeset
81 (setq site-module-directory (and (null inhibit-site-modules)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 276
diff changeset
82 (paths-find-site-module-directory roots)))
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 276
diff changeset
83 (if (and debug-paths (null inhibit-site-modules))
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 276
diff changeset
84 (princ (format "site-module-directory:\n%S\n" site-module-directory)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 276
diff changeset
85 'external-debugging-output))
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 276
diff changeset
86
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 276
diff changeset
87 (setq module-load-path (paths-construct-module-load-path roots
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 276
diff changeset
88 module-directory
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 276
diff changeset
89 site-module-directory)))
267
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
90
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
91 ;;; dump-paths.el ends here