From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: bug in TBLFM Date: Fri, 13 Feb 2009 10:05:09 +0100 Message-ID: References: <802006.57552.qm@web28306.mail.ukl.yahoo.com> Mime-Version: 1.0 (Apple Message framework v930.3) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LXtz0-0004BF-Ow for emacs-orgmode@gnu.org; Fri, 13 Feb 2009 04:05:14 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LXtyz-0004Al-Sj for emacs-orgmode@gnu.org; Fri, 13 Feb 2009 04:05:14 -0500 Received: from [199.232.76.173] (port=50642 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LXtyz-0004Ag-Nk for emacs-orgmode@gnu.org; Fri, 13 Feb 2009 04:05:13 -0500 Received: from mail-bw0-f208.google.com ([209.85.218.208]:36203) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LXtyy-0003z2-Jb for emacs-orgmode@gnu.org; Fri, 13 Feb 2009 04:05:13 -0500 Received: by bwz4 with SMTP id 4so2132826bwz.18 for ; Fri, 13 Feb 2009 01:05:10 -0800 (PST) In-Reply-To: <802006.57552.qm@web28306.mail.ukl.yahoo.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: giovanni.ridolfi@yahoo.it Cc: org-mode mailing list On Feb 11, 2009, at 4:43 PM, Giovanni Ridolfi wrote: > Hi, everybody, > > Org-mode version 6.22b > GNU Emacs 22.3.1 (i386-mingw-nt5.1.2600) of 2008-09-06 on SOFT-MJASON > > I found an unexpected behaviour, a bug ?, in TBLFM > (well I've already reported it in > http://lists.gnu.org/archive/html/emacs-orgmode/2009-01/msg00252.html > but I didn't provide a report clear enough; > ah, the importance of proper bug reports ;-) > > table (from manual): > > |---+---------+--------+--------+--------+-------+------| > | | Student | Prob 1 | Prob 2 | Prob 3 | Total | Note | > |---+---------+--------+--------+--------+-------+------| > | ! | | P1 | P2 | P3 | Tot | | > | # | Maximum | 12 | 15 | 25 | | 52.0 | > | ^ | | m1 | m2 | m3 | mt | | > |---+---------+--------+--------+--------+-------+------| > | # | Peter | 10 | 8 | 23 | | 41.0 | > | # | Sam | 2 | 4 | 3 | | 9.0 | > |---+---------+--------+--------+--------+-------+------| > | | Average | | | | 25.0 | | > | ^ | | | | | at | | > | $ | max=10 | | | | | | > |---+---------+--------+--------+--------+-------+------| > #+TBLFM: $6=vsum($P1..$P3)::$7=10*$Tot/$max;%.1f::$at=vmean(@-II..@- > I);%.1f > > BUG : > A column can't be referred with its name, > if it is left hand side of a formula. > > (Please try changing $6 with $Tot in the first formula ) > > Well I don't know if this is a bug or a constrain in > the implementation. > This being the case I think it should be > documented in the manual in the section (Field formulas) like: > "The left hand side of a formula may also be a named field, > but not a named column" I have documented this limitation, thanks for the report. - Carsten