Permalink
Browse files

Call update-directory-autoloads only on existing directories

Also, only call it on one directory at a time, as recommended
  • Loading branch information...
1 parent 5f07d56 commit 8fb900409886609f6e0a98f130e7aa42f7442c8b @DarwinAwardWinner committed Mar 12, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 el-get-autoloads.el
View
@@ -12,6 +12,7 @@
;; Install
;; Please see the README.asciidoc file from the same distribution
+(require 'cl)
(require 'el-get-core)
(require 'autoload)
@@ -65,7 +66,9 @@
(el-get-ensure-byte-compilable-autoload-file generated-autoload-file)
(when (el-get-package-is-installed package)
- (apply 'update-directory-autoloads (el-get-load-path package)))
+ (mapc 'update-directory-autoloads
+ (remove-if-not #'file-directory-p
+ (el-get-load-path package))))
(el-get-save-and-kill el-get-autoload-file)

0 comments on commit 8fb9004

Please sign in to comment.