emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] problem with ox-pandoc export


From: Nicolas Goaziou
Subject: Re: [O] problem with ox-pandoc export
Date: Sat, 27 Jun 2015 12:26:38 +0200

Alan Schmitt <address@hidden> writes:

> On 2015-06-27 12:07, Alan Schmitt <address@hidden> 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,



reply via email to

[Prev in Thread] Current Thread [Next in Thread]