|
From: | Mario Frasca |
Subject: | question on user-error reference leading out of table |
Date: | Mon, 29 Jun 2020 12:03:13 -0500 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 |
Hi,I need some help understanding how to use org-mode/org-table for references leading outside my table.
I have a series of daily figures, and I am computing the series of running sums. column one is the daily data, column two is the running sum of the preceding 14 values from column 1.
http://ix.io/2qu7problem is the @-13$1 reference in the function for the second column: it hits a software-generated "user-error: Row descriptor -13 leads outside table".
this happens even if the formula says (if (> @# 13) (apply '+ '(@-13$1..$1)) 0), that is, even if the formula is not evaluated on the cells where the reference does indeed lead out of the table.
this happens around line 2809 of org-table.el, inside org-table--row-typeI've tried to catch the user-error with a `condition-case', but even there, the error seems to happen before evaluation.
I've replaced the `(user-error)' function with a `nil', and it works for me, but that's a very rough measure I'm afraid.
[Prev in Thread] | Current Thread | [Next in Thread] |