diff options
author | Richard M. Stallman <rms@gnu.org> | 1994-10-13 07:54:56 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1994-10-13 07:54:56 +0000 |
commit | 1f0809c0bb0ea6b6b2504b2fd380d4371ffc0027 (patch) | |
tree | c6596ff1304edc3c4fbe7e8f1c2d16aaaedd3e34 /lisp/loadup.el | |
parent | 12e6d8e5f5231f47823dd68639dff851f15a661c (diff) | |
download | emacs-1f0809c0bb0ea6b6b2504b2fd380d4371ffc0027.tar.gz |
Move the subdirs.el up to near first thing.
Diffstat (limited to 'lisp/loadup.el')
-rw-r--r-- | lisp/loadup.el | 41 |
1 files changed, 20 insertions, 21 deletions
diff --git a/lisp/loadup.el b/lisp/loadup.el index 58675263e28..a1252eca989 100644 --- a/lisp/loadup.el +++ b/lisp/loadup.el @@ -32,6 +32,26 @@ ;;; We don't want to have any undo records in the dumped Emacs. (buffer-disable-undo "*scratch*") +;; Write a file subdirs.el into the Lisp directory +;; containing the names of the subdirs of that directory +;; which we should check for Lisp files. +(message "Writing subdirs.el...") +(let ((files (directory-files "../lisp/" nil nil t)) + new) + (while files + (if (and (null (member (car files) '("." ".." "term" "RCS"))) + (null (string-match "\\.elc?$" (car files))) + (file-directory-p (expand-file-name (car files) "../lisp/"))) + (setq new (cons (car files) new))) + (setq files (cdr files))) + (insert ";; In load-path, after this directory should come\n") + (insert ";; certain of its subdirectories. Here we specify them.\n") + (prin1 (list 'normal-top-level-add-to-load-path + (list 'quote new)) (current-buffer)) + (write-region (point-min) (point-max) + (expand-file-name "subdirs.el" "../lisp/")) + (erase-buffer)) + (load "subr") (garbage-collect) (load "byte-run") @@ -114,27 +134,6 @@ (garbage-collect) (load "vc-hooks") -;; Write a file subdirs.el into the Lisp directory -;; containing the names of the subdirs of that directory -;; which we should check for Lisp files. -(message "Writing subdirs.el...") -(let ((files (directory-files "../lisp/" nil nil t)) - (buffer-undo-list t) - new) - (while files - (if (and (not (member (car files) '("." ".." "term" "RCS"))) - (not (string-match "\\.elc?$" (car files))) - (file-directory-p (expand-file-name (car files) "../lisp/"))) - (setq new (cons (car files) new))) - (setq files (cdr files))) - (insert ";; In load-path, after this directory should come\n") - (insert ";; certain of its subdirectories. Here we specify them.\n") - (prin1 (list 'normal-top-level-add-to-load-path - (list 'quote new)) (current-buffer)) - (write-region (point-min) (point-max) - (expand-file-name "subdirs.el" "../lisp/")) - (erase-buffer)) - ;; We specify .el in case someone compiled version.el by mistake. (load "version.el") |