Alan Schmitt <alan.schm...@polytechnique.org> writes: > On 2015-06-27 12:07, Alan Schmitt <alan.schm...@polytechnique.org> writes: > >> No, and I can reproduce this with an empty configuration. So I guess >> there is something fishy going on in the generation of the temporary org >> file. > > Here is an ECM to show the issue. Evaluate this code: > > #+begin_src emacs-lisp > (org-export-define-derived-backend 'mytest 'org > :translate-alist '((template . org-pandoc-template)) > :export-block "MYTEST" > :menu-entry '(?t "test" as/org-export-test)) > > (defun as/org-export-test (&optional a s v b e) > (org-export-to-file 'mytest > (org-export-output-file-name > (concat (make-temp-name ".tmp") ".org") s))) > #+end_src
"ox-org" inserts meta-data in its template function (org-org-template). Since you're overriding it in the `mytest' back-end, you need to take care of that. Regards,