From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeff Horn Subject: [feature request] org-post-export-hook Date: Fri, 4 Mar 2011 17:40:42 -0500 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from [140.186.70.92] (port=41625 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PvdgH-0003Td-DH for emacs-orgmode@gnu.org; Fri, 04 Mar 2011 17:41:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PvdgF-0003U9-Ul for emacs-orgmode@gnu.org; Fri, 04 Mar 2011 17:41:05 -0500 Received: from mail-fx0-f41.google.com ([209.85.161.41]:38472) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PvdgF-0003Tn-Nh for emacs-orgmode@gnu.org; Fri, 04 Mar 2011 17:41:03 -0500 Received: by fxm5 with SMTP id 5so3122965fxm.0 for ; Fri, 04 Mar 2011 14:41:02 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Org-mode ml Would it be trivial to add a post-export hook? If so, it would be helpful for me. I've been experimenting with latexmk for document compilation. If I add `latexmk -CA` (it cleans extraneous files) to the command sequence for `org-latex-to-pdf-process`, I trigger an annoying notification that the PDF file wasn't produced, and the *Org Export PDF Output* (or whatever) buffer is overwritten with this new command's output (not very interesting). Perhaps it would be best to have a general `org-post-export-hook` and specific `org-post-latex-export-hook` and `org-post-html-export-hook`. It wouldn't make sense to run `latexmk -CA` when producing a webpage, afterall. -- Jeffrey Horn http://www.failuretorefrain.com/jeff/