aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2002-10-12 20:58:12 +0000
committerStefan Monnier2002-10-12 20:58:12 +0000
commita9338083f52b706be9d967f7cb4d3fa71b99b007 (patch)
tree57eaa9f15846617eebc249fce6a733b378ae6237
parent997c3eb129c6bc43d82796893b489239f6d47fa6 (diff)
downloademacs-a9338083f52b706be9d967f7cb4d3fa71b99b007.tar.gz
emacs-a9338083f52b706be9d967f7cb4d3fa71b99b007.zip
(custom-make-dependencies): Ignore preloaded files.
-rw-r--r--lisp/cus-dep.el11
1 files changed, 10 insertions, 1 deletions
diff --git a/lisp/cus-dep.el b/lisp/cus-dep.el
index 5574cca82b9..03185661a2e 100644
--- a/lisp/cus-dep.el
+++ b/lisp/cus-dep.el
@@ -40,9 +40,18 @@ Usage: emacs -batch -l ./cus-dep.el -f custom-make-dependencies DIRS"
40 (message "Directory %s" subdir) 40 (message "Directory %s" subdir)
41 (let ((files (directory-files subdir nil "\\`[^=].*\\.el\\'")) 41 (let ((files (directory-files subdir nil "\\`[^=].*\\.el\\'"))
42 (default-directory (expand-file-name subdir)) 42 (default-directory (expand-file-name subdir))
43 (preloaded (concat "\\`"
44 (regexp-opt (mapcar
45 (lambda (f)
46 (file-name-sans-extension
47 (file-name-nondirectory f)))
48 preloaded-file-list) t)
49 "\\.el\\'"))
43 is-autoloaded) 50 is-autoloaded)
44 (dolist (file files) 51 (dolist (file files)
45 (when (file-exists-p file) 52 (when (and (file-exists-p file)
53 ;; Ignore files that are preloaded.
54 (not (string-match preloaded file)))
46 (erase-buffer) 55 (erase-buffer)
47 (insert-file-contents file) 56 (insert-file-contents file)
48 (goto-char (point-min)) 57 (goto-char (point-min))