From mboxrd@z Thu Jan 1 00:00:00 1970 From: Charles Subject: Re: How to apply multiple TBLFM rules? Date: Mon, 07 May 2012 21:01:14 -0400 Message-ID: <4FA8705A.4060907@verizon.net> References: <1336428054.18057.YahooMailNeo@web161903.mail.bf1.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:53180) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SRYnm-0006zR-T8 for emacs-orgmode@gnu.org; Mon, 07 May 2012 21:01:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SRYnk-0000GI-Uc for emacs-orgmode@gnu.org; Mon, 07 May 2012 21:01:18 -0400 Received: from vms173005pub.verizon.net ([206.46.173.5]:60225) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SRYnk-0000Fx-Oz for emacs-orgmode@gnu.org; Mon, 07 May 2012 21:01:16 -0400 Received: from [10.0.0.2] ([unknown] [71.176.85.52]) by vms173005.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0M3O001JVITTEH90@vms173005.mailsrvcs.net> for emacs-orgmode@gnu.org; Mon, 07 May 2012 20:01:07 -0500 (CDT) In-reply-to: <1336428054.18057.YahooMailNeo@web161903.mail.bf1.yahoo.com> 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 Mike, I'm fairly new to Org and did an experiment. Perhaps only one #+TBLFM: per table is allowed since the plural is used 15.6 Summary of in-buffer settings ================================== . . . `#+TBLFM:' This line contains the formulas for the table directly above the line. #+TBLNAME: test | 1 | 2 | | | 4 | 5 | | | 7 | 8 | 9 | #+TBLFM: @1$3='(+ 10 7)::@2$3='(+ 11 9) C-c C-c on #+TBLFM #+TBLNAME: test | 1 | 2 | 17 | | 4 | 5 | 20 | | 7 | 8 | 9 | #+TBLFM: @1$3='(+ 10 7)::@2$3='(+ 11 9) I have not explored the org-table.el (yet) for any further elucidation. Charlie Millar On 5/7/2012 6:00 PM, Michael Hannon wrote: > Greetings. I'm having difficulty applying multiple formula expressions to an > Org-mode table. For example, if I start with: > > #+TBLNAME: test > | 1 | 2 | | > | 4 | 5 | | > | 7 | 8 | 9 | > #+TBLFM: @1$3='(+ 10 7) > #+TBLFM: @2$3='(+ 11 9) > > and then position the cursor on the first TBLFM line and hit C-c C-c, I get: > > #+TBLNAME: test > | 1 | 2 | 17 | > | 4 | 5 | | > | 7 | 8 | 9 | > #+TBLFM: @1$3='(+ 10 7) > #+TBLFM: @2$3='(+ 11 9) > > I thought that doing this should apply all the formulas, but evidently that's > not the case. In any event, If I then position the cursor on the second TBLFM > line, I get no response whatsoever. > > If I reverse the order of the two TBLFM lines, I get the '20' inserted in the > appropriate place, but the '17' doesn't appear. > > BTW, I've tried doing this with formula debugging turned on (C-{), but that > hasn't provided any information that I've been able to use. > > What am I doing wrong? (Some details of my configuration are appended.) > > Thanks, > > -- Mike > > $ emacs --version > GNU Emacs 23.3.1 > > Org-mode version 7.8.09 (release_7.8.09-390-gfb7ebd ... > > $ uname -a > Linux 3.3.4-3.fc16.x86_64 #1 SMP Thu May 3 14:46:44 UTC 2012 > x86_64 x86_64 x86_64 GNU/Linux > > > > ----- > No virus found in this message. > Checked by AVG - www.avg.com > Version: 10.0.1424 / Virus Database: 2425/4984 - Release Date: 05/07/12 > > >