From 4abd191c7a289698033c97e67c2375a18f66a54b Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Sun, 26 Mar 2017 17:32:49 -0400 Subject: snakemake-build-targets-at-point: Don't set directory snakemake-compile-targets already takes care of setting default-directory to the Snakefile directory. --- snakemake.el | 11 +++++------ 1 file 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] -- " (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) -- cgit v1.2.3