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 carsten.domi...@gmail.com 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

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 strom...@nexgo.de wrote: Nick Dokos nicholas.do...@hp.com 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

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

2011-08-24 Thread Nick Dokos
Michael Brand michael.ch.br...@gmail.com wrote: On Tue, Aug 23, 2011 at 20:29, Carsten Dominik carsten.domi...@gmail.com 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

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

2011-08-24 Thread Nick Dokos
Michael Brand michael.ch.br...@gmail.com wrote: On Tue, Aug 23, 2011 at 18:24, Achim Gratz strom...@nexgo.de wrote: Nick Dokos nicholas.do...@hp.com writes: The only characters permitted are alphanumerics. That can probably be easily relaxed. Only if you don't want to have _underlined_

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

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

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

2011-08-23 Thread Nick Dokos
András Major andras.g.ma...@gmail.com 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

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 are

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 andras.g.ma...@gmail.com 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

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

2011-08-23 Thread Nick Dokos
Carsten Dominik carsten.domi...@gmail.com wrote: On Aug 23, 2011, at 3:53 PM, Nick Dokos wrote: András Major andras.g.ma...@gmail.com 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

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 carsten.domi...@gmail.com wrote: On Aug 23, 2011, at 3:53 PM, Nick Dokos wrote: András Major andras.g.ma...@gmail.com wrote: Yet another one I just stumbled across: if I create a table and use ! in the first column to

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

2011-08-23 Thread Bastien
Hi András, András Major andras.g.ma...@gmail.com 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 Bastien
Hi Nick, Nick Dokos nicholas.do...@hp.com 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))

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

2011-08-23 Thread Bastien
Hi Carsten, Carsten Dominik carsten.domi...@gmail.com 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

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

2011-08-23 Thread Achim Gratz
Nick Dokos nicholas.do...@hp.com 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

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 carsten.domi...@gmail.com 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

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 carsten.domi...@gmail.com 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

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

2011-08-23 Thread Bastien
Carsten Dominik carsten.domi...@gmail.com 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