From mboxrd@z Thu Jan 1 00:00:00 1970 From: Frozenlock Subject: Why does a column's name need to start with a letter? Changed source with no perceivable side-effects Date: Fri, 4 Mar 2011 22:35:27 -0500 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=bcaec51a7ebe20bb78049db3f4e4 Return-path: Received: from [140.186.70.92] (port=38180 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PviHB-0004XU-6e for emacs-orgmode@gnu.org; Fri, 04 Mar 2011 22:35:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PviHA-0008QJ-IZ for emacs-orgmode@gnu.org; Fri, 04 Mar 2011 22:35:29 -0500 Received: from mail-iy0-f169.google.com ([209.85.210.169]:47602) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PviHA-0008OO-FV for emacs-orgmode@gnu.org; Fri, 04 Mar 2011 22:35:28 -0500 Received: by mail-iy0-f169.google.com with SMTP id 13so3289146iyf.0 for ; Fri, 04 Mar 2011 19:35:27 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --bcaec51a7ebe20bb78049db3f4e4 Content-Type: text/plain; charset=ISO-8859-1 Greetings, First and foremost, I must say I'm a new Org-mode user... as well as a new emacs user... and have only limited experience with lisp. I'm using a table in org-mode as a database, from which I retrieve information as needed from other tables. This database stores multiples components with names starting by numbers and with the character "-" in them. For example: "10K-AN-D8". I want to be able to refer to its column with $10K-AN-D8. Yet, this is impossible at the moment. I've looked in org-table.el and found, at line 2038: (if (string-match "^[a-zA-Z][a-zA-Z0-9]*$" name) which, once replaced by this: (if (string-match "^[-_a-zA-Z0-9]*$" name) Provides me with the ability to name (and refer) columns in any way I want. However, I'm reluctant to use this feature; surely there was a reason for this limitation. Could someone point it out for me? If there's no reason not to name columns as we want, perhaps it could be modified in future versions? Thank you very much in advance! Christian --bcaec51a7ebe20bb78049db3f4e4 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Greetings,=A0

First and foremost, I must say I'm a n= ew Org-mode user... as well as a new emacs user... and have only limited ex= perience with lisp.=A0

I'm using a table in or= g-mode as a database, from which I retrieve information as needed from othe= r tables.=A0
This database stores multiples components with names starting by numbe= rs and with the character "-" in them. For example: "10K-AN-= D8".
I want to be able to refer to its column with $10K-AN-D= 8. Yet, this is impossible at the moment.=A0

I've looked in org-table.el and found, at line 2038= :

(if (string-match=A0"^[a-zA-Z][a-zA-Z0-9]*$= "=A0name)

which, once replaced by this:

(if (string-match=A0"^[-_a-zA-Z0-9]*$"=A0name= )

Provides me with the ability to name (and refer)= columns in any way I want.=A0

However, I'= ;m reluctant to use this=A0feature; surely there was a reason for this limi= tation.
Could someone point it out for me?

If t= here's no reason not to name columns as we want, perhaps it could be mo= dified in future versions?

Thank you very much in = advance!

Christian
--bcaec51a7ebe20bb78049db3f4e4--