emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [bug] Error evaluating table expression with relative references
@ 2015-05-20 14:23 Eric S Fraga
  2015-06-09 13:04 ` Nicolas Goaziou
  0 siblings, 1 reply; 3+ messages in thread
From: Eric S Fraga @ 2015-05-20 14:23 UTC (permalink / raw)
  To: emacs-orgmode

Hello,

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

This is with git updated a minute ago and with emacs -Q.

Thanks,
eric

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 24.4.1, Org release_8.3beta-1154-g6ba251

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

* Re: [bug] Error evaluating table expression with relative references
  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
  0 siblings, 1 reply; 3+ messages in thread
From: Nicolas Goaziou @ 2015-06-09 13:04 UTC (permalink / raw)
  To: emacs-orgmode

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

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

* Re: [bug] Error evaluating table expression with relative references
  2015-06-09 13:04 ` Nicolas Goaziou
@ 2015-06-11 14:37   ` e.fraga
  0 siblings, 0 replies; 3+ messages in thread
From: e.fraga @ 2015-06-11 14:37 UTC (permalink / raw)
  To: emacs-orgmode

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

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

end of thread, other threads:[~2015-06-11 14:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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

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