Skip to content

Commit

Permalink
Merge pull request dimitri#823 from DamienCassou/honor-el-get-byte-co…
Browse files Browse the repository at this point in the history
…mpile-for-init-files

Honor el-get-byte-compile for init files
  • Loading branch information
dimitri committed Jul 30, 2012
2 parents 5bf75a1 + 98bf27f commit 9d7c022
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions el-get-recipes.el
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,13 @@ compiled version."
(let* ((init-file-name (format "init-%s.el" package))
(package-init-file
(expand-file-name init-file-name el-get-user-package-directory))
(compiled-init-file (concat (file-name-sans-extension package-init-file) ".elc")))
(file-name-no-extension (file-name-sans-extension package-init-file))
(compiled-init-file (concat file-name-no-extension ".elc")))
(when (file-exists-p package-init-file)
(el-get-byte-compile-file package-init-file)
(el-get-verbose-message "el-get: load %S" compiled-init-file)
(load compiled-init-file 'noerror)))))
(when el-get-byte-compile
(el-get-byte-compile-file package-init-file))
(el-get-verbose-message "el-get: load %S" file-name-no-extension)
(load file-name-no-extension 'noerror)))))

(defun el-get-recipe-dirs ()
"Return the elements of el-get-recipe-path that actually exist.
Expand Down

0 comments on commit 9d7c022

Please sign in to comment.