From mboxrd@z Thu Jan 1 00:00:00 1970 From: Erik Hetzner Subject: Re: [PATCH] Allow passing post-process to org-publish-org-to for use by org-export-to Date: Wed, 12 Feb 2014 07:23:06 -0800 Message-ID: <874n44s6cl.wl%egh@e6h.org> References: <8761okstlw.wl%egh@e6h.org> <87r478lc17.fsf@gmail.com> Reply-To: Erik Hetzner Mime-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42555) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WDbee-00017o-96 for emacs-orgmode@gnu.org; Wed, 12 Feb 2014 10:23:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WDbeZ-0005RS-FW for emacs-orgmode@gnu.org; Wed, 12 Feb 2014 10:23:16 -0500 Received: from mail-pb0-x22f.google.com ([2607:f8b0:400e:c01::22f]:46561) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WDbeY-0005Qg-WD for emacs-orgmode@gnu.org; Wed, 12 Feb 2014 10:23:11 -0500 Received: by mail-pb0-f47.google.com with SMTP id rp16so9325523pbb.6 for ; Wed, 12 Feb 2014 07:23:10 -0800 (PST) In-Reply-To: <87r478lc17.fsf@gmail.com> 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: Nicolas Goaziou Cc: Org Mode At Wed, 12 Feb 2014 14:02:12 +0100, Nicolas Goaziou wrote: > > Hello, > > Erik Hetzner writes: > > > I have been looking at publishing to HTML using pandoc. Because pandoc > > requires post-processing to transform the org-mode markdown output to > > other formats, it is necessary to use the post-process parameter of > > org-export-to-file. > > > I think this patch makes sense; let me know what you think. > > Thanks for your patch. > > Though, it is not necessary. `post-process' is meant for processing > after an asynchronous export (e.g., prepare a buffer in the current > process). > > You're looking after a filter. See > > (info "(org) Advanced configuration") > > for more information. Hi Nicholas, Thanks very much for your response (and ox.el)! I looked at filters, but concluded they were not appropriate, because pandoc operates on the file as a whole, and writes to a file, and can return binary content (for example, if it is generating PDFs). It seemed equivalent to the way that the latex exporter uses pdflatex to generate a PDF, and the latex exported uses a post-process function. I could be wrong, though. It would also be convenient to have access to the info plist; in fact, I was going to write another email about having access to the info plist in a post-process filter. Is there a way to define a filter that operates on the entire content, is guaranteed to run after everything else, and can handle binary content? Thanks. best, Erik -- Sent from my free software system .