From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernd Weiss Subject: Re: Running "org-babel-tangle" and/or "org-export-as-pdf" in Emacs batch mode Date: Thu, 12 Apr 2012 17:45:32 +0200 Message-ID: <4F86F89C.3090508@uni-koeln.de> References: <4F8433B9.7070007@uni-koeln.de> <87y5q2ux14.fsf@gmx.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:57763) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SIMDT-0006bj-7H for emacs-orgmode@gnu.org; Thu, 12 Apr 2012 11:45:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SIMDM-00065X-M9 for emacs-orgmode@gnu.org; Thu, 12 Apr 2012 11:45:46 -0400 Received: from smtp-out.rrz.uni-koeln.de ([134.95.19.53]:55038) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SIMDM-00065R-CN for emacs-orgmode@gnu.org; Thu, 12 Apr 2012 11:45:40 -0400 In-Reply-To: <87y5q2ux14.fsf@gmx.com> 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: Eric Schulte Cc: emacs-orgmode@gnu.org On 11.04.2012 16:14, Eric Schulte wrote: [...] > Hi Bernd, > > I can't recreate this hanging issue locally (I don't have access to a > windows box). This sounds like an ESS issue to me since ESS seems to be > the hanging process. Perhaps a good first step would be to try to > evaluate "(require 'ess) (R)" in a batch Emacs session without Emacs > hanging. Once this is working then it should be clear how to run ESS > sessions from code blocks. > Eric, Thanks for your answer! I am not sure if you had the following in mind but it again causes Emacs to hang: emacs -batch -l e:/config/.emacs --visit test.R --eval="(progn (require 'ess) (R) (ess-eval-buffer))" This is test.R ---- test.R ------------------ pdf("testplot.pdf") hist(rnorm(100)) dev.off() ---- test.R ------------------ I wrote another email to the ESS list, which is currently awaiting moderator approval. However, I am still wondering that I seem to be the first person to stumble upon this problem... Thanks, Bernd