summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--snakemake.el11
1 files changed, 6 insertions, 5 deletions
diff --git a/snakemake.el b/snakemake.el
index 09e1916..86cb88e 100644
--- a/snakemake.el
+++ b/snakemake.el
@@ -566,11 +566,12 @@ Snakemake-graph mode is a minor mode that provides a key,
$ snakemake [ARGS] -- <targets>"
(interactive (list (snakemake-arguments)))
- (let ((targets (or (snakemake-file-targets-at-point 'check)
- (snakemake-rule-at-point 'target)
- (user-error "No target found at point")))
- (default-directory (snakemake-snakefile-directory)))
- (snakemake-compile-targets targets args)))
+ (let ((default-directory (snakemake-snakefile-directory)))
+ (snakemake-compile-targets
+ (or (snakemake-file-targets-at-point 'check)
+ (snakemake-rule-at-point 'target)
+ (user-error "No target found at point"))
+ args)))
;;;###autoload
(defun snakemake-build-file-target (&optional args)