From mboxrd@z Thu Jan 1 00:00:00 1970 From: James Harkins Subject: org-table: Reference *one* cell below a hline? Date: Thu, 29 May 2014 17:22:58 +0800 Message-ID: <98c75e11-5722-4f88-8bc3-56cb12f99ac3@dewdrop-world.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52647) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WpwYQ-0004of-HU for emacs-orgmode@gnu.org; Thu, 29 May 2014 05:23:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WpwYH-00007R-Fr for emacs-orgmode@gnu.org; Thu, 29 May 2014 05:23:18 -0400 Received: from mail-yh0-x22f.google.com ([2607:f8b0:4002:c01::22f]:55333) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WpwYH-00007K-CH for emacs-orgmode@gnu.org; Thu, 29 May 2014 05:23:09 -0400 Received: by mail-yh0-f47.google.com with SMTP id z6so36410yhz.34 for ; Thu, 29 May 2014 02:23:08 -0700 (PDT) Received: from localhost ([219.137.190.13]) by mx.google.com with ESMTPSA id l46sm100996yhn.49.2014.05.29.02.23.06 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 29 May 2014 02:23:08 -0700 (PDT) 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: orgmode I have this: | Section | Seconds | |----------+---------| | Theme | 54 | | 12/8 | 80 | | 6/8 | 66 | | Clarinet | 116 | | Oboe | 89 | | Bassoon | 60 | |----------+---------| | | | #+TBLFM: @II+1$2=3Dvsum(@I$2..@II$2) After calculation (C-u C-u C-c *), I expected: | Section | Seconds | |----------+---------| | Theme | 54 | | 12/8 | 80 | | 6/8 | 66 | | Clarinet | 116 | | Oboe | 89 | | Bassoon | 60 | |----------+---------| | | 465 | #+TBLFM: @II+1$2=3Dvsum(@I$2..@II$2) I got: | Section | Seconds | |----------+---------| | Theme | 54 | | 12/8 | 80 | | 6/8 | 66 | | Clarinet | 116 | | Oboe | 89 | | Bassoon | 60 | |----------+---------| | 465 | 465 | #+TBLFM: @II+1$2=3Dvsum(@I$2..@II$2) That is, "@II+1$2" refers to the *entire row* beneath the second hline,=20 rather than only the second column in that row. In other words, org-table=20 discards the $2. That can't be right, can it? I'm going to add rows below "465," so I can't just use "@>$2." This table won't be public, so no big deal *in this case*. But I can=20 imagine cases where this would be absolutely wrong behavior. hjh