From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Unexpected relative reference behaviour Date: Fri, 10 May 2013 08:33:39 +0200 Message-ID: References: Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:60070) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uah1R-0005kf-IE for emacs-orgmode@gnu.org; Fri, 10 May 2013 02:42:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uah1M-0002CL-Fr for emacs-orgmode@gnu.org; Fri, 10 May 2013 02:41:41 -0400 Received: from mail-we0-x232.google.com ([2a00:1450:400c:c03::232]:59913) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uah1M-0002Br-Ao for emacs-orgmode@gnu.org; Fri, 10 May 2013 02:41:36 -0400 Received: by mail-we0-f178.google.com with SMTP id q57so3823521wes.9 for ; Thu, 09 May 2013 23:41:35 -0700 (PDT) In-Reply-To: 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: Guido Van Hoecke Cc: orgmode Hi Guido, @I references are unfortunately not yet supported on the left hand side = of a formula. I hope that some day they will, but currently this is not the case. - Carsten On 9.5.2013, at 11:04, Guido Van Hoecke wrote: > Hi, >=20 > Using this table >=20 > | Grand total | 19.55 | | > |------------------+-------+----| > | <2013-05-09 Thu> | 1.23 | v2 | > | <2013-05-04 Sat> | 5.76 | v1 | > | <2013-05-14 Tue> | 3.78 | v1 | > | <2013-04-24 Wed> | 8.78 | v2 | > #+TBLFM: @1$2=3Dvsum(@I..@>);%.2f >=20 > I want the formula to be relative to the first hline so, according to > the manual, it should be possible to change @1$2 into @I-1$2 >=20 > | Grand total | 19.55 | | > |------------------+-------+----| > | <2013-05-09 Thu> | 1.23 | v2 | > | <2013-05-04 Sat> | 5.76 | v1 | > | <2013-05-14 Tue> | 3.78 | v1 | > | <2013-04-24 Wed> | 8.78 | v2 | > #+TBLFM: @I-1$2=3Dvsum(@I..@>);%.2f >=20 > But this produces very strange results. > Hitting C-c * with the cursor in @>$2 produces: >=20 > | Grand total | 19.55 | | > |------------------+-------+----| > | <2013-05-09 Thu> | 1.23 | v2 | > | <2013-05-04 Sat> | 5.76 | v1 | > | <2013-05-14 Tue> | 3.78 | v1 | > | 2939977.00 | 19.55 | v2 | > #+TBLFM: @I-1$2=3Dvsum(@I..@>);%.2f >=20 > Why does it change <2013-04-24 Wed> into 2939977.0, and 8.78 into = 19.55? >=20 > Hitting C-u C-c * with the cursor in @>$2 messes up the complete table > and results in: > | 0.00 | 30.32 | | > |------------+--------+----| > | 0.00 | 30.32 | v2 | > | 4409973.00 | 59.41 | v1 | > | 0.00 | 113.06 | v1 | > | 7349950.00 | 222.34 | v2 | > #+TBLFM: @I-1$2=3Dvsum(@I..@>);%.2f >=20 > Am I correct to assume that this is at least unexpected, and probably > erroneous behaviour? >=20 >=20 > Guido >=20 > -- > "Consider a spherical bear, in simple harmonic motion..." > -- Professor in the UCB physics department >=20