reddit / emacs

Modify the parsed tree of an org-mode buffer using org-element-put-property

tonyaldon · 2022-11-21 23:49
jplindstrom · 2022-11-23 17:57
This was really interesting to watch! I commented on the YouTube clip, but here it is too: It feels like we're stopping just before the natural last step which would be to render the changed data structure back into and org document. Is that possible?
tonyaldon · 2022-11-23 22:10
I'm glad you like the video. You're making a really good point. Yes it is possible with the org exporter. I'll make a video tomorrow to show you how. Thanks for the idea :) I hope you'll like it
tonyaldon · 2022-11-24 22:15
Hi u/jplindstrom, I tried today to export back the modified data structure but didn't find the way to make it works. I thought that I could use the functions `org-element-interpret-data` or `org-export-data-with-backend`. But it doesn't work. I'm missing something. I'm convinced that this is possible and I don't understand what I'm doing wrong. Just to say that there won't be a video on that subject today (and until I find how it works). Anyway, I changed the topic for the video of today. I hope you'll like it. Have a nice day.