From 454b9d7444bed16575fae324606d160a3ec9005f Mon Sep 17 00:00:00 2001 From: "Ryan C. Thompson" Date: Wed, 7 Mar 2012 13:38:21 -0800 Subject: [PATCH] Ensure batch-mode for el-get-byte-compile-from-stdin It raises an error if it is run interactively. --- el-get-byte-compile.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/el-get-byte-compile.el b/el-get-byte-compile.el index e0509704..9e87fdba 100644 --- a/el-get-byte-compile.el +++ b/el-get-byte-compile.el @@ -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))