From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [bug] Error evaluating table expression with relative references Date: Tue, 09 Jun 2015 15:04:49 +0200 Message-ID: <87vbexuj66.fsf@selenimh.access.network> References: <87k2w3l44t.fsf@pinto.chemeng.ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40722) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z2JBh-0005FG-O2 for emacs-orgmode@gnu.org; Tue, 09 Jun 2015 09:03:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z2JBc-0001ZW-0T for emacs-orgmode@gnu.org; Tue, 09 Jun 2015 09:03:29 -0400 Received: from relay3-d.mail.gandi.net ([2001:4b98:c:538::195]:45213) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z2JBb-0001UY-Pr for emacs-orgmode@gnu.org; Tue, 09 Jun 2015 09:03:23 -0400 Received: from selenimh.access.network (unknown [IPv6:2a01:6600:8080:9601::2de]) (Authenticated sender: mail@nicolasgoaziou.fr) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id C4511A812B for ; Tue, 9 Jun 2015 15:03:20 +0200 (CEST) In-Reply-To: <87k2w3l44t.fsf@pinto.chemeng.ucl.ac.uk> (Eric S. Fraga's message of "Wed, 20 May 2015 15:23:14 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hello, Eric S Fraga 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