Hello, Jambunathan K <kjambunat...@gmail.com> writes:
>> Given a todo list in an org file, is there already a function, that >> converts this list to an elisp list, that contains at least heading, >> deadline and properties? > > Create the following interactive function. This functions exports Org > file to a *pretty* lisp file. > > (defun org-export-as-lisp () > (interactive) > (or (featurep 'pp) (require 'pp)) > (let ((out-file > (concat (file-name-sans-extension (buffer-file-name)) ".el"))) > (pp-display-expression (org-element-parse-buffer) "*Org Data*") > (with-current-buffer "*Org Data*" Nice example. Also, the OP may replace (org-element-parse-buffer) with (org-element-parse-buffer 'headline) for quicker results, since parsed headlines already contain all the required information. Regards, -- Nicolas Goaziou