> Extracting the records from org tables or raw rec data, you mean?  It
    > would be easy to use csv2rec and recins to implement a recins block:
    >
    
    Yes, I was thinking of something like the following.  Rather than create
    a new block type, simply add a header argument (or body content) that
    (somehow) indicates that we are writing not reading.  So for example
    writing an Org-mode table into a fresh .rec file would look like the
    following.
    
    #+tblname: org-data
    | Foo | Bar |
    |-----+-----|
    |   1 | a   |
    |   2 | b   |
    |   3 | c   |
    |   4 | d   |

    #+begin_src rec :data something.rec :var data=org-data :write
      some rec code to dump data into the rec file...
    #+end_src

I like that approach, but I would put the raw rec code into the src
block:

#+begin_src rec :data something.rec :write
Foo: 1
Bar: a

Foo: 2
Bar: b

...  
#+end_src

Then use a :table parameter in case we want to insert the contents of a
table:

#+begin_src rec :data something.rec :write :table org-data
  
#+end_src

I will work on this and will be back as soon as I have something
working.  Many thanks for the feedback :)

-- 
Jose E. Marchesi    jema...@gnu.org
GNU Project         http://www.gnu.org

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

Reply via email to