From 1e570d8fb8fb9d07a989fdb8fdf3980d190449b6 Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Sun, 26 Mar 2017 19:06:46 -0400 Subject: Move snakemake--make-command This is in preparation for the addition of a terminal interface. No code change is intended. --- snakemake.el | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'snakemake.el') diff --git a/snakemake.el b/snakemake.el index 398b8ef..ed8e486 100644 --- a/snakemake.el +++ b/snakemake.el @@ -543,17 +543,17 @@ Snakemake-graph mode is a minor mode that provides a key, ;;; Compilation commands +(defun snakemake--make-command (targets args) + (mapconcat #'identity + `(,snakemake-program ,@args "--" ,@targets) + " ")) + (add-to-list 'compilation-error-regexp-alist 'snakemake) (add-to-list 'compilation-error-regexp-alist-alist '(snakemake . ("^SyntaxError in line \\([0-9]+\\) of \\(.*[^A-z]Snakefile\\):$" 2 1))) -(defun snakemake--make-command (targets args) - (mapconcat #'identity - `(,snakemake-program ,@args "--" ,@targets) - " ")) - (defun snakemake-compile-targets (targets args) "Run non-interactive `compile' with 'snakemake [ARGS] -- TARGETS'." (let ((default-directory (snakemake-snakefile-directory)) -- cgit v1.2.3