From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Bug: named columns in tables not working if name contains "_" Date: Tue, 23 Aug 2011 16:35:30 +0200 Message-ID: <87obzgyuna.fsf@altern.org> References: <12806.1314107627@alphaville.dokosmarshall.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:52195) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QvtZY-0002vR-M7 for emacs-orgmode@gnu.org; Tue, 23 Aug 2011 12:11:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QvtZX-0003Q5-I1 for emacs-orgmode@gnu.org; Tue, 23 Aug 2011 12:11:28 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:59472) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QvtZX-0003PN-89 for emacs-orgmode@gnu.org; Tue, 23 Aug 2011 12:11:27 -0400 Received: by mail-wy0-f169.google.com with SMTP id 11so249758wyi.0 for ; Tue, 23 Aug 2011 09:11:26 -0700 (PDT) In-Reply-To: <12806.1314107627@alphaville.dokosmarshall.org> (Nick Dokos's message of "Tue, 23 Aug 2011 09:53:47 -0400") 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: =?ISO-8859-1?Q?Andr=E1s_Major?= , emacs-orgmode Hi Nick, Nick Dokos writes: > 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. Thanks for the suggested fix. I've pushed a change to allow the underscore char in both field and column names. Best, -- Bastien