From mboxrd@z Thu Jan 1 00:00:00 1970 From: frozenlock@gmail.com Subject: Re: Re: [O] Why does a column's name need to start with a letter? Changed source with no perceivable Date: Sat, 05 Mar 2011 17:01:25 +0000 Message-ID: <20cf307f34207bc00d049dbf36a2@google.com> References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=20cf307f34207bbfff049dbf369f Return-path: Received: from [140.186.70.92] (port=51167 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pvur9-0001AO-Sk for emacs-orgmode@gnu.org; Sat, 05 Mar 2011 12:01:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pvur8-0001LU-No for emacs-orgmode@gnu.org; Sat, 05 Mar 2011 12:01:27 -0500 Received: from mail-gw0-f71.google.com ([74.125.83.71]:37101) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pvur8-0001LM-Fn for emacs-orgmode@gnu.org; Sat, 05 Mar 2011 12:01:26 -0500 Received: by gwj18 with SMTP id 18so2734055gwj.6 for ; Sat, 05 Mar 2011 09:01:25 -0800 (PST) In-Reply-To: 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: Carsten Dominik , Frozenlock Cc: emacs-orgmode@gnu.org --20cf307f34207bbfff049dbf369f Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Yes, it's very well explained, thank you. I'll try to encode my names by removing any "-" and by adding a dummy letter at the beginning. Is there another way of doing simple database in org-mode? By putting a component's name in a cell, I would like if the other columns could fill them-self with the component's characteristics. (My apologies for the double e-mail, the first one wasn't sent to the mailing list) On , Carsten Dominik wrote: > Hi Christian, > On 5.3.2011, at 04:35, Frozenlock wrote: > > Greetings, > > > > First and foremost, I must say I'ma 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? > This is limitation is present to disambiguate formulas. > In you example $10K-AN-D8, D8 is already a field reference, > so Org does not know if you mean $10K-AN - @8$4. > Furthermore, you could easily arrive at variables like > $10-AN-D8, and then what should the $10 mean? > Of cause one could disambiguate heuristically by checking > which names have been defined. In fact, name replacement > happens first, and this is why your patch appears to > work. But the side effect would be that introducing > new names could change the interpretation of an > existing equation. All this is unstable and > unpredictable. > Hope this makes it clear. > - Carsten --20cf307f34207bbfff049dbf369f Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Yes, it's very well explained, thank you.
I'll try to encode = my names by removing any "-" and by adding a dummy letter at the = beginning.

Is there another way of doing simple database in org= -mode? By putting a component's name in a cell, I would like if the oth= er columns could fill them-self with the component's characteristics.
(My apologies for the double e-mail, the first one wasn't sen= t to the mailing list)


On , Carsten Dominik <carsten.do= minik@gmail.com> wrote:
> Hi Christian,
>
> >
> On 5.3.2011, at 04:35, Frozenlock wrote:
>
>
>
> > 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 wit= h lisp.
>
> >
>
> > I'm using a= table in org-mode as a database, from which I retrieve information as need= ed from other tables.
>
> > This database stores multip= les components with names starting by numbers and with the character "= -" in them. For example: "10K-AN-D8".
>
> &= gt; I want to be able to refer to its column with $10K-AN-D8. Yet, this is = impossible at the moment.
>
> >
>
> &g= t; I've looked in org-table.el and found, at line 2038:
>
> >
>
> > (if (string-match "^[a-zA-Z][a-zA= -Z0-9]*$" name)
>
> >
>
> > wh= ich, once replaced by this:
>
> >
>
> = > (if (string-match "^[-_a-zA-Z0-9]*$" name)
>
&= gt; >
>
> > Provides me with the ability to name (an= d refer) columns in any way I want.
>
> >
> > > However, I'm reluctant to use this feature; surely there w= as a reason for this limitation.
>
> > Could someone po= int it out for me?
>
>
>
> This is limit= ation is present to disambiguate formulas.
>
> In you exam= ple $10K-AN-D8, D8 is already a field reference,
>
> so Or= g does not know if you mean $10K-AN - @8$4.
>
> Furthermor= e, you could easily arrive at variables like
>
> $10-AN-D8= , and then what should the $10 mean?
>
>
>
= > Of cause one could disambiguate heuristically by checking
> > which names have been defined. =A0In fact, name replacement
&= gt;
> happens first, and this is why your patch appears to
&g= t;
> work. =A0But the side effect would be that introducing
&= gt;
> new names could change the interpretation of an
> > existing equation. =A0All this is unstable and
>
>= ; unpredictable.
>
>
>
> Hope this makes= it clear.
>
>
>
> - Carsten --20cf307f34207bbfff049dbf369f--