aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--snakemake.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/snakemake.el b/snakemake.el
index 213a8c1..f5d5dfb 100644
--- a/snakemake.el
+++ b/snakemake.el
@@ -524,8 +524,10 @@ Snakemake-graph mode is a minor mode that provides a key,
(defun snakemake-compile-targets (targets args)
"Run non-interactive `compile' with 'snakemake [ARGS] -- TARGETS'."
- (let ((default-directory (snakemake-snakefile-directory)))
- (compile (snakemake--define-compile-command targets args))))
+ (let* ((default-directory (snakemake-snakefile-directory))
+ (cmd (snakemake--define-compile-command targets args)))
+ (compile cmd)
+ (push cmd compile-history)))
;;;###autoload
(defun snakemake-build-targets-at-point (&optional args)