428
|
1 ;;; packages.el --- Low level support for XEmacs packages
|
|
2
|
|
3 ;; Copyright (C) 1997 Free Software Foundation, Inc.
|
1330
|
4 ;; Copyright (C) 2002, 2003 Ben Wing.
|
428
|
5
|
|
6 ;; Author: Steven L Baur <steve@xemacs.org>
|
|
7 ;; Maintainer: Steven L Baur <steve@xemacs.org>
|
|
8 ;; Keywords: internal, lisp, dumped
|
|
9
|
|
10 ;; This file is part of XEmacs.
|
|
11
|
|
12 ;; XEmacs is free software; you can redistribute it and/or modify it
|
|
13 ;; under the terms of the GNU General Public License as published by
|
|
14 ;; the Free Software Foundation; either version 2, or (at your option)
|
|
15 ;; any later version.
|
|
16
|
|
17 ;; XEmacs is distributed in the hope that it will be useful, but
|
|
18 ;; WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
19 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
20 ;; General Public License for more details.
|
|
21
|
|
22 ;; You should have received a copy of the GNU General Public License
|
|
23 ;; along with XEmacs; see the file COPYING. If not, write to the Free
|
|
24 ;; Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
|
25 ;; 02111-1307, USA.
|
|
26
|
|
27 ;;; Synched up with: Not in FSF
|
|
28
|
|
29 ;;; Commentary:
|
|
30
|
|
31 ;; This file is dumped with XEmacs.
|
|
32
|
|
33 ;; This file provides low level facilities for XEmacs startup --
|
|
34 ;; particularly regarding the package setup. This code has to run in
|
|
35 ;; what we call "bare temacs" -- i.e. XEmacs without the usual Lisp
|
|
36 ;; environment. Pay special attention:
|
|
37
|
|
38 ;; - not to use the `lambda' macro. Use #'(lambda ...) instead.
|
|
39 ;; (this goes for any package loaded before `subr.el'.)
|
|
40 ;;
|
|
41 ;; - not to use macros, because they are not yet available (and this
|
442
|
42 ;; file must be loadable uncompiled.) Built in macros, such as
|
|
43 ;; `when' and `unless' are fine, of course.
|
428
|
44 ;;
|
|
45 ;; - not to use `defcustom'. If you must add user-customizable
|
|
46 ;; variables here, use `defvar', and add the variable to
|
|
47 ;; `cus-start.el'.
|
|
48
|
|
49 ;; Because of all this, make sure that the stuff you put here really
|
|
50 ;; belongs here.
|
|
51
|
|
52 ;; This file requires find-paths.el.
|
|
53
|
|
54 ;;; Code:
|
|
55
|
|
56 ;;; Package versioning
|
|
57
|
|
58 (defvar packages-package-list nil
|
454
|
59 "Database of installed packages and version numbers")
|
428
|
60
|
|
61 (defvar packages-hierarchy-depth 1
|
|
62 "Depth of package hierarchies.")
|
|
63
|
|
64 (defvar packages-load-path-depth 1
|
|
65 "Depth of load-path search in package hierarchies.")
|
|
66
|
|
67 (defvar packages-data-path-depth 1
|
|
68 "Depth of data-path search in package hierarchies.")
|
|
69
|
|
70 (defvar early-packages nil
|
|
71 "Packages early in the load path.")
|
|
72
|
|
73 (defvar early-package-load-path nil
|
|
74 "Load path for packages early in the load path.")
|
|
75
|
|
76 (defvar late-packages nil
|
|
77 "Packages late in the load path.")
|
|
78
|
|
79 (defvar late-package-load-path nil
|
|
80 "Load path for packages late in the load path.")
|
|
81
|
|
82 (defvar last-packages nil
|
|
83 "Packages last in the load path.")
|
|
84
|
|
85 (defvar last-package-load-path nil
|
|
86 "Load path for packages last in the load path.")
|
|
87
|
|
88 (defun packages-compute-package-locations (user-init-directory)
|
|
89 "Compute locations of the various package directories.
|
|
90 This is a list each of whose elements describes one directory.
|
|
91 A directory description is a three-element list.
|
|
92 The first element is either an absolute path or a subdirectory
|
|
93 in the XEmacs hierarchy.
|
|
94 The second component is one of the symbols EARLY, LATE, LAST,
|
|
95 depending on the load-path segment the hierarchy is supposed to
|
|
96 show up in.
|
|
97 The third component is a thunk which, if it returns NIL, causes
|
|
98 the directory to be ignored."
|
|
99 (list
|
689
|
100 (list (paths-construct-path (list user-init-directory "site-packages"))
|
|
101 'early #'(lambda () t))
|
|
102 (list (paths-construct-path (list user-init-directory "infodock-packages"))
|
|
103 'early #'(lambda () (featurep 'infodock)))
|
428
|
104 (list (paths-construct-path (list user-init-directory "mule-packages"))
|
|
105 'early #'(lambda () (featurep 'mule)))
|
|
106 (list (paths-construct-path (list user-init-directory "xemacs-packages"))
|
|
107 'early #'(lambda () t))
|
|
108 (list "site-packages" 'late #'(lambda () t))
|
|
109 (list "infodock-packages" 'late #'(lambda () (featurep 'infodock)))
|
|
110 (list "mule-packages" 'late #'(lambda () (featurep 'mule)))
|
|
111 (list "xemacs-packages" 'late #'(lambda () t))))
|
|
112
|
|
113 (defun package-get-key-1 (info key)
|
|
114 "Locate keyword `key' in list."
|
|
115 (cond ((null info)
|
|
116 nil)
|
|
117 ((eq (car info) key)
|
|
118 (nth 1 info))
|
|
119 (t (package-get-key-1 (cddr info) key))))
|
|
120
|
|
121 (defun package-get-key (name key)
|
|
122 "Get info `key' from package `name'."
|
|
123 (let ((info (assq name packages-package-list)))
|
|
124 (when info
|
|
125 (package-get-key-1 (cdr info) key))))
|
|
126
|
|
127 (defun package-provide (name &rest attributes)
|
|
128 (let ((info (if (and attributes (floatp (car attributes)))
|
|
129 (list :version (car attributes))
|
|
130 attributes)))
|
|
131 (setq packages-package-list
|
|
132 (cons (cons name info) (remassq name packages-package-list)))))
|
|
133
|
|
134 (defun package-require (name version)
|
|
135 (let ((pkg (assq name packages-package-list)))
|
|
136 (cond ((null pkg)
|
|
137 (error "Package %s has not been loaded into this XEmacsen"
|
|
138 name))
|
|
139 ((< (package-get-key name :version) version)
|
|
140 (error "Need version %g of package %s, got version %g"
|
|
141 version name (cdr pkg)))
|
|
142 (t t))))
|
|
143
|
|
144 (defun package-delete-name (name)
|
|
145 (let (pkg)
|
|
146 ;; Delete ALL versions of package.
|
|
147 ;; This is pretty memory-intensive, as we use copy-alist when deleting
|
|
148 ;; package entries, to prevent side-effects in functions that call this
|
|
149 ;; one.
|
|
150 (while (setq pkg (assq name packages-package-list))
|
|
151 (setq packages-package-list (delete pkg (copy-alist
|
1365
|
152 packages-package-list))))))
|
428
|
153
|
|
154 ;;; Build time stuff
|
|
155
|
|
156 (defvar autoload-file-name "auto-autoloads.el"
|
|
157 "Filename that autoloads are expected to be found in.")
|
|
158
|
1330
|
159 ;; Moved from help.el.
|
428
|
160 ;; Unlike the FSF version, our `locate-library' uses the `locate-file'
|
|
161 ;; primitive, which should make it lightning-fast.
|
|
162
|
|
163 (defun locate-library (library &optional nosuffix path interactive-call)
|
|
164 "Show the precise file name of Emacs library LIBRARY.
|
|
165 This command searches the directories in `load-path' like `M-x load-library'
|
|
166 to find the file that `M-x load-library RET LIBRARY RET' would load.
|
|
167 Optional second arg NOSUFFIX non-nil means don't add suffixes `.elc' or `.el'
|
|
168 to the specified name LIBRARY.
|
|
169
|
|
170 If the optional third arg PATH is specified, that list of directories
|
|
171 is used instead of `load-path'."
|
624
|
172 (interactive (list (read-library-name "Locate library: ")
|
428
|
173 nil nil
|
|
174 t))
|
|
175 (let ((result
|
|
176 (locate-file
|
|
177 library
|
|
178 (or path load-path)
|
|
179 (cond ((or (rassq 'jka-compr-handler file-name-handler-alist)
|
|
180 (and (boundp 'find-file-hooks)
|
|
181 (member 'crypt-find-file-hook find-file-hooks)))
|
|
182 ;; Compression involved.
|
|
183 (if nosuffix
|
448
|
184 '("" ".gz" ".Z" ".bz2")
|
|
185 '(".elc" ".elc.gz" "elc.Z" ".elc.bz2"
|
|
186 ".el" ".el.gz" ".el.Z" ".el.bz2"
|
|
187 "" ".gz" ".Z" ".bz2")))
|
428
|
188 (t
|
|
189 ;; No compression.
|
|
190 (if nosuffix
|
|
191 ""
|
|
192 '(".elc" ".el" "")))))))
|
|
193 (and interactive-call
|
|
194 (if result
|
|
195 (message "Library is file %s" result)
|
|
196 (message "No library %s in search path" library)))
|
|
197 result))
|
|
198
|
|
199 (defun packages-add-suffix (str)
|
|
200 (if (null (string-match "\\.el\\'" str))
|
|
201 (concat str ".elc")
|
|
202 str))
|
|
203
|
|
204 (defun packages-list-autoloads-path ()
|
|
205 "List autoloads from precomputed load-path."
|
|
206 (let ((path load-path)
|
|
207 autoloads)
|
|
208 (while path
|
|
209 (if (file-exists-p (concat (car path)
|
|
210 autoload-file-name))
|
|
211 (setq autoloads (cons (concat (car path)
|
|
212 autoload-file-name)
|
|
213 autoloads)))
|
|
214 (setq path (cdr path)))
|
|
215 autoloads))
|
|
216
|
|
217 (defun packages-list-autoloads (source-directory)
|
|
218 "List autoload files in (what will be) the normal lisp search path.
|
|
219 This function is used during build to find where the global symbol files so
|
|
220 they can be perused for their useful information."
|
|
221 (let ((files (directory-files (file-name-as-directory source-directory)
|
|
222 t ".*"))
|
|
223 file autolist)
|
|
224 ;; (print (prin1-to-string source-directory))
|
|
225 ;; (print (prin1-to-string files))
|
|
226 (while (setq file (car-safe files))
|
|
227 (if (and (file-directory-p file)
|
|
228 (file-exists-p (concat (file-name-as-directory file)
|
|
229 autoload-file-name)))
|
|
230 (setq autolist (cons (concat (file-name-as-directory file)
|
|
231 autoload-file-name)
|
|
232 autolist)))
|
|
233 (setq files (cdr files)))
|
|
234 autolist))
|
|
235
|
|
236 ;; The following function cannot be called from a bare temacs
|
|
237 (defun packages-new-autoloads ()
|
|
238 "Return autoloads files that have been added or modified since XEmacs dump."
|
|
239 (require 'loadhist)
|
|
240 (let ((me (concat invocation-directory invocation-name))
|
|
241 (path load-path)
|
|
242 result dir)
|
|
243 (while path
|
|
244 (setq dir (file-truename (car path)))
|
|
245 (let ((autoload-file (file-name-sans-extension (concat
|
|
246 dir
|
|
247 autoload-file-name))))
|
|
248 ;; Check for:
|
|
249 ;; 1. An auto-autoload file that hasn't provided a feature (because
|
|
250 ;; it has been installed since XEmacs was dumped).
|
|
251 ;; 2. auto-autoload.el being newer than the executable
|
|
252 ;; 3. auto-autoload.elc being newer than the executable (the .el
|
|
253 ;; could be missing or compressed)
|
|
254 (when (or (and (null (file-provides autoload-file))
|
|
255 (or (file-exists-p (concat autoload-file ".elc"))
|
|
256 (file-exists-p (concat autoload-file ".el"))))
|
|
257 (and (file-newer-than-file-p (concat autoload-file ".el") me)
|
|
258 (setq autoload-file (concat autoload-file ".el")))
|
|
259 (and (file-newer-than-file-p (concat autoload-file
|
|
260 ".elc")
|
|
261 me)
|
|
262 (setq autoload-file (concat autoload-file ".elc"))))
|
|
263 (push autoload-file result)))
|
|
264 (setq path (cdr path)))
|
|
265 result))
|
|
266
|
|
267 ;; The following function cannot be called from a bare temacs
|
|
268 (defun packages-reload-autoloads ()
|
|
269 "Reload new or updated auto-autoloads files.
|
|
270 This is an extremely dangerous function to call after the user-init-files
|
|
271 is run. Don't call it or you'll be sorry."
|
|
272 (let ((autoload-list (packages-new-autoloads)))
|
|
273 (while autoload-list
|
|
274 (let* ((autoload-file (car autoload-list))
|
|
275 (feature (car-safe (file-provides autoload-file))))
|
|
276 (when feature
|
|
277 ;; (message "(unload-feature %S)" feature)
|
|
278 (unload-feature feature))
|
|
279 (condition-case nil
|
|
280 (load autoload-file)
|
|
281 (t nil)))
|
|
282 (setq autoload-list (cdr autoload-list)))))
|
|
283
|
|
284 ;; Data-directory is really a list now. Provide something to search it for
|
|
285 ;; directories.
|
|
286
|
|
287 (defun locate-data-directory-list (name &optional dir-list)
|
|
288 "Locate the matching list of directories in a search path DIR-LIST.
|
|
289 If no DIR-LIST is supplied, it defaults to `data-directory-list'."
|
|
290 (unless dir-list
|
|
291 (setq dir-list data-directory-list))
|
|
292 (let (found found-dir found-dir-list)
|
|
293 (while dir-list
|
|
294 (setq found (file-name-as-directory (concat (car dir-list) name))
|
|
295 found-dir (file-directory-p found))
|
|
296 (and found-dir
|
|
297 (setq found-dir-list (cons found found-dir-list)))
|
|
298 (setq dir-list (cdr dir-list)))
|
|
299 (nreverse found-dir-list)))
|
|
300
|
|
301 ;; Data-directory is really a list now. Provide something to search it for
|
|
302 ;; a directory.
|
|
303
|
|
304 (defun locate-data-directory (name &optional dir-list)
|
|
305 "Locate a directory in a search path DIR-LIST (a list of directories).
|
|
306 If no DIR-LIST is supplied, it defaults to `data-directory-list'."
|
|
307 (unless dir-list
|
|
308 (setq dir-list data-directory-list))
|
|
309 (let (found found-dir)
|
|
310 (while (and (null found-dir) dir-list)
|
|
311 (setq found (file-name-as-directory (concat (car dir-list) name))
|
|
312 found-dir (file-directory-p found))
|
|
313 (or found-dir
|
|
314 (setq found nil))
|
|
315 (setq dir-list (cdr dir-list)))
|
|
316 found))
|
|
317
|
|
318 ;; Data-directory is really a list now. Provide something to search it for
|
|
319 ;; files.
|
|
320
|
|
321 (defun locate-data-file (name &optional dir-list)
|
|
322 "Locate a file in a search path DIR-LIST (a list of directories).
|
|
323 If no DIR-LIST is supplied, it defaults to `data-directory-list'.
|
|
324 This function is basically a wrapper over `locate-file'."
|
633
|
325 (locate-file name (or dir-list data-directory-list)))
|
428
|
326
|
|
327 ;; Path setup
|
|
328
|
|
329 (defun packages-find-package-directories (roots base)
|
|
330 "Find a set of package directories."
|
|
331 ;; make sure paths-find-version-directory and paths-find-site-directory
|
|
332 ;; don't both pick up version-independent directories ...
|
|
333 (let ((version-directory (paths-find-version-directory roots base nil nil t))
|
1218
|
334 (site-directory (paths-find-site-directory roots base)))
|
428
|
335 (paths-uniq-append
|
|
336 (and version-directory (list version-directory))
|
|
337 (and site-directory (list site-directory)))))
|
|
338
|
444
|
339 (defvar packages-special-base-regexp "^\\(etc\\|info\\|man\\|lisp\\|lib-src\\|bin\\|pkginfo\\)$"
|
428
|
340 "Special subdirectories of packages.")
|
|
341
|
|
342 (defvar packages-no-package-hierarchy-regexp
|
|
343 (concat "\\(" paths-version-control-filename-regexp "\\)"
|
|
344 "\\|"
|
|
345 "\\(" packages-special-base-regexp "\\)")
|
|
346 "Directories which can't be the roots of package hierarchies.")
|
|
347
|
|
348 (defun packages-find-packages-in-directories (directories)
|
|
349 "Find all packages underneath directories in DIRECTORIES."
|
|
350 (paths-find-recursive-path directories
|
|
351 packages-hierarchy-depth
|
|
352 packages-no-package-hierarchy-regexp))
|
|
353
|
|
354 (defun packages-split-path (path)
|
|
355 "Split PATH at \"\", return pair with two components.
|
|
356 The second component is shared with PATH."
|
|
357 (let ((reverse-tail '())
|
|
358 (rest path))
|
|
359 (while (and rest (null (string-equal "" (car rest))))
|
|
360 (setq reverse-tail (cons (car rest) reverse-tail))
|
|
361 (setq rest (cdr rest)))
|
|
362 (if (null rest)
|
|
363 (cons path nil)
|
|
364 (cons (nreverse reverse-tail) (cdr rest)))))
|
|
365
|
|
366 (defun packages-split-package-path (package-path)
|
|
367 "Split up PACKAGE-PATH into early, late and last components.
|
|
368 The separation is by \"\" components.
|
|
369 This returns (LIST EARLY-PACKAGES LATE-PACKAGES LAST-PACKAGES)."
|
|
370 ;; When in doubt, it's late
|
|
371 (let* ((stuff (packages-split-path package-path))
|
|
372 (early (and (cdr stuff) (car stuff)))
|
|
373 (late+last (or (cdr stuff) (car stuff)))
|
|
374 (stuff (packages-split-path late+last))
|
|
375 (late (car stuff))
|
|
376 (last (cdr stuff)))
|
|
377 (list (packages-find-packages-in-directories early)
|
|
378 (packages-find-packages-in-directories late)
|
|
379 (packages-find-packages-in-directories last))))
|
|
380
|
|
381 (defun packages-deconstruct (list consumer)
|
|
382 "Deconstruct LIST and feed it to CONSUMER."
|
|
383 (apply consumer list))
|
|
384
|
|
385 (defun packages-find-packages-by-name (roots name)
|
|
386 "Find a package hierarchy by its name."
|
|
387 (packages-find-packages-in-directories
|
|
388 (if (and (file-name-absolute-p name)
|
|
389 (file-name-directory (expand-file-name name)))
|
|
390 (list (file-name-as-directory (expand-file-name name)))
|
|
391 (packages-find-package-directories roots name))))
|
|
392
|
|
393 (defun packages-find-packages-at-time
|
|
394 (roots package-locations time &optional default)
|
|
395 "Find packages at given time.
|
|
396 For the format of PACKAGE-LOCATIONS, see the global variable of the same name.
|
|
397 TIME is either 'EARLY, 'LATE, or 'LAST.
|
|
398 DEFAULT is a default list of packages."
|
|
399 (or default
|
|
400 (let ((packages '()))
|
|
401 (while package-locations
|
444
|
402 (packages-deconstruct
|
428
|
403 (car package-locations)
|
|
404 #'(lambda (name a-time thunk)
|
|
405 (if (and (eq time a-time)
|
|
406 (funcall thunk))
|
|
407 (setq packages
|
|
408 (nconc packages
|
|
409 (packages-find-packages-by-name roots name))))))
|
|
410 (setq package-locations (cdr package-locations)))
|
|
411 packages)))
|
|
412
|
|
413 (defun packages-find-packages (roots package-locations)
|
|
414 "Find the packages."
|
|
415 (let ((envvar-value (getenv "EMACSPACKAGEPATH")))
|
|
416 (if envvar-value
|
|
417 (packages-split-package-path (paths-decode-directory-path envvar-value))
|
|
418 (packages-deconstruct
|
|
419 (packages-split-package-path configure-package-path)
|
|
420 #'(lambda (configure-early-packages
|
|
421 configure-late-packages
|
|
422 configure-last-packages)
|
|
423 (list (packages-find-packages-at-time roots package-locations 'early
|
|
424 configure-early-packages)
|
|
425 (packages-find-packages-at-time roots package-locations 'late
|
|
426 configure-late-packages)
|
|
427 (packages-find-packages-at-time roots package-locations 'last
|
|
428 configure-last-packages)))))))
|
|
429
|
|
430 (defun packages-find-package-library-path (packages suffixes)
|
|
431 "Construct a path into a component of the packages hierarchy.
|
|
432 PACKAGES is a list of package directories.
|
|
433 SUFFIXES is a list of names of package subdirectories to look for."
|
|
434 (let ((directories
|
|
435 (apply
|
|
436 #'nconc
|
|
437 (mapcar #'(lambda (package)
|
|
438 (mapcar #'(lambda (suffix)
|
|
439 (file-name-as-directory (concat package suffix)))
|
|
440 suffixes))
|
|
441 packages))))
|
|
442 (paths-directories-which-exist directories)))
|
|
443
|
|
444 (defun packages-find-package-load-path (packages)
|
|
445 "Construct the load-path component for packages.
|
|
446 PACKAGES is a list of package directories."
|
|
447 (paths-find-recursive-load-path
|
|
448 (packages-find-package-library-path packages
|
|
449 '("lisp"))
|
|
450 packages-load-path-depth))
|
|
451
|
|
452 (defun packages-find-package-exec-path (packages)
|
|
453 "Construct the exec-path component for packages.
|
|
454 PACKAGES is a list of package directories."
|
|
455 (packages-find-package-library-path packages
|
|
456 (list (paths-construct-path
|
|
457 (list "bin" system-configuration))
|
|
458 "lib-src")))
|
|
459
|
|
460 (defun packages-find-package-info-path (packages)
|
|
461 "Construct the info-path component for packages.
|
|
462 PACKAGES is a list of package directories."
|
|
463 (packages-find-package-library-path packages '("info")))
|
|
464
|
|
465 (defun packages-find-package-data-path (packages)
|
|
466 "Construct the data-path component for packages.
|
|
467 PACKAGES is a list of package directories."
|
|
468 (paths-find-recursive-load-path
|
|
469 (packages-find-package-library-path packages
|
|
470 '("etc"))
|
|
471 packages-data-path-depth))
|
|
472
|
|
473 ;; Loading package initialization files
|
|
474
|
|
475 (defun packages-load-package-lisps (package-load-path base)
|
|
476 "Load all Lisp files of a certain name along a load path.
|
|
477 BASE is the base name of the files."
|
|
478 (mapcar #'(lambda (dir)
|
793
|
479 (let ((file-name (expand-file-name base dir)))
|
|
480 (with-trapping-errors
|
|
481 :operation (format "Autoload %s" file-name)
|
|
482 :class 'packages
|
|
483 (load file-name t t))))
|
|
484 package-load-path))
|
428
|
485
|
|
486 (defun packages-load-package-auto-autoloads (package-load-path)
|
|
487 "Load auto-autoload files along a load path."
|
|
488 (packages-load-package-lisps package-load-path
|
|
489 (file-name-sans-extension autoload-file-name)))
|
|
490
|
|
491 (defun packages-handle-package-dumped-lisps (handle package-load-path)
|
|
492 "Load dumped-lisp.el files along a load path.
|
|
493 Call HANDLE on each file off definitions of PACKAGE-LISP there."
|
|
494 (mapcar #'(lambda (dir)
|
|
495 (let ((file-name (expand-file-name "dumped-lisp.el" dir)))
|
|
496 (if (file-exists-p file-name)
|
|
497 (let (package-lisp
|
|
498 ;; 20.4 packages could set this
|
|
499 preloaded-file-list)
|
|
500 (load file-name)
|
|
501 ;; dumped-lisp.el could have set this ...
|
|
502 (if package-lisp
|
|
503 (mapcar #'(lambda (base)
|
|
504 (funcall handle base))
|
|
505 package-lisp))))))
|
|
506 package-load-path))
|
|
507
|
|
508 (defun packages-load-package-dumped-lisps (package-load-path)
|
|
509 "Load dumped-lisp.el files along a load path.
|
444
|
510 Also load files off PACKAGE-LISP definitions there."
|
428
|
511 (packages-handle-package-dumped-lisps #'load package-load-path))
|
|
512
|
|
513 (defun packages-collect-package-dumped-lisps (package-load-path)
|
|
514 "Load dumped-lisp.el files along a load path.
|
444
|
515 Return list of files off PACKAGE-LISP definitions there."
|
428
|
516 (let ((*files* '()))
|
|
517 (packages-handle-package-dumped-lisps
|
|
518 #'(lambda (file)
|
|
519 (setq *files* (cons file *files*)))
|
|
520 package-load-path)
|
|
521 (reverse *files*)))
|
|
522
|
|
523 (provide 'packages)
|
|
524
|
|
525 ;;; packages.el ends here
|