From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: How to get to work non-interactive publishing? Date: Fri, 18 May 2012 08:19:02 -0400 Message-ID: <87r4uhk7df.fsf@gmx.com> References: <005401cd349f$a4382600$eca87200$@us> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:43413) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SVO3O-0007JZ-8f for emacs-orgmode@gnu.org; Fri, 18 May 2012 10:21:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SVO3L-0006eV-Bb for emacs-orgmode@gnu.org; Fri, 18 May 2012 10:21:13 -0400 Received: from mailout-us.gmx.com ([74.208.5.67]:49328) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1SVO3L-0006eG-3x for emacs-orgmode@gnu.org; Fri, 18 May 2012 10:21:11 -0400 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: Mikhail Titov Cc: emacs-orgmode@gnu.org "Mikhail Titov" writes: > Hello! > > I can publish project if I don=E2=80=99t use =E2=80=93-batch . So the fol= lowing works > just fine: emacs -nw --eval '(org-publish-project "myproj")' > > However nothing happens if I try emacs --batch --eval '(org-publish-proje= ct "myproj")' > > Does anybody have an idea how to pin point the problem? It just > returns almost instantaneously with no output to stderr. > > I do use ESS, and I have lots of R code some of which is intentionally > non-cached. I=E2=80=99m running GNU Emacs 24.1.50.2 (revno: 108254) with > default orgmode if it makes any difference. > > Thank you, > Mikhail > Hi Mikhail, Using batch mode shouldn't be causing any problems with the export process, is it possible that something in your personal config is not compatible with batch-mode? I have a number of projects in which I export using a batch Emacs process (generally from a make file). My Makefile rules tend to look like the following. EMACS=3Demacs BATCH_EMACS=3D$(EMACS) --batch -Q -l init.el document.org ... document.tex: document.org init.el $(BATCH_EMACS) -f org-export-as-latex where init.el contains all of the init necessary for the particular project. For a complete working example see the replication materials at http://www.jstatsoft.org/v46/i03. Best, --=20 Eric Schulte http://cs.unm.edu/~eschulte