Ensure batch-mode for el-get-byte-compile-from-stdin

It raises an error if it is run interactively.
This commit is contained in:
Ryan C. Thompson 2012-03-07 13:38:21 -08:00
parent 05cf98b2a5
commit 454b9d7444

View File

@ -129,6 +129,8 @@ in `:compile-files' will be byte-compiled.
Standard input can also contain a `:clean-directory' property,
whose value is a directory to be cleared of stale elc files."
(assert noninteractive nil
"`el-get-byte-compile-from-stdin' is to be used only with -batch")
(let* ((input-data (read-minibuffer ""))
(load-path (append (plist-get input-data :load-path) load-path))
(files (plist-get input-data :compile-files))