From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Schmitt Subject: Re: problem with ox-pandoc export Date: Sat, 27 Jun 2015 12:19:45 +0200 Message-ID: References: <87a8vmv5vq.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41218) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z8nD5-0006Q0-7I for emacs-orgmode@gnu.org; Sat, 27 Jun 2015 06:19:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z8nD1-0008TF-Jw for emacs-orgmode@gnu.org; Sat, 27 Jun 2015 06:19:43 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:8724) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z8nD1-0008T5-DQ for emacs-orgmode@gnu.org; Sat, 27 Jun 2015 06:19:39 -0400 In-Reply-To: (Alan Schmitt's message of "Sat, 27 Jun 2015 12:07:28 +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: emacs-orgmode --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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 Then try it with this file =2D-8<---------------cut here---------------start------------->8--- #+title: This is a title #+date: 1/2/3 * First section foo * Second section bar =2D-8<---------------cut here---------------end--------------->8--- The resulting exported file is missing the title and date. Best, Alan =2D-=20 OpenPGP Key ID : 040D0A3B4ED2E5C7 Athmospheric CO=E2=82=82 average (2015-05-30, Mauna Loa Observatory): 403.4= 1 ppm --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBCgAGBQJVjnjBAAoJEAQNCjtO0uXHrr8IAI9q/bgbvlPjDIIjDb/vaK/Z kWzuwaZvdjEEsvh4ZmCxUhUyYqJqS5JWbzx7AU4ZH8BE3rM+EAXhUdyAH6FMTOH6 6N+PHiQCX2ey+pzfBP8xOPLBeV6yMlWEJqv3FLJ7Xk+sGaU8ic3/gvng0OMa7blA +kYRQdR5ZlLHehhj9iL+Kk+aHogFq+gf/9htP0UrRlwNIrSTB1O1GFiLQLYhT3do oMdmxEaAWXvKk63jBvinOP8Xso7OnJmqhRXAUybMGe5otkClhJKLFL/gnZGG1At1 0FuLaifTV2N2i+2Swwrh0unNxaeo0xXA8+oNx6mDPnLK2nLuwaDWts/9n3S1av0= =i5+B -----END PGP SIGNATURE----- --=-=-=--