On Sun, Aug 4, 2013 at 5:04 AM, William Henney <whenney@gmail.com> wrote:

On Fri, Aug 2, 2013 at 11:52 PM, Rustom Mody <rustompmody@gmail.com> wrote:
Sebastien Vauban wrote
On Fri, Aug 2, 2013 at 10:53 PM, Rustom Mody <rustompmody@gmail.com> wrote:
Is it possible to export an orgmode table not to a new file but overwriting the org table in the same buffer?

Context is editing source code which contains a largeish table of (say) constants.
Editing is done with orgtbl minor mode.
When done it should become back the table in the natural format of the programming language
[For simplicity lets just say csv will do]



Using an Org Babel code block (which you have to write, of course) taking as
input your table, and outputting your constants in the wished format should do
what you're looking for, right?

I dont think so.
The context is writing C with C mode (or haskell with haskell-mode python with python-mode etc) ie the user is not using orgmode.  That is why I mentioned orgtbl, ie org table editing facilities are needed but the major mode is something else.

What about a radio table using orgtbl-to-generic?

See Appendix 6 of the Org manual

Will

This looks like a useful approach

The variable names dont seem to match:
Appendix 6.2 talks of orgtbl-radio-tables
However org (8.0.7) seems to have orgtbl-radio-table-templates

Assuming they are the same, anywhere I can read about the documentation of the template format?
Specifically I find that the name of the receiving function (orgtbl-to-latex) seems to have a significance.  The same in the template seems to have none