annotate lisp/setup-paths.el @ 414:da8ed4261e83 r21-2-15

Import from CVS: tag r21-2-15
author cvs
date Mon, 13 Aug 2007 11:21:38 +0200
parents 697ef44129c6
children 11054d720c21
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
265
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
1 ;;; setup-paths.el --- setup various XEmacs paths
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
2
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
3 ;; Copyright (C) 1985-1986, 1990, 1992-1997 Free Software Foundation, Inc.
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
4 ;; Copyright (c) 1993, 1994 Sun Microsystems, Inc.
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
5 ;; Copyright (C) 1995 Board of Trustees, University of Illinois
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
6
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
7 ;; Author: Mike Sperber <sperber@informatik.uni-tuebingen.de>
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
8 ;; Maintainer: XEmacs Development Team
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
9 ;; Keywords: internal, dumped
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
10
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
11 ;; This file is part of XEmacs.
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
12
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
13 ;; XEmacs is free software; you can redistribute it and/or modify it
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
14 ;; under the terms of the GNU General Public License as published by
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
15 ;; the Free Software Foundation; either version 2, or (at your option)
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
16 ;; any later version.
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
17
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
18 ;; XEmacs is distributed in the hope that it will be useful, but
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
19 ;; WITHOUT ANY WARRANTY; without even the implied warranty of
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
20 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
21 ;; General Public License for more details.
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
22
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
23 ;; You should have received a copy of the GNU General Public License
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
24 ;; along with XEmacs; see the file COPYING. If not, write to the
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
25 ;; Free Software Foundation, 59 Temple Place - Suite 330,
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
26 ;; Boston, MA 02111-1307, USA.
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
27
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
28 ;;; Synched up with: Not in FSF.
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
29
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
30 ;;; Commentary:
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
31
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
32 ;; This file is dumped with XEmacs.
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
33
267
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
34 ;; This file describes and constructs the various paths into the
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
35 ;; XEmacs hierarchy from a global viewpoint.
265
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
36
267
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
37 ;; It requires find-paths.el and packages.el.
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
38
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
39 ;;; Code:
265
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
40
276
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
41 (defvar paths-load-path-depth 1
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
42 "Depth of load-path searches in core Lisp paths.")
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
43
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
44 (defvar paths-default-info-directories
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 408
diff changeset
45 (list (paths-construct-path '("usr" "local" "info")
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 408
diff changeset
46 (char-to-string directory-sep-char))
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 408
diff changeset
47 (paths-construct-path '("usr" "info")
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 408
diff changeset
48 (char-to-string directory-sep-char)))
276
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
49 "Directories appended to the end of the info path by default.")
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
50
267
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
51 (defun paths-find-site-lisp-directory (roots)
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
52 "Find the site Lisp directory of the XEmacs hierarchy."
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
53 (paths-find-site-directory roots "site-lisp"
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
54 nil
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
55 configure-site-directory))
265
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
56
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 380
diff changeset
57 (defun paths-find-site-module-directory (roots)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 380
diff changeset
58 "Find the site modules directory of the XEmacs hierarchy."
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 380
diff changeset
59 (paths-find-site-directory roots "site-modules"
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 380
diff changeset
60 nil
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 380
diff changeset
61 configure-site-module-directory))
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 380
diff changeset
62
267
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
63 (defun paths-find-lisp-directory (roots)
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
64 "Find the main Lisp directory of the XEmacs hierarchy."
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
65 (paths-find-version-directory roots "lisp"
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
66 nil
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
67 configure-lisp-directory))
265
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
68
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 380
diff changeset
69 (defun paths-find-module-directory (roots)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 380
diff changeset
70 "Find the main modules directory of the XEmacs hierarchy."
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 380
diff changeset
71 (paths-find-architecture-directory roots "modules"
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 408
diff changeset
72 configure-module-directory))
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 380
diff changeset
73
267
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
74 (defun paths-construct-load-path
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
75 (roots early-package-load-path late-package-load-path last-package-load-path
276
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
76 lisp-directory
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
77 &optional site-lisp-directory)
265
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
78 "Construct the load path."
269
b2472a1930f2 Import from CVS: tag r20-5b33
cvs
parents: 267
diff changeset
79 (let* ((envvar-value (getenv "EMACSLOADPATH"))
276
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
80 (env-load-path
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
81 (and envvar-value
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
82 (paths-decode-directory-path envvar-value 'drop-empties)))
269
b2472a1930f2 Import from CVS: tag r20-5b33
cvs
parents: 267
diff changeset
83 (site-lisp-load-path
b2472a1930f2 Import from CVS: tag r20-5b33
cvs
parents: 267
diff changeset
84 (and site-lisp-directory
276
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
85 (paths-find-recursive-load-path (list site-lisp-directory)
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
86 paths-load-path-depth)))
269
b2472a1930f2 Import from CVS: tag r20-5b33
cvs
parents: 267
diff changeset
87 (lisp-load-path
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
88 (and lisp-directory
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
89 (paths-find-recursive-load-path (list lisp-directory)
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
90 paths-load-path-depth))))
269
b2472a1930f2 Import from CVS: tag r20-5b33
cvs
parents: 267
diff changeset
91 (append env-load-path
b2472a1930f2 Import from CVS: tag r20-5b33
cvs
parents: 267
diff changeset
92 early-package-load-path
b2472a1930f2 Import from CVS: tag r20-5b33
cvs
parents: 267
diff changeset
93 site-lisp-load-path
b2472a1930f2 Import from CVS: tag r20-5b33
cvs
parents: 267
diff changeset
94 late-package-load-path
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
95 lisp-load-path
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
96 last-package-load-path)))
265
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
97
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 380
diff changeset
98 (defun paths-construct-module-load-path
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 380
diff changeset
99 (root module-directory &optional site-module-directory)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 380
diff changeset
100 "Construct the modules load path."
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 380
diff changeset
101 (let* ((envvar-value (getenv "EMACSMODULEPATH"))
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 380
diff changeset
102 (env-module-path
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 380
diff changeset
103 (and envvar-value
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 380
diff changeset
104 (paths-decode-directory-path envvar-value 'drop-empties)))
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 380
diff changeset
105 (site-module-load-path
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 380
diff changeset
106 (and site-module-directory
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 380
diff changeset
107 (paths-find-recursive-load-path (list site-module-directory)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 380
diff changeset
108 paths-load-path-depth)))
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 380
diff changeset
109 (module-load-path
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 380
diff changeset
110 (and module-directory
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 380
diff changeset
111 (paths-find-recursive-load-path (list module-directory)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 380
diff changeset
112 paths-load-path-depth))))
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 380
diff changeset
113 (append env-module-path
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 380
diff changeset
114 site-module-load-path
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 380
diff changeset
115 module-load-path)))
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 380
diff changeset
116
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
117 (defun paths-construct-info-path (roots early-packages late-packages last-packages)
265
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
118 "Construct the info path."
274
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
119 (let ((info-path-envval (getenv "INFOPATH")))
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
120 (paths-uniq-append
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
121 (append
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
122 (let ((info-directory
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
123 (paths-find-version-directory roots "info"
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
124 nil
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
125 configure-info-directory)))
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
126 (and info-directory
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
127 (list info-directory)))
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
128 (packages-find-package-info-path early-packages)
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
129 (packages-find-package-info-path late-packages)
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
130 (packages-find-package-info-path last-packages)
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
131 (and info-path-envval
276
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
132 (paths-decode-directory-path info-path-envval 'drop-empties)))
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
133 (and (null info-path-envval)
274
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
134 (paths-uniq-append
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
135 (paths-directories-which-exist configure-info-path)
276
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
136 (paths-directories-which-exist paths-default-info-directories))))))
265
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
137
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
138 (defun paths-find-doc-directory (roots)
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
139 "Find the documentation directory."
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 408
diff changeset
140 (paths-find-architecture-directory roots "lib-src"))
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 408
diff changeset
141
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 408
diff changeset
142 (defun paths-find-lock-directory (roots)
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 408
diff changeset
143 "Find the lock directory."
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 408
diff changeset
144 (defvar configure-lock-directory)
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 408
diff changeset
145 (paths-find-site-directory roots "lock" "EMACSLOCKDIR" configure-lock-directory))
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 408
diff changeset
146
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 408
diff changeset
147 (defun paths-find-superlock-file (lock-directory)
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 408
diff changeset
148 "Find the superlock file."
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 408
diff changeset
149 ;; #### There is no such variable configure-superlock-file!
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 408
diff changeset
150 (cond
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 408
diff changeset
151 ((null lock-directory)
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 408
diff changeset
152 nil)
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 408
diff changeset
153 ((and configure-superlock-file
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 408
diff changeset
154 (file-directory-p (file-name-directory configure-superlock-file)))
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 408
diff changeset
155 configure-superlock-file)
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 408
diff changeset
156 (t
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 408
diff changeset
157 (expand-file-name "!!!SuperLock!!!" lock-directory))))
265
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
158
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
159 (defun paths-find-exec-directory (roots)
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
160 "Find the binary directory."
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 408
diff changeset
161 (paths-find-architecture-directory roots "lib-src" configure-exec-directory))
265
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
162
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
163 (defun paths-construct-exec-path (roots exec-directory
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
164 early-packages late-packages last-packages)
265
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
165 "Find the binary path."
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
166 (append
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
167 (let ((path-envval (getenv "PATH")))
267
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
168 (if path-envval
276
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
169 (paths-decode-directory-path path-envval 'drop-empties)))
267
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
170 (packages-find-package-exec-path early-packages)
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
171 (packages-find-package-exec-path late-packages)
265
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
172 (let ((emacspath-envval (getenv "EMACSPATH")))
276
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
173 (and emacspath-envval
284
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents: 278
diff changeset
174 (split-path emacspath-envval)))
265
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
175 (and exec-directory
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
176 (list exec-directory))
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
177 (packages-find-package-exec-path last-packages)))
265
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
178
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
179 (defun paths-find-data-directory (roots)
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
180 "Find the data directory."
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
181 (paths-find-version-directory roots "etc" "EMACSDATA" configure-data-directory))
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
182
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
183 (defun paths-construct-data-directory-list (data-directory
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
184 early-packages late-packages last-packages)
265
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
185 "Find the data path."
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
186 (append
267
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
187 (packages-find-package-data-path early-packages)
966663fcf606 Import from CVS: tag r20-5b32
cvs
parents: 265
diff changeset
188 (packages-find-package-data-path late-packages)
373
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
189 (list data-directory)
6240c7796c7a Import from CVS: tag r21-2b2
cvs
parents: 371
diff changeset
190 (packages-find-package-data-path last-packages)))
265
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
191
8efd647ea9ca Import from CVS: tag r20-5b31
cvs
parents:
diff changeset
192 ;;; setup-paths.el ends here