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 09:53:47 -0400 Message-ID: <12806.1314107627@alphaville.dokosmarshall.org> References: 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]:58370) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QvrQO-0002q5-Tu for emacs-orgmode@gnu.org; Tue, 23 Aug 2011 09:53:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QvrQN-0005gP-OM for emacs-orgmode@gnu.org; Tue, 23 Aug 2011 09:53:52 -0400 Received: from g5t0009.atlanta.hp.com ([15.192.0.46]:47765) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QvrQN-0005gC-Kj for emacs-orgmode@gnu.org; Tue, 23 Aug 2011 09:53:51 -0400 In-Reply-To: Message from =?us-ascii?Q?=3D=3FISO-8859-1=3FQ=3FAndr=3DE1s?= =?us-ascii?Q?=5FMajor=3F=3D?= of "Tue\, 23 Aug 2011 15\:20\:27 +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: =?us-ascii?Q?=3D=3FISO-8859-1=3FQ=3FAndr=3DE1s=5FMajor=3F=3D?= Cc: nicholas.dokos@hp.com, emacs-orgmode Andr=C3=A1s Major wrote: > 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 Try adding an underscore to the regexp on line 2179 of org-table.el - something like this (untested): ... (if (string-match "^[a-zA-Z][a-zA-Z0-9_]*$" name) (push (cons name (int-to-string cnt)) org-table-column-names)))) The only characters permitted are alphanumerics. That can probably be easily relaxed. Nick