From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Brand Subject: Re: Bug: named columns in tables not working if name contains "_" Date: Wed, 24 Aug 2011 22:15:51 +0200 Message-ID: References: <12806.1314107627@alphaville.dokosmarshall.org> <3EFFD8F2-28DD-458B-9B7C-32187DA966B5@gmail.com> <87obzgxfol.fsf@gnu.org> <77B5D30F-0CBD-4963-AAF4-EB55EE11C44A@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from eggs.gnu.org ([140.186.70.92]:35234) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QwJrj-0003mw-5y for emacs-orgmode@gnu.org; Wed, 24 Aug 2011 16:16:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QwJrd-0002vt-9h for emacs-orgmode@gnu.org; Wed, 24 Aug 2011 16:15:59 -0400 Received: from mail-ww0-f49.google.com ([74.125.82.49]:55586) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QwJrd-0002vf-2J for emacs-orgmode@gnu.org; Wed, 24 Aug 2011 16:15:53 -0400 Received: by wwf10 with SMTP id 10so1334837wwf.30 for ; Wed, 24 Aug 2011 13:15:52 -0700 (PDT) In-Reply-To: <77B5D30F-0CBD-4963-AAF4-EB55EE11C44A@gmail.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: Carsten Dominik Cc: =?ISO-8859-1?Q?Andr=E1s_Major?= , Bastien , nicholas.dokos@hp.com, emacs-orgmode On Tue, Aug 23, 2011 at 20:29, Carsten Dominik wrote: > I have checked, underscore is aceptable, calc allows it in variables names. > However, I would not recommend adding any more characters to this regexp. Just to mention: Although "_" is the subscript operator that takes the nth vector element in Calc, I don't mind the change since the formula below that uses "$vector_1" did also not work before the change probably because some other regexp to parse the field name already included "_". And the alternative formula with "subscr($vector, 1)" seems to be syntactically more robust/flexible/clear/etc. anyway. | | [x y] | x | x | #ERROR | x | | ^ | vector | | | | | #+TBLFM: @<$3 = $2_1 :: @<$4 = subscr($2, 1) :: @<$5 = $vector_1 :: @<$6 = subscr($vector, 1) Michael