From mboxrd@z Thu Jan 1 00:00:00 1970 From: Charles Berry Subject: Re: Bug: problem w/ R code blocks [8.3beta (release_8.3beta-362-ga92789 /usr/local/share/emacs/site-lisp/org/)] Date: Tue, 16 Sep 2014 20:17:05 +0000 (UTC) Message-ID: References: <87bnqgzljd.fsf@kademan.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53409) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XU000-0002zw-JX for emacs-orgmode@gnu.org; Tue, 16 Sep 2014 17:09:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XTzzu-00006b-7z for emacs-orgmode@gnu.org; Tue, 16 Sep 2014 17:09:20 -0400 Received: from plane.gmane.org ([80.91.229.3]:56967) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XTzzu-0008Se-1A for emacs-orgmode@gnu.org; Tue, 16 Sep 2014 17:09:14 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XTzBe-0003Zk-5U for emacs-orgmode@gnu.org; Tue, 16 Sep 2014 22:17:18 +0200 Received: from 137.110.37.92 ([137.110.37.92]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 16 Sep 2014 22:17:18 +0200 Received: from ccberry by 137.110.37.92 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 16 Sep 2014 22:17:18 +0200 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: emacs-orgmode@gnu.org Rainer M Krug krugs.de> writes: > > Thanks - you came before me. I get the same error but managed to work > around. > > This is likely caused by the upgrade of ess, Likely. But it may not be an ESS problem per se. M-x R starts a process that runs asynchronously. In interactive use there is no issue (barring something in .First() that slows the startup for a very long time). But, ... If the (rename-buffer ...) in org-babel-R-initiate-session runs before all the setup that ESS performs in the process buffer is complete, chaos can result. Not sure what the best way is to fix this. A simple hack to temporarily solve the OP's problem is to force a pause before (rename-buffer ...) with (sleep-for 0.1) or something. HTH, Chuck