From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernd Weiss Subject: Re: [Babel][R] buffer-wide and code block specific use of :session Date: Sat, 12 Feb 2011 15:42:44 -0500 Message-ID: <4D56F0C4.1020500@uni-koeln.de> References: <4D569D77.4020005@uni-koeln.de> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=59324 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PoMIt-0000qy-El for emacs-orgmode@gnu.org; Sat, 12 Feb 2011 15:42:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PoMIs-0004EO-3e for emacs-orgmode@gnu.org; Sat, 12 Feb 2011 15:42:51 -0500 Received: from smtp-out.rrz.uni-koeln.de ([134.95.19.53]:38682) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PoMIr-0004EE-PH for emacs-orgmode@gnu.org; Sat, 12 Feb 2011 15:42:50 -0500 In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Dan Davison Cc: emacs-orgmode@gnu.org Am 12.02.2011 13:30, schrieb Dan Davison: > Bernd Weiss writes: [...] >> Since I have two code blocks, I need to use :session. If I define >> :session buffer-wide as >> >> #+BABEL: :session *R* >> >> then the matrix cormat is unknown within the second code block ("object >> 'cormat' not found"). However, if I specify :session for each code block >> seperately then it works as expected. > > Hi Bernd, > > The above does work for me. Some things to check: > > 1. After altering the #+BABEL line, it's necessary to refresh Org's > file-local options, for example with C-c C-c on the #+BABEL > line. (Same is true for #+OPTIONS, #+PROPERTY, etc) > > 2. I've just fixed a bug which was causing it to fail to work on the > first attempt... But it did work on second and subsequent attempts. > > Please note that it is possible to make an equivalent setting using > > #+PROPERTY: session *R* > > In fact, I suspect we are going to drop #+BABEL entirely, so please > consider it deprecated and use this form instead. > > After evaluating the first block, an ESS R buffer named *R* should > exist, in which the variable cormat should be defined. Let me know if > your problem persists. Hi Dan, Thanks for your reply. Using #+PROPERTY: session *R* (and running another =git pull origin master=) solved all my problems. Thanks, Bernd