aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2013-05-15 19:31:16 -0400
committerGlenn Morris2013-05-15 19:31:16 -0400
commitf5ba00a6cad3b8ab8bd94e3ba566f3608f1dc02e (patch)
tree296f04f21c9d445b0ff8fa4c3ed7959dc4748e8e
parentda547b32a6c45494ccbd2073f0491383e8864ea9 (diff)
downloademacs-f5ba00a6cad3b8ab8bd94e3ba566f3608f1dc02e.tar.gz
emacs-f5ba00a6cad3b8ab8bd94e3ba566f3608f1dc02e.zip
custom-make-dependencies tweaks
* lisp/cus-dep.el (custom-make-dependencies): Ignore dotfiles (dir-locals). Don't mistakenly ignore files whose basenames match a basename from preloaded-file-list (eg cedet/ede/simple.el).
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/cus-dep.el10
2 files changed, 10 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 8b8cb820428..c14a81b9bb0 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12013-05-15 Glenn Morris <rgm@gnu.org>
2
3 * cus-dep.el (custom-make-dependencies): Ignore dotfiles (dir-locals).
4 Don't mistakenly ignore files whose basenames match a basename
5 from preloaded-file-list (eg cedet/ede/simple.el).
6
12013-05-15 Juri Linkov <juri@jurta.org> 72013-05-15 Juri Linkov <juri@jurta.org>
2 8
3 * isearch.el (isearch-char-by-name): Rename from 9 * isearch.el (isearch-char-by-name): Rename from
diff --git a/lisp/cus-dep.el b/lisp/cus-dep.el
index 12a3211a0b0..d31568bb523 100644
--- a/lisp/cus-dep.el
+++ b/lisp/cus-dep.el
@@ -61,16 +61,14 @@ Usage: emacs -batch -l ./cus-dep.el -f custom-make-dependencies DIRS"
61 ;; the args as directories after we are done. 61 ;; the args as directories after we are done.
62 (while (setq subdir (pop command-line-args-left)) 62 (while (setq subdir (pop command-line-args-left))
63 (message "Directory %s" subdir) 63 (message "Directory %s" subdir)
64 (let ((files (directory-files subdir nil "\\`[^=].*\\.el\\'")) 64 (let ((files (directory-files subdir nil "\\`[^=.].*\\.el\\'"))
65 (default-directory (expand-file-name subdir)) 65 (default-directory (expand-file-name subdir))
66 (preloaded (concat "\\`" 66 (preloaded (concat "\\`\\(\\./+\\)?"
67 (regexp-opt (mapcar 67 (regexp-opt preloaded-file-list t)
68 'file-name-base
69 preloaded-file-list) t)
70 "\\.el\\'"))) 68 "\\.el\\'")))
71 (dolist (file files) 69 (dolist (file files)
72 (unless (or (string-match custom-dependencies-no-scan-regexp file) 70 (unless (or (string-match custom-dependencies-no-scan-regexp file)
73 (string-match preloaded file) 71 (string-match preloaded (format "%s/%s" subdir file))
74 (not (file-exists-p file))) 72 (not (file-exists-p file)))
75 (erase-buffer) 73 (erase-buffer)
76 (kill-all-local-variables) 74 (kill-all-local-variables)