From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernd Weiss Subject: Re: [babel] Cannot use R and sh Date: Thu, 20 Oct 2011 14:58:52 -0400 Message-ID: <4EA06F6C.4010201@uni-koeln.de> References: <4EA068E4.8060503@uni-koeln.de> <28702.1319136540@alphaville.dokosmarshall.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:34812) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RGxpW-0001Ch-Cm for emacs-orgmode@gnu.org; Thu, 20 Oct 2011 14:59:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RGxpU-0004Mu-2G for emacs-orgmode@gnu.org; Thu, 20 Oct 2011 14:59:02 -0400 Received: from smtp-out.rrz.uni-koeln.de ([134.95.19.53]:46709) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RGxpT-0004M5-Js for emacs-orgmode@gnu.org; Thu, 20 Oct 2011 14:58:59 -0400 In-Reply-To: <28702.1319136540@alphaville.dokosmarshall.org> 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: nicholas.dokos@hp.com Cc: emacs-orgmode@gnu.org On 20.10.2011 14:49, Nick Dokos wrote: [...] > AFAIK, the syntax is (note the BABEL and the :session) > > #+BABEL: :session *R* > > With that, I can certainly reproduce what you get and it > is indeed the global session that causes it. If you > want a global session for all the other code blocks but > want to override it for the single shell block, you can do: > > #+BEGIN_SRC sh :session *SH* > ls -a > #+END_SRC Thanks, Nick, for your reply! I hadn't thought about overriding the "R session". Good idea! With respect to the "#+BABEL..." syntax, I vaguely remember that this is deprecated. The Org Mode Manual, however, (still) mentions both ways... . Again, thanks, Bernd