Christian Moe <m...@christianmoe.com> writes: > Org-export-to-file with the odt backend gives an error when invoked > directly (void-variable hfy-user-sheet-assoc). Tested on Org 9.7.28. To > reproduce, save a minimal Org file and, from that buffer, evaluate > > : (org-export-to-file 'odt "testfile.odt") > > I'm not sure if this is *expected* to work, but it seemed the quickest > way to test a derived ODT backend (as I was trying to do when I ran into > it). The same action worked fine for the html, latex, and ascii > backends:
Confirmed. I wish it worked, but there are fundamental reasons why it does not. ox-odt is basically incompatible with `org-export-to-file' and `org-export-to-buffer'. It implements its own semi-rewrite of these functions. See `org-odt-export-to-odt'. The whole problem is because ox.el has no handles to export to multiple files, as ox-odt requires. Maybe we can fix this in future, when we get multi-file export as discussed in https://list.orgmode.org/orgmode/ZoUdiTfbYqzPwTiX@orm-t14s/ -- Ihor Radchenko // yantar92, Org mode maintainer, Learn more about Org mode at <https://orgmode.org/>. Support Org development at <https://liberapay.com/org-mode>, or support my work at <https://liberapay.com/yantar92>