emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Rustom Mody <rustompmody@gmail.com>
To: William Henney <whenney@gmail.com>,
	Nicolas Goaziou <n.goaziou@gmail.com>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: table export to same buffer
Date: Sun, 4 Aug 2013 16:43:43 +0530	[thread overview]
Message-ID: <CAJ+TeoevFmiQAxG4Ws=Q2h4PeRP=QJnndAutM5iL8+W1AqDnYw@mail.gmail.com> (raw)
In-Reply-To: <CAKchnZPd5g2w-QpZd-fwQncsG6f2GGJ+qSjfT1wMjYCOnDzZ1w@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1715 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 2906 bytes --]

  reply	other threads:[~2013-08-04 11:14 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-02 17:23 table export to same buffer Rustom Mody
2013-08-02 19:22 ` Sebastien Vauban
2013-08-03  4:52 ` Rustom Mody
2013-08-03  7:25   ` Nicolas Goaziou
2013-08-03  8:06   ` Thorsten Jolitz
2013-08-03 23:34   ` William Henney
2013-08-04 11:13     ` Rustom Mody [this message]
2013-08-12 18:20       ` William Henney

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAJ+TeoevFmiQAxG4Ws=Q2h4PeRP=QJnndAutM5iL8+W1AqDnYw@mail.gmail.com' \
    --to=rustompmody@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=n.goaziou@gmail.com \
    --cc=whenney@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).