From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: problem with ox-pandoc export Date: Sat, 27 Jun 2015 12:26:38 +0200 Message-ID: <87pp4htpk1.fsf@nicolasgoaziou.fr> References: <87a8vmv5vq.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42288) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z8nIM-0007LZ-SU for emacs-orgmode@gnu.org; Sat, 27 Jun 2015 06:25:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z8nIM-0002xv-2f for emacs-orgmode@gnu.org; Sat, 27 Jun 2015 06:25:10 -0400 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:36160) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z8nIL-0002x2-Sz for emacs-orgmode@gnu.org; Sat, 27 Jun 2015 06:25:10 -0400 In-Reply-To: (Alan Schmitt's message of "Sat, 27 Jun 2015 12:19:45 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Alan Schmitt Cc: emacs-orgmode Alan Schmitt writes: > On 2015-06-27 12:07, Alan Schmitt 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,