From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Schmitt Subject: Re: temporary directory for export Date: Wed, 26 Dec 2012 17:39:32 +0100 Message-ID: References: ,<87hanbsulp.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:49782) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tnu16-0002Ut-Ai for emacs-orgmode@gnu.org; Wed, 26 Dec 2012 11:39:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tnu15-0004ky-34 for emacs-orgmode@gnu.org; Wed, 26 Dec 2012 11:39:40 -0500 Received: from mail4-relais-sop.national.inria.fr ([192.134.164.105]:51691) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tnu14-0004k9-SF for emacs-orgmode@gnu.org; Wed, 26 Dec 2012 11:39:39 -0500 In-reply-to: <87hanbsulp.fsf@bzg.ath.cx> 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: Bastien Cc: emacs-orgmode Bastien writes: > Hi Alan, > > Alan Schmitt writes: > >> I have found how to set a temporary directory for org-babel export files >> (using org-babel-temporary-directory), but I cannot find how to specify >> that, by default (i.e., unless specified with a "file" option), files >> should be exported to a temporary directory. >> >> My motivation for this is that I keep a single folder with many org-mode >> files, some of them for presentations, papers, or letters. I regularly >> have to go in there and get rid of all the .tex, .log, .pdf, .aux, etc., >> that accumulate. > > Yep, I see how this would be useful. I'll add this on my TODO list. An alternative would be to publish to such a temporary directory, then have a post-publish command to run to finish building the document. This is what I would have favoured before the asynchronous exporter (as building may take a while so would be better done with an external command), but now I would be very happy with using a temporary directory for export (defaulting to the directory where the org file lives). Alan