From 69bc72f551c46feae74a8b59d63096a164eeaa1a Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Thu, 1 Jan 2015 22:59:54 -0500 Subject: snakemake-previous-field-value-column: Expand docstring --- snakemake-mode.el | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/snakemake-mode.el b/snakemake-mode.el index ecb215f..e8a146a 100644 --- a/snakemake-mode.el +++ b/snakemake-mode.el @@ -206,9 +206,14 @@ block whose last field is 'run'." (defun snakemake-previous-field-value-column () "Get column for previous field value. + If directly below a field key, this corresponds to the column for the first non-blank character after 'key:'. Otherwise, it is the -column of the first non-blank character." +column of the first non-blank character. + +This function assumes that the previous line is a field value (in +other words, that point is at or beyond the third line of a rule +or subworkflow block." (save-excursion (forward-line -1) (beginning-of-line) -- cgit v1.2.3