Mercurial > emacs
comparison lisp/loadup.el @ 9442:973eafd9f349
Write the subdirs.el file.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Tue, 11 Oct 1994 08:21:32 +0000 |
parents | 8ccef13ebe58 |
children | b2aaf43191aa |
comparison
equal
deleted
inserted
replaced
9441:ab020bbb761f | 9442:973eafd9f349 |
---|---|
108 (garbage-collect))) | 108 (garbage-collect))) |
109 (if (fboundp 'atan) ; preload some constants and | 109 (if (fboundp 'atan) ; preload some constants and |
110 (progn ; floating pt. functions if | 110 (progn ; floating pt. functions if |
111 (garbage-collect) ; we have float support. | 111 (garbage-collect) ; we have float support. |
112 (load "float-sup"))) | 112 (load "float-sup"))) |
113 | |
113 (garbage-collect) | 114 (garbage-collect) |
114 (load "vc-hooks") | 115 (load "vc-hooks") |
116 | |
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)) | |
115 | 137 |
116 ;; We specify .el in case someone compiled version.el by mistake. | 138 ;; We specify .el in case someone compiled version.el by mistake. |
117 (load "version.el") | 139 (load "version.el") |
118 | 140 |
119 ;If you want additional libraries to be preloaded and their | 141 ;If you want additional libraries to be preloaded and their |