aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2016-06-13 00:26:13 -0400
committerKyle Meyer <kyle@kyleam.com>2016-06-13 00:26:13 -0400
commita8efc182c1ab68e65f20f7ce801921435ecf1c2f (patch)
tree95fa5888750c00ae9008c7cad08a435d34caa439
parent3f02d1af5548d15a410ee745b9e7ebc09266a1ab (diff)
downloadsnakemake-mode-a8efc182c1ab68e65f20f7ce801921435ecf1c2f.tar.gz
snakemake-compile-targets: Update compile-history
-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)