From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Loris Bennett" Subject: Re: Table formula with @I Date: Tue, 02 Sep 2014 14:34:48 +0200 Message-ID: <878um2gpzr.fsf@hornfels.zedat.fu-berlin.de> References: <87tx4rbcyn.fsf@hornfels.zedat.fu-berlin.de> <84sikb2wuz.fsf@gmail.com> <5405ACD5.7060504@verizon.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47581) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XOnIh-0005Ai-51 for emacs-orgmode@gnu.org; Tue, 02 Sep 2014 08:35:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XOnIb-0000Zk-SX for emacs-orgmode@gnu.org; Tue, 02 Sep 2014 08:35:07 -0400 Received: from plane.gmane.org ([80.91.229.3]:45774) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XOnIb-0000Wv-IH for emacs-orgmode@gnu.org; Tue, 02 Sep 2014 08:35:01 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XOnIa-0001M0-Gq for emacs-orgmode@gnu.org; Tue, 02 Sep 2014 14:35:00 +0200 Received: from hornfels.zedat.fu-berlin.de ([160.45.11.110]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 02 Sep 2014 14:35:00 +0200 Received: from loris.bennett by hornfels.zedat.fu-berlin.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 02 Sep 2014 14:35:00 +0200 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 Charles Millar writes: > Andrea Rossetti wrote: >> "Loris Bennett" writes: >>> In the following: >>> >>> | | | | >>> | | | | >>> |---+---+---| >>> | 1 | 1 | 1 | >>> #+TBLFM: @I$3=1 >>> >>> I expected to get a '1' just in the third column. Where am I going >>> wrong? >> (apologies in advance for suggesting just a workaround >> instead of a rational explanation, hope it helps anyway) >> >> It happened to me too some time ago, I used a slightly >> different formula and it worked: >> >> #+TBLFM: @I+1$3..@I+1$3=1 >> >> Does it work for you too? Kindest regards, >> >> Andrea >> > I must be missing something. When I recalculate the table (update > table) applying both above TBLFM's - on the line to be updated, in the > TBLFM line, and in the table itself, an error is returned > > "can't assign to hline relative reference" > > Org-mode version 8.3beta (release_8.3beta-304-ga4a1d8 @ > c:/cygwin/home/Charlie01/.elisp/org-mode/lisp/) > GNU Emacs 24.3.1 (i386-mingw-nt6.0.6002) of 2013-03-17 on MARVIN > Windows Vista SP2 > > Charlie Andrea's kludge works for me. My understanding is that only a C-c C-c in the TBLFM would actually update the table. Looking at the documentation at http://orgmode.org/manual/References.html#References again, I would have expected @I+1$3 to be a correct way of referring to the 3rd column in the row after the first hline, rather than the entire row. It is unclear to me what @I$3 as I used in my example above should correspond to. Cheers, Loris -- This signature is currently under construction.