comparison lisp/dump-paths.el @ 267:966663fcf606 r20-5b32

Import from CVS: tag r20-5b32
author cvs
date Mon, 13 Aug 2007 10:26:29 +0200
parents
children c5d627a313b1
comparison
equal deleted inserted replaced
266:18d185df8c54 267:966663fcf606
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 ((roots (paths-find-emacs-roots invocation-directory
33 invocation-name)))
34
35 (setq package-path (packages-find-package-path roots))
36
37 (let ((stuff (packages-find-packages package-path inhibit-package-init)))
38 (setq late-packages (cdr stuff)))
39
40 (setq late-package-load-path (packages-find-package-load-path late-packages))
41
42 (setq load-path (paths-construct-load-path roots
43 '()
44 late-package-load-path
45 inhibit-site-lisp)))
46
47 ;;; dump-paths.el ends here