diff options
| author | Richard M. Stallman | 1994-10-13 07:54:56 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-10-13 07:54:56 +0000 |
| commit | f5c646161d72f74be0adecc2b826d949e7a06169 (patch) | |
| tree | 4f80eec751f518a1cdc4309311ebcd4318476287 | |
| parent | 991c70f8948c9d52ac04db47a80dd90e78402132 (diff) | |
| download | emacs-f5c646161d72f74be0adecc2b826d949e7a06169.tar.gz emacs-f5c646161d72f74be0adecc2b826d949e7a06169.zip | |
Move the subdirs.el up to near first thing.
| -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 @@ | |||
| 32 | ;;; We don't want to have any undo records in the dumped Emacs. | 32 | ;;; We don't want to have any undo records in the dumped Emacs. |
| 33 | (buffer-disable-undo "*scratch*") | 33 | (buffer-disable-undo "*scratch*") |
| 34 | 34 | ||
| 35 | ;; Write a file subdirs.el into the Lisp directory | ||
| 36 | ;; containing the names of the subdirs of that directory | ||
| 37 | ;; which we should check for Lisp files. | ||
| 38 | (message "Writing subdirs.el...") | ||
| 39 | (let ((files (directory-files "../lisp/" nil nil t)) | ||
| 40 | new) | ||
| 41 | (while files | ||
| 42 | (if (and (null (member (car files) '("." ".." "term" "RCS"))) | ||
| 43 | (null (string-match "\\.elc?$" (car files))) | ||
| 44 | (file-directory-p (expand-file-name (car files) "../lisp/"))) | ||
| 45 | (setq new (cons (car files) new))) | ||
| 46 | (setq files (cdr files))) | ||
| 47 | (insert ";; In load-path, after this directory should come\n") | ||
| 48 | (insert ";; certain of its subdirectories. Here we specify them.\n") | ||
| 49 | (prin1 (list 'normal-top-level-add-to-load-path | ||
| 50 | (list 'quote new)) (current-buffer)) | ||
| 51 | (write-region (point-min) (point-max) | ||
| 52 | (expand-file-name "subdirs.el" "../lisp/")) | ||
| 53 | (erase-buffer)) | ||
| 54 | |||
| 35 | (load "subr") | 55 | (load "subr") |
| 36 | (garbage-collect) | 56 | (garbage-collect) |
| 37 | (load "byte-run") | 57 | (load "byte-run") |
| @@ -114,27 +134,6 @@ | |||
| 114 | (garbage-collect) | 134 | (garbage-collect) |
| 115 | (load "vc-hooks") | 135 | (load "vc-hooks") |
| 116 | 136 | ||
| 117 | ;; Write a file subdirs.el into the Lisp directory | ||
| 118 | ;; containing the names of the subdirs of that directory | ||
| 119 | ;; which we should check for Lisp files. | ||
| 120 | (message "Writing subdirs.el...") | ||
| 121 | (let ((files (directory-files "../lisp/" nil nil t)) | ||
| 122 | (buffer-undo-list t) | ||
| 123 | new) | ||
| 124 | (while files | ||
| 125 | (if (and (not (member (car files) '("." ".." "term" "RCS"))) | ||
| 126 | (not (string-match "\\.elc?$" (car files))) | ||
| 127 | (file-directory-p (expand-file-name (car files) "../lisp/"))) | ||
| 128 | (setq new (cons (car files) new))) | ||
| 129 | (setq files (cdr files))) | ||
| 130 | (insert ";; In load-path, after this directory should come\n") | ||
| 131 | (insert ";; certain of its subdirectories. Here we specify them.\n") | ||
| 132 | (prin1 (list 'normal-top-level-add-to-load-path | ||
| 133 | (list 'quote new)) (current-buffer)) | ||
| 134 | (write-region (point-min) (point-max) | ||
| 135 | (expand-file-name "subdirs.el" "../lisp/")) | ||
| 136 | (erase-buffer)) | ||
| 137 | |||
| 138 | ;; We specify .el in case someone compiled version.el by mistake. | 137 | ;; We specify .el in case someone compiled version.el by mistake. |
| 139 | (load "version.el") | 138 | (load "version.el") |
| 140 | 139 | ||