emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: emacs-orgmode@gnu.org
Subject: Re: [bug] Error evaluating table expression with relative references
Date: Tue, 09 Jun 2015 15:04:49 +0200	[thread overview]
Message-ID: <87vbexuj66.fsf@selenimh.access.network> (raw)
In-Reply-To: <87k2w3l44t.fsf@pinto.chemeng.ucl.ac.uk> (Eric S. Fraga's message of "Wed, 20 May 2015 15:23:14 +0100")

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.


Regards,

-- 
Nicolas Goaziou

  reply	other threads:[~2015-06-09 13:03 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 [this message]
2015-06-11 14:37   ` e.fraga

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=87vbexuj66.fsf@selenimh.access.network \
    --to=mail@nicolasgoaziou.fr \
    --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).