From mboxrd@z Thu Jan 1 00:00:00 1970 From: William Henney Subject: Re: table export to same buffer Date: Sat, 3 Aug 2013 18:34:50 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e0122edb8887a3e04e313851c Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46380) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V5lLi-0004Zr-Qt for emacs-orgmode@gnu.org; Sat, 03 Aug 2013 19:35:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V5lLY-0001FS-Ap for emacs-orgmode@gnu.org; Sat, 03 Aug 2013 19:35:02 -0400 Received: from mail-oa0-x233.google.com ([2607:f8b0:4003:c02::233]:47288) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V5lLX-0001F6-T7 for emacs-orgmode@gnu.org; Sat, 03 Aug 2013 19:34:52 -0400 Received: by mail-oa0-f51.google.com with SMTP id h1so3802293oag.38 for ; Sat, 03 Aug 2013 16:34:51 -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: Rustom Mody Cc: emacs-orgmode --089e0122edb8887a3e04e313851c Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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 wrot= e: >> >>> 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) takin= g as >> input your table, and outputting your constants in the wished format sho= uld 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 majo= r > mode is something else. > What about a radio table using orgtbl-to-generic? See Appendix 6 of the Org manual Will --=20 Dr William Henney, Centro de Radioastronom=EDa y Astrof=EDsica, Universidad Nacional Aut=F3noma de M=E9xico, Campus Morelia --089e0122edb8887a3e04e313851c Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

= 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 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 Babe=
l 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-generic?

See Appe= ndix 6 of the Org manual

Will


--

=A0 Dr William Henney, = Centro de Radioastronom=EDa y Astrof=EDsica,
=A0 Universidad Nacional Au= t=F3noma de M=E9xico, Campus Morelia
--089e0122edb8887a3e04e313851c--