+2011-06-13 Glenn Morris <rgm@gnu.org>
+
+ * cus-dep.el (custom-make-dependencies): Use up command-line-args-left.
+
2011-06-13 Martin Rudalics <rudalics@gmx.at>
* help.el (help-window): Remove variable.
(defun custom-make-dependencies ()
"Batch function to extract custom dependencies from .el files.
Usage: emacs -batch -l ./cus-dep.el -f custom-make-dependencies DIRS"
- (let ((enable-local-eval nil))
+ (let ((enable-local-eval nil)
+ subdir)
(with-temp-buffer
- (dolist (subdir command-line-args-left)
+ ;; Use up command-line-args-left else Emacs can try to open
+ ;; the args as directories after we are done.
+ (while (setq subdir (pop command-line-args-left))
(message "Directory %s" subdir)
(let ((files (directory-files subdir nil "\\`[^=].*\\.el\\'"))
(default-directory (expand-file-name subdir))