emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* question on user-error reference leading out of table
@ 2020-06-29 17:03 Mario Frasca
  2020-07-03 14:53 ` bug: Row descriptor <...> leads outside table Mario Frasca
  0 siblings, 1 reply; 3+ messages in thread
From: Mario Frasca @ 2020-06-29 17:03 UTC (permalink / raw)
  To: emacs-orgmode

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/2qu7

problem 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-type

I'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.



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-07-03 14:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-29 17:03 question on user-error reference leading out of table Mario Frasca
2020-07-03 14:53 ` bug: Row descriptor <...> leads outside table Mario Frasca
2020-07-03 14:55   ` Mario Frasca

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).