diff options
author | Kyle Meyer <kyle@kyleam.com> | 2017-03-26 17:32:49 -0400 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2017-03-26 21:21:31 -0400 |
commit | 4abd191c7a289698033c97e67c2375a18f66a54b (patch) | |
tree | 4a3a6816c04209e494dc37538bfa9bfb04d16c15 | |
parent | 74afb582c08d692555e42ce29a37f15305e66f25 (diff) | |
download | snakemake-mode-4abd191c7a289698033c97e67c2375a18f66a54b.tar.gz |
snakemake-build-targets-at-point: Don't set directory
snakemake-compile-targets already takes care of setting
default-directory to the Snakefile directory.
-rw-r--r-- | snakemake.el | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/snakemake.el b/snakemake.el index 86cb88e..35f8930 100644 --- a/snakemake.el +++ b/snakemake.el @@ -566,12 +566,11 @@ Snakemake-graph mode is a minor mode that provides a key, $ snakemake [ARGS] -- <targets>" (interactive (list (snakemake-arguments))) - (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))) + (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) |