From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: [feature request] org-post-export-hook Date: Sat, 05 Mar 2011 00:27:41 +0100 Message-ID: <87aaha4gb6.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=39909 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PvePc-0003KU-Hn for emacs-orgmode@gnu.org; Fri, 04 Mar 2011 18:27:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PvePX-0001fa-TM for emacs-orgmode@gnu.org; Fri, 04 Mar 2011 18:27:54 -0500 Received: from mail-wy0-f169.google.com ([74.125.82.169]:48638) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PvePX-0001fL-Ki for emacs-orgmode@gnu.org; Fri, 04 Mar 2011 18:27:51 -0500 Received: by wyi11 with SMTP id 11so2980018wyi.0 for ; Fri, 04 Mar 2011 15:27:50 -0800 (PST) In-Reply-To: (Jeff Horn's message of "Fri, 4 Mar 2011 17:40:42 -0500") 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: Jeff Horn Cc: Org-mode ml Hi Jeff, Jeff Horn writes: > 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. See org-export-latex-final-hook, org-export-latex-after-save-hook and sisters. C-h v org-export-hook TAB TAB to see all of them. -- Bastien