From mboxrd@z Thu Jan 1 00:00:00 1970 From: Giovanni Ridolfi Subject: bug in TBLFM Date: Wed, 11 Feb 2009 15:43:17 +0000 (GMT) Message-ID: <802006.57552.qm@web28306.mail.ukl.yahoo.com> Reply-To: giovanni.ridolfi@yahoo.it Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LXHFA-0005Nb-G8 for emacs-orgmode@gnu.org; Wed, 11 Feb 2009 10:43:20 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LXHF9-0005MG-GQ for emacs-orgmode@gnu.org; Wed, 11 Feb 2009 10:43:19 -0500 Received: from [199.232.76.173] (port=55517 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LXHF9-0005Ly-9l for emacs-orgmode@gnu.org; Wed, 11 Feb 2009 10:43:19 -0500 Received: from n27.bullet.mail.ukl.yahoo.com ([87.248.110.144]:26521) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1LXHF8-0004ev-Nz for emacs-orgmode@gnu.org; Wed, 11 Feb 2009 10:43:19 -0500 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: org-mode mailing list 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=20 (well I've already reported it in=20 http://lists.gnu.org/archive/html/emacs-orgmode/2009-01/msg00252.html=20 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=3D10 | | | | | | |---+---------+--------+--------+--------+-------+------| #+TBLFM: $6=3Dvsum($P1..$P3)::$7=3D10*$Tot/$max;%.1f::$at=3Dvmean(@-II..@-I= );%.1f BUG : A column can't be referred with its name,=20 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=20 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" cheers, Giovanni =0A=0A=0A Passa a Yahoo! Mail.=0A=0ALa webmail che ti offre GRATIS spa= zio illimitato, =0Aantispam e messenger integrato.=0Ahttp://it.mail.yahoo.c= om/=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0