On Mon, 27 Jun 2016, John Kitchin wrote:

After some more thought, I am not sure it is possible to setup just a
parse tree for this. It works ok for src blocks, e.g.

[deleted]

On the other hand, it isn't clear how to use this to make a table.

e.g. this table:

| 5 | 6 |
| 6 | 7 |

was represented as an element like this.

(table
(:begin 5133 :end 5154 :type org :tblfm nil :contents-begin 5133 :contents-end 
5153 :value nil :post-blank 1 :post-affiliated 5133 :parent nil))

There is no data in that representation, just points in the buffer where
the data is. Does anyone know how to do this?


Use (org-element-parse-buffer) to get the table-row and table-cell elements, 
too.

--8<---------------cut here---------------start------------->8---

| 5 | 6 |
| 6 | 7 |


#+BEGIN_SRC emacs-lisp
  (org-element-map (org-element-parse-buffer) 'table-cell 'cddr)
#+END_SRC

--8<---------------cut here---------------end--------------->8---


HTH,

Chuck

Reply via email to