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

Then try it with this file

--8<---------------cut here---------------start------------->8---
#+title: This is a title
#+date: 1/2/3

* First section
foo

* Second section
bar
--8<---------------cut here---------------end--------------->8---

The resulting exported file is missing the title and date.

Best,

Alan

-- 
OpenPGP Key ID : 040D0A3B4ED2E5C7
Athmospheric CO₂ average (2015-05-30, Mauna Loa Observatory): 403.41 ppm

Attachment: signature.asc
Description: PGP signature

Reply via email to