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:08:25 +0200 Message-ID: <3EFFD8F2-28DD-458B-9B7C-32187DA966B5@gmail.com> References: <12806.1314107627@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]:52536) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QvreY-0003ov-HR for emacs-orgmode@gnu.org; Tue, 23 Aug 2011 10:08:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QvreW-0000WM-Uq for emacs-orgmode@gnu.org; Tue, 23 Aug 2011 10:08:30 -0400 Received: from mail-ew0-f41.google.com ([209.85.215.41]:59009) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QvreW-0000W8-Q2 for emacs-orgmode@gnu.org; Tue, 23 Aug 2011 10:08:28 -0400 Received: by ewy9 with SMTP id 9so77610ewy.0 for ; Tue, 23 Aug 2011 07:08:27 -0700 (PDT) In-Reply-To: <12806.1314107627@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=3FISO-8859-1=3FQ=3FAndr=3DE1s=5FMajor=3F=3D?= , emacs-orgmode On Aug 23, 2011, at 3:53 PM, Nick Dokos wrote: > 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. Hi Nick, I don't think it can be easily relaxed. Many other characters = are operators in Calc and would lead to confusion. But amending the docs is certainly a good idea. Thanks - Carsten