From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Bug: named columns in tables not working if name contains "_" Date: Wed, 24 Aug 2011 16:39:32 -0400 Message-ID: <5392.1314218372@alphaville.americas.hpqcorp.net> References: <12806.1314107627@alphaville.dokosmarshall.org> <3EFFD8F2-28DD-458B-9B7C-32187DA966B5@gmail.com> <87obzgxfol.fsf@gnu.org> <77B5D30F-0CBD-4963-AAF4-EB55EE11C44A@gmail.com> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([140.186.70.92]:56039) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QwKEa-0000mN-Ad for emacs-orgmode@gnu.org; Wed, 24 Aug 2011 16:39:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QwKEZ-0007aS-8q for emacs-orgmode@gnu.org; Wed, 24 Aug 2011 16:39:36 -0400 Received: from g1t0029.austin.hp.com ([15.216.28.36]:5223) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QwKEZ-0007aM-4B for emacs-orgmode@gnu.org; Wed, 24 Aug 2011 16:39:35 -0400 In-Reply-To: Message from Michael Brand of "Wed, 24 Aug 2011 22:15:51 +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: Michael Brand Cc: =?ISO-8859-1?Q?Andr=E1s_Major?= , Bastien , nicholas.dokos@hp.com, emacs-orgmode , Carsten Dominik Michael Brand wrote: > 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) > That's worth recording somewhere in Worg, methinks. Nick