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: Tue, 23 Aug 2011 10:32:05 -0400 Message-ID: <13154.1314109925@alphaville.dokosmarshall.org> References: <12806.1314107627@alphaville.dokosmarshall.org> <3EFFD8F2-28DD-458B-9B7C-32187DA966B5@gmail.com> Reply-To: nicholas.dokos@hp.com Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:55219) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qvs1W-0006Sz-1J for emacs-orgmode@gnu.org; Tue, 23 Aug 2011 10:32:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qvs1Q-0006Jg-6J for emacs-orgmode@gnu.org; Tue, 23 Aug 2011 10:32:13 -0400 Received: from g1t0027.austin.hp.com ([15.216.28.34]:26002) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qvs1P-0006JW-Ui for emacs-orgmode@gnu.org; Tue, 23 Aug 2011 10:32:08 -0400 In-Reply-To: Message from Carsten Dominik of "Tue\, 23 Aug 2011 16\:08\:25 +0200." <3EFFD8F2-28DD-458B-9B7C-32187DA966B5@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: =?us-ascii?Q?=3D=3Fus-ascii=3FQ=3F=3D3D=3D3FISO-8859-1=3D3FQ=3D3FAndr?= =?us-ascii?Q?=3D3DE1s=3D5FMajor=3D3F=3D3D=3F=3D?= , nicholas.dokos@hp.com, emacs-orgmode Carsten Dominik wrote: >=20 > On Aug 23, 2011, at 3:53 PM, Nick Dokos wrote: >=20 > > Andr=C3=A1s Major wrote: > >=20 > >=20 > >> Yet another one I just stumbled across: if I create a table and use > >> "!" in the first column to assign names to the columns, I can only > >> reference those columns by name in #+TBLFM: if the names don't contain > >> a "_" character. This isn't mentioned in the docs and shouldn't be > >> so, IMHO. I haven't checked for other common characters that are > >> prohibited, but the "_" bites me quite a bit. > >>=20 > >=20 > > Try adding an underscore to the regexp on line 2179 of org-table.el - > > something like this (untested): > >=20 > > ... > > (if (string-match "^[a-zA-Z][a-zA-Z0-9_]*$" name) > > (push (cons name (int-to-string cnt)) org-table-column-names)))) > >=20 > >=20 > > The only characters permitted are alphanumerics. That can probably be > > easily relaxed. >=20 > Hi Nick, I don't think it can be easily relaxed. Many other characters a= re > operators in Calc and would lead to confusion. >=20 So add more syntax: formulas can use {this+is-a*/strange\@name}. OK, ok - just kidding. Thanks, Nick PS. This is a paraphrase of the indirection principle: Any problem can be solved by adding yet another layer of syntax...