emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] Is there a org-babel-map-src-blocks but for tables?


From: Pierre-Henry Frohring
Subject: [O] Is there a org-babel-map-src-blocks but for tables?
Date: Sun, 16 Oct 2016 21:53:43 +0200

Hi list!

Wondering if there was a function like `org-babel-map-src-blocks'
but for tables.

Use case:

I have a file with multiple headings like:

* Heading
** Result
(some chart computed by processing data)

** Processing
(code block for transforming data into chart)

** Data
(org table containing the data)

So, it would be nice to:

1) transform all tables into tsv files
2) eval code blocks that read these files and turn them into charts
3) exporting org file to html

Problem with 1) : did not find a function like `org-babel-map-src-blocks' but for tables.

Corresponding code is here: https://github.com/phfrohring/org-to-blog

It maps every heading with a :ready: tag to matching html of one org file:

(defun blog/org_to_www ()
  (setq org-confirm-babel-evaluate nil)
  (blog/check_blog)
  (blog/tangle_blog)
  (blog/export_tables)
  (blog/eval_safe_code_blocks)
  (blog/map_entries_assets_to_html_files_assets)
  (blog/map_entries_to_html_files)
  (blog/create_sitemap)
  (setq org-confirm-babel-evaluate t))

​From here: https://github.com/phfrohring/org-to-blog/blob/master/org_to_blog.el​

Thx!



reply via email to

[Prev in Thread] Current Thread [Next in Thread]