From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rustom Mody Subject: Re: table export to same buffer Date: Sun, 4 Aug 2013 16:43:43 +0530 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c303502f492804e31d4a30 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41939) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V5wGF-0004fI-Az for emacs-orgmode@gnu.org; Sun, 04 Aug 2013 07:14:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V5wGE-00043D-3j for emacs-orgmode@gnu.org; Sun, 04 Aug 2013 07:14:07 -0400 Received: from mail-oa0-x22b.google.com ([2607:f8b0:4003:c02::22b]:43756) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V5wGD-000437-P0 for emacs-orgmode@gnu.org; Sun, 04 Aug 2013 07:14:05 -0400 Received: by mail-oa0-f43.google.com with SMTP id i10so4330952oag.16 for ; Sun, 04 Aug 2013 04:14:05 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: William Henney , Nicolas Goaziou Cc: emacs-orgmode --001a11c303502f492804e31d4a30 Content-Type: text/plain; charset=ISO-8859-1 On Sun, Aug 4, 2013 at 5:04 AM, William Henney wrote: > > On Fri, Aug 2, 2013 at 11:52 PM, Rustom Mody wrote: > >> Sebastien Vauban wrote >> >>> On Fri, Aug 2, 2013 at 10:53 PM, Rustom Mody 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 --001a11c303502f492804e31d4a30 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

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 <rustom= pmody@gmail.com> wrote:
Sebastien Vauban wrote
On Fri, Aug 2, 2013 at 10:53 PM, Rusto= m Mody <rustompmody@gmail.com> wrote:
Is it possible to export an orgmode table no= t to a new file but overwriting the org table in the same buffer?

Co= ntext is editing source code which contains a largeish table of (say) const= ants.
Editing is done with orgtbl minor mode.
When done it should become back the table in the natural format of the prog= ramming 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 thin= k 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.=A0 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-gener= ic?

Se= e Appendix 6 of the Org manual

Will
=

This looks like a useful approach

The variable names don= t seem to match:
Appendix 6.2 talks of orgtbl-radio-tables
However or= g (8.0.7) seems to have orgtbl-radio-table-templates

Assuming they a= re the same, anywhere I can read about the documentation of the template fo= rmat?
Specifically I find that the name of the receiving function (orgtbl-to-late= x) seems to have a significance.=A0 The same in the template seems to have = none

--001a11c303502f492804e31d4a30--