From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: running the new exporter asynchronously? Date: Wed, 28 Nov 2012 06:45:16 -0700 Message-ID: <87y5hl264z.fsf@gmail.com> References: <87mwy197wj.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([208.118.235.92]:58282) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tdhwy-00076W-Hu for emacs-orgmode@gnu.org; Wed, 28 Nov 2012 08:45:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tdhws-0006Lv-Ef for emacs-orgmode@gnu.org; Wed, 28 Nov 2012 08:45:16 -0500 Received: from mail-ia0-f169.google.com ([209.85.210.169]:41225) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tdhws-0006LK-7y for emacs-orgmode@gnu.org; Wed, 28 Nov 2012 08:45:10 -0500 Received: by mail-ia0-f169.google.com with SMTP id r4so11986987iaj.0 for ; Wed, 28 Nov 2012 05:45:08 -0800 (PST) In-Reply-To: <87mwy197wj.fsf@gmail.com> (Nicolas Goaziou's message of "Wed, 28 Nov 2012 14:25:16 +0100") 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: Alan Schmitt , emacs-orgmode --=-=-= Content-Type: text/plain Nicolas Goaziou writes: > Hello, > > Alan Schmitt writes: > >> Would there be a way for the export process to be asynchronous and not >> lock emacs? > > Not yet. > > Actually that's, in my roadmap, the single last feature to implement > before moving the new export engine into core. > > > Regards, In the interim it, one solution which I personally like for large projects is to offload compilation into an external batch Emacs process. I find this not only useful for compilation while working, but if you place all relevant config into an init.el file loaded by the batch Emacs, this also makes it possible to share and compile the project separate of your personal Emacs config. Attached is a bare-bones Makefile supporting this sort of work-flow. Hope this helps, --=-=-= Content-Type: text/plain Content-Disposition: attachment; filename=Makefile EMACS=emacs BATCH_EMACS=$(EMACS) --batch -Q -l init.el %.html: %.org $(BATCH_EMACS) $*.org -f org-export-as-html %.tex: %.org $(BATCH_EMACS) $*.org -f org-export-as-latex %.txt: %.org init.el $(BATCH_EMACS) $*.org -f org-export-as-utf8 %.pdf: %.tex if pdflatex $*.tex