emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Is there a org-babel-map-src-blocks but for tables?
@ 2016-10-16 19:53 Pierre-Henry Frohring
  2016-10-16 20:55 ` Nicolas Goaziou
  0 siblings, 1 reply; 5+ messages in thread
From: Pierre-Henry Frohring @ 2016-10-16 19:53 UTC (permalink / raw)
  To: emacs-orgmode

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

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!

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-10-17 14:21 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-16 19:53 Is there a org-babel-map-src-blocks but for tables? Pierre-Henry Frohring
2016-10-16 20:55 ` Nicolas Goaziou
2016-10-16 21:03   ` Pierre-Henry Frohring
2016-10-16 21:13     ` Nicolas Goaziou
2016-10-17 14:20       ` Nick Dokos

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).