From: Eric Schulte <schulte.eric@gmail.com>
To: Nicolas Goaziou <n.goaziou@gmail.com>
Cc: Alan Schmitt <alan.schmitt@polytechnique.org>,
emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: running the new exporter asynchronously?
Date: Wed, 28 Nov 2012 06:45:16 -0700 [thread overview]
Message-ID: <87y5hl264z.fsf@gmail.com> (raw)
In-Reply-To: <87mwy197wj.fsf@gmail.com> (Nicolas Goaziou's message of "Wed, 28 Nov 2012 14:25:16 +0100")
[-- Attachment #1: Type: text/plain, Size: 830 bytes --]
Nicolas Goaziou <n.goaziou@gmail.com> writes:
> Hello,
>
> Alan Schmitt <alan.schmitt@polytechnique.org> 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,
[-- Attachment #2: Makefile --]
[-- Type: text/plain, Size: 525 bytes --]
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 </dev/null; then \
true; \
else \
stat=$$?; touch $*.pdf; exit $$stat; \
fi
bibtex $*
while grep "Rerun to get" $*.log; do \
if pdflatex $*.tex </dev/null; then \
true; \
else \
stat=$$?; touch $*.pdf; exit $$stat; \
fi; \
done
[-- Attachment #3: Type: text/plain, Size: 46 bytes --]
--
Eric Schulte
http://cs.unm.edu/~eschulte
next prev parent reply other threads:[~2012-11-28 13:45 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-28 8:34 running the new exporter asynchronously? Alan Schmitt
2012-11-28 13:25 ` Nicolas Goaziou
2012-11-28 13:45 ` Eric Schulte [this message]
2012-11-28 15:13 ` Alan Schmitt
2012-11-28 16:50 ` Eric Schulte
2012-11-28 20:46 ` Myles English
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87y5hl264z.fsf@gmail.com \
--to=schulte.eric@gmail.com \
--cc=alan.schmitt@polytechnique.org \
--cc=emacs-orgmode@gnu.org \
--cc=n.goaziou@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).