Getting text of org-mode elements using org-element-map
I'm attempting to write an elisp function(s) to extract text from org files. Specifically, I want to be able to convert the values in an org-table into a list of lists, so that I can populate org-feeds-alist at startup time from a file outside of my .emacs. My functions look like this: (defun·org-config-parse-get-table-rows·(file) "Return·table·rows·minus·header" (with-temp-buffer ··(insert-file-contents·file) ··(cddr·(org-element-map·(org-element-parse-buffer)·'(table-row)·'identity)))) (defun·org-config-parse-get-table-cells·(file) ··(org-element-map·(org-config-parse-get-table-rows·file)·'(
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.