From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Bug: named columns in tables not working if name contains "_" Date: Tue, 23 Aug 2011 16:49:33 +0200 Message-ID: <21E3246E-EA8B-4361-8420-56DD06C830ED@gmail.com> References: <12806.1314107627@alphaville.dokosmarshall.org> <3EFFD8F2-28DD-458B-9B7C-32187DA966B5@gmail.com> <13154.1314109925@alphaville.dokosmarshall.org> Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:43900) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QvsIM-0007xz-DX for emacs-orgmode@gnu.org; Tue, 23 Aug 2011 10:49:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QvsIL-0001Xc-9i for emacs-orgmode@gnu.org; Tue, 23 Aug 2011 10:49:38 -0400 Received: from mail-ew0-f41.google.com ([209.85.215.41]:59292) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QvsIL-0001XV-3x for emacs-orgmode@gnu.org; Tue, 23 Aug 2011 10:49:37 -0400 Received: by ewy9 with SMTP id 9so101160ewy.0 for ; Tue, 23 Aug 2011 07:49:36 -0700 (PDT) In-Reply-To: <13154.1314109925@alphaville.dokosmarshall.org> 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: nicholas.dokos@hp.com Cc: =?us-ascii?Q?=3D=3Fus-ascii=3FQ=3F=3D3D=3D3FISO-8859-1=3D3FQ=3D3?= =?us-ascii?Q?FAndr=3D3DE1s=3D5FMajor=3D3F=3D3D=3F=3D?= , emacs-orgmode On Aug 23, 2011, at 4:32 PM, Nick Dokos wrote: > Carsten Dominik wrote: >=20 >>=20 >> On Aug 23, 2011, at 3:53 PM, Nick Dokos wrote: >>=20 >>> Andr=E1s 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 are >> operators in Calc and would lead to confusion. >>=20 >=20 > So add more syntax: formulas can use {this+is-a*/strange\@name}. >=20 > OK, ok - just kidding. >=20 > Thanks, > Nick >=20 > PS. This is a paraphrase of the indirection principle: Any problem can > be solved by adding yet another layer of syntax... :) Yes, true! - Carsten