emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Mario Frasca <mario@anche.no>
To: emacs-orgmode@gnu.org
Subject: question on user-error reference leading out of table
Date: Mon, 29 Jun 2020 12:03:13 -0500	[thread overview]
Message-ID: <d8882a83-7220-7518-a5d4-68a89a79d99d@anche.no> (raw)


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.


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.

             reply	other threads:[~2020-06-29 17:04 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-29 17:03 Mario Frasca [this message]
2020-07-03 14:53 ` bug: Row descriptor <...> leads outside table Mario Frasca
2020-07-03 14:55   ` Mario Frasca

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d8882a83-7220-7518-a5d4-68a89a79d99d@anche.no \
    --to=mario@anche.no \
    --cc=emacs-orgmode@gnu.org \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox


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).