annotate lisp/dump-paths.el @ 333:4f79e16b1112 r21-0-64

Import from CVS: tag r21-0-64
author cvs
date Mon, 13 Aug 2007 10:49:50 +0200
parents 6330739388db
children aabb7f5b1c81
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
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
42 (let ((stuff (packages-find-packages roots)))
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 267
diff changeset
43 (setq late-packages (car (cdr stuff))))
267
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
44
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
45 (setq late-package-load-path (packages-find-package-load-path late-packages))
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
46
276
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
47 (if debug-paths
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
48 (progn
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
49 (princ (format "configure-package-path:\n%S\n" configure-package-path)
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
50 'external-debugging-output)
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
51 (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
52 late-packages late-package-load-path)
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
53 'external-debugging-output)))
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
54
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
55 (setq lisp-directory (paths-find-lisp-directory roots))
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
56 (if debug-paths
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
57 (princ (format "lisp-directory:\n%S\n" lisp-directory)
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 (setq site-directory (and (null inhibit-site-lisp)
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
60 (paths-find-site-lisp-directory roots)))
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
61 (if (and debug-paths (null inhibit-site-lisp))
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
62 (princ (format "site-directory:\n%S\n" site-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
267
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
65 (setq load-path (paths-construct-load-path roots
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
66 '()
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
67 late-package-load-path
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 267
diff changeset
68 '()
276
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
69 lisp-directory
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
70 site-directory)))
267
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
71
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents:
diff changeset
72 ;;; dump-paths.el ends here