el-get/test/el-get-issue-541.el
Ryan C. Thompson 1fb104010c Use setq instead of let in tests
This makes it easier to run tests interactively and inspect the
results afterward, because the variables such as "el-get-sources" that
were set for the tests are still bound to the values they had during
the test.
2012-03-18 12:33:04 -07:00

19 lines
424 B
EmacsLisp

;; https://github.com/dimitri/el-get/issues/541
;;
;; Pass load-path to byte-compiling child process
(setq debug-on-error t
el-get-verbose t)
(el-get 'sync 'js2-mode)
(setq compiled-file
(concat
(file-name-as-directory
(el-get-package-directory 'js2-mode))
"js2-mode.elc"))
(if (file-exists-p compiled-file)
(message "Byte-compiling succeeded.")
(error "Byte-compiling failed."))