Re: [O] Bug: named columns in tables not working if name contains "_"

2011-08-24 Thread Nick Dokos
Michael Brand wrote: > On Tue, Aug 23, 2011 at 18:24, Achim Gratz wrote: > > Nick Dokos writes: > >> The only characters permitted are alphanumerics. That can probably be > >> easily relaxed. > > > > Only if you don't want to have _underlined_ still working [...] > > I use _underlined_ in tabl

Re: [O] Bug: named columns in tables not working if name contains "_"

2011-08-24 Thread Nick Dokos
Michael Brand wrote: > On Tue, Aug 23, 2011 at 20:29, Carsten Dominik > wrote: > > I have checked, underscore is aceptable, calc allows it in variables names. > > However, I would not recommend adding any more characters to this regexp. > > Just to mention: Although "_" is the subscript operato

Re: [O] Bug: named columns in tables not working if name contains "_"

2011-08-24 Thread Michael Brand
On Tue, Aug 23, 2011 at 18:24, Achim Gratz wrote: > Nick Dokos writes: >> The only characters permitted are alphanumerics. That can probably be >> easily relaxed. > > Only if you don't want to have _underlined_ still working [...] I use _underlined_ in tables and I'm glad it still works. Michae

Re: [O] Bug: named columns in tables not working if name contains "_"

2011-08-24 Thread Michael Brand
On Tue, Aug 23, 2011 at 20:29, Carsten Dominik wrote: > I have checked, underscore is aceptable, calc allows it in variables names. > However, I would not recommend adding any more characters to this regexp. Just to mention: Although "_" is the subscript operator that takes the nth vector element

Re: [O] Bug: named columns in tables not working if name contains "_"

2011-08-23 Thread Bastien
Carsten Dominik writes: > I have checked, underscore is aceptable, calc allows it in variables > names. However, I would not recommend adding any more characters to > this regexp. Thanks for the quick feedback! -- Bastien

Re: [O] Bug: named columns in tables not working if name contains "_"

2011-08-23 Thread Carsten Dominik
On 23.8.2011, at 18:20, Bastien wrote: > Hi Carsten, > > Carsten Dominik writes: > >>> 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 lea

Re: [O] Bug: named columns in tables not working if name contains "_"

2011-08-23 Thread Carsten Dominik
On 23.8.2011, at 18:20, Bastien wrote: > Hi Carsten, > > Carsten Dominik writes: > >>> 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 lea

Re: [O] Bug: named columns in tables not working if name contains "_"

2011-08-23 Thread Achim Gratz
Nick Dokos writes: > The only characters permitted are alphanumerics. That can probably be > easily relaxed. Only if you don't want to have _underlined_ still working and perhaps never use calc on that table. The problem with simple syntax is that the quoting rules become bizarre and the other w

Re: [O] Bug: named columns in tables not working if name contains "_"

2011-08-23 Thread Bastien
Hi Carsten, Carsten Dominik writes: >> 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 perhaps my recent commit is wrong.

Re: [O] Bug: named columns in tables not working if name contains "_"

2011-08-23 Thread Bastien
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 > > T

Re: [O] Bug: named columns in tables not working if name contains

2011-08-23 Thread Bastien
Hi András, András Major writes: > Thanks Nick. It would be nice if the documentation reflected such an > arbitrary choice of characters you can use... I added a footnote. -- Bastien

Re: [O] Bug: named columns in tables not working if name contains "_"

2011-08-23 Thread Carsten Dominik
On Aug 23, 2011, at 4:32 PM, Nick Dokos wrote: > Carsten Dominik wrote: > >> >> On Aug 23, 2011, at 3:53 PM, Nick Dokos wrote: >> >>> András 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 col

Re: [O] Bug: named columns in tables not working if name contains "_"

2011-08-23 Thread Nick Dokos
Carsten Dominik wrote: > > On Aug 23, 2011, at 3:53 PM, Nick Dokos wrote: > > > András 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

Re: [O] Bug: named columns in tables not working if name contains "_"

2011-08-23 Thread Carsten Dominik
On Aug 23, 2011, at 3:53 PM, Nick Dokos wrote: > András 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 "

Re: [O] Bug: named columns in tables not working if name contains

2011-08-23 Thread András Major
> 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

Re: [O] Bug: named columns in tables not working if name contains "_"

2011-08-23 Thread Nick Dokos
András 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