[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Bug: named columns in tables not working if name contains "_"
From: |
Carsten Dominik |
Subject: |
Re: [O] Bug: named columns in tables not working if name contains "_" |
Date: |
Tue, 23 Aug 2011 16:49:33 +0200 |
On Aug 23, 2011, at 4:32 PM, Nick Dokos wrote:
> Carsten Dominik <address@hidden> wrote:
>
>>
>> On Aug 23, 2011, at 3:53 PM, Nick Dokos wrote:
>>
>>> András Major <address@hidden> 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.
>>>>
>>>
>>> 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.
>>
>> Hi Nick, I don't think it can be easily relaxed. Many other characters are
>> operators in Calc and would lead to confusion.
>>
>
> So add more syntax: formulas can use {this+is-a*/address@hidden
>
> OK, ok - just kidding.
>
> Thanks,
> Nick
>
> PS. This is a paraphrase of the indirection principle: Any problem can
> be solved by adding yet another layer of syntax...
:) Yes, true!
- Carsten
- [O] Bug: named columns in tables not working if name contains "_", András Major, 2011/08/23
- Re: [O] Bug: named columns in tables not working if name contains "_", Nick Dokos, 2011/08/23
- Re: [O] Bug: named columns in tables not working if name contains, András Major, 2011/08/23
- Re: [O] Bug: named columns in tables not working if name contains "_", Carsten Dominik, 2011/08/23
- Re: [O] Bug: named columns in tables not working if name contains "_", Bastien, 2011/08/23
- Re: [O] Bug: named columns in tables not working if name contains "_", Carsten Dominik, 2011/08/23
- Re: [O] Bug: named columns in tables not working if name contains "_", Carsten Dominik, 2011/08/23
- Re: [O] Bug: named columns in tables not working if name contains "_", Bastien, 2011/08/23
- Re: [O] Bug: named columns in tables not working if name contains "_", Michael Brand, 2011/08/24
- Re: [O] Bug: named columns in tables not working if name contains "_", Nick Dokos, 2011/08/24
Re: [O] Bug: named columns in tables not working if name contains "_", Bastien, 2011/08/23
Re: [O] Bug: named columns in tables not working if name contains "_", Achim Gratz, 2011/08/23