emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: <e.fraga@ucl.ac.uk>
To: emacs-orgmode@gnu.org
Subject: Re: [bug] Error evaluating table expression with relative references
Date: Thu, 11 Jun 2015 15:37:27 +0100	[thread overview]
Message-ID: <87r3pifh08.fsf@ucl.ac.uk> (raw)
In-Reply-To: <87vbexuj66.fsf@selenimh.access.network> (Nicolas Goaziou's message of "Tue, 9 Jun 2015 15:04:49 +0200")

On Tuesday,  9 Jun 2015 at 15:04, Nicolas Goaziou wrote:
> Hello,
>
> Eric S Fraga <e.fraga@ucl.ac.uk> writes:
>
>> I seem to have encountered a bug in table spreadsheet
>> evaluations.  See
>> this example:
>>
>> #+begin_src org
>>   ,* Table evaluation with relative references
>>   | 1 | 2 | 3 |      6 |
>>   | 1 | 2 | 3 | #ERROR |
>>   ,#+TBLFM: @1$4=vsum($1..$3)::@2$4=vsum($1..$-1)
>> #+end_src
>>
>> As far as I can tell, the two formulae should be equivalent?  Or am
>> I
>> missing something silly (not unlikely ;-)?
>>
>> Turning on debugging shows that the first formula gets converted to
>> vsum([1,2,3]) whereas the second goes to vsum((1)..(3)).
>
> Fixed in 3924989b4f45a5c7ff89a4f7abdebc570cbaf7e2. Thank you.

Confirmed!  Many thanks.
-- 
: Eric S Fraga (0xFFFCF67D), Emacs 24.4.1, Org release_8.3beta-802-g7e4228.dirty

      reply	other threads:[~2015-06-11 14:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-20 14:23 [bug] Error evaluating table expression with relative references Eric S Fraga
2015-06-09 13:04 ` Nicolas Goaziou
2015-06-11 14:37   ` e.fraga [this message]

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:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  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=87r3pifh08.fsf@ucl.ac.uk \
    --to=e.fraga@ucl.ac.uk \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* 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

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