summaryrefslogtreecommitdiff
path: root/snakemake.el
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2017-03-26 19:06:46 -0400
committerKyle Meyer <kyle@kyleam.com>2017-03-26 21:21:31 -0400
commit7ffea30d691cd7a46b6969767b6840dabaaea428 (patch)
tree217ef45cb5983630e2f945fadd003f52a4dfa2d9 /snakemake.el
parent0147ebc2826bca3dd042893507f6e65d5fc0a722 (diff)
downloadsnakemake-mode-7ffea30d691cd7a46b6969767b6840dabaaea428.tar.gz
Rename snakemake-compile
Make the name and popup description more general so that they still apply when the terminal interface is added.
Diffstat (limited to 'snakemake.el')
-rw-r--r--snakemake.el8
1 files changed, 5 insertions, 3 deletions
diff --git a/snakemake.el b/snakemake.el
index 2a860b2..2299182 100644
--- a/snakemake.el
+++ b/snakemake.el
@@ -39,7 +39,7 @@
;; names from Dired, Org links, and general text under point that
;; looks like a file name.
;;
-;; snakemake-compile
+;; snakemake-build
;;
;; This action leads to an interactive `compile' call that allows
;; you to edit the command before it is run.
@@ -598,7 +598,7 @@ $ snakemake [ARGS] -- <rule>"
args))
;;;###autoload
-(defun snakemake-compile (&optional args)
+(defun snakemake-build (&optional args)
"Read `compile' command for building targets.
$ snakemake [ARGS] -- <targets>"
@@ -612,6 +612,8 @@ $ snakemake [ARGS] -- <targets>"
(default-directory (snakemake-snakefile-directory)))
(call-interactively #'compile)))
+(define-obsolete-function-alias 'snakemake-compile 'snakemake-build "1.2.0")
+
;;;###autoload (autoload 'snakemake-popup "snakemake" nil t)
(magit-define-popup snakemake-popup
"Popup console for running Snakemake."
@@ -626,7 +628,7 @@ $ snakemake [ARGS] -- <targets>"
'((?a "Allowed rules" "--allowed-rules " snakemake-read-rules)
(?j "Number of jobs" "-j"))
:actions
- '((?c "Compile" snakemake-compile) nil nil
+ '((?c "Edit and run command" snakemake-build) nil nil
(?p "Build target at point" snakemake-build-targets-at-point)
(?f "Build file" snakemake-build-file-target)
(?r "Build rule" snakemake-build-rule-target))