From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Leha Subject: Re: :session question Date: Thu, 28 Mar 2013 11:25:29 +0100 Message-ID: <87sj3flt2e.fsf@med.uni-goettingen.de> References: <51501AF2.1070405@easy-emacs.de> <8738vjugwd.fsf@gmail.com> <51516699.6090604@gmail.com> <87ip4ezf93.fsf@med.uni-goettingen.de> <87fvzi72ve.fsf@gmail.com> <87ip4e5gai.fsf@gmail.com> <5152B34E.4020004@easy-emacs.de> <87fvzhmbul.fsf@med.uni-goettingen.de> <5152D9F8.3040404@easy-emacs.de> <10996.1364384905@alphaville> <5152E38A.4050602@easy-emacs.de> <87hajx109o.fsf@gmail.com> <871ub1m0mm.fsf@med.uni-goettingen.de> <877gks26bg.fsf@gmail.com> <87wqsslhmh.fsf@med.uni-goettingen.de> <87k3oszilk.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:55176) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ULA1p-00028D-MU for emacs-orgmode@gnu.org; Thu, 28 Mar 2013 06:25:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ULA1n-00060C-Ma for emacs-orgmode@gnu.org; Thu, 28 Mar 2013 06:25:53 -0400 Received: from plane.gmane.org ([80.91.229.3]:37020) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ULA1n-0005zy-Fm for emacs-orgmode@gnu.org; Thu, 28 Mar 2013 06:25:51 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ULA26-0007zQ-7N for emacs-orgmode@gnu.org; Thu, 28 Mar 2013 11:26:10 +0100 Received: from genepi110.genepi.med.uni-goettingen.de ([134.76.140.110]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 28 Mar 2013 11:26:10 +0100 Received: from andreas.leha by genepi110.genepi.med.uni-goettingen.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 28 Mar 2013 11:26:10 +0100 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 Hi Eric, Eric Schulte writes: > Andreas Leha writes: > > [...] >> >> Is that just not working for me? And any ideas, what I could do about >> it? >> > > I have no good ideas. Is the `org-babel-default-header-args:R' variable > defined on your system before you load this file? If not, maybe you > should be sure to add > > (require 'ob-R) > The variable is defined (value is nil). I added the (require 'ob-R) to my initialization nonetheless, but no avail. The value of `org-babel-default-header-args:R' stays nil. > to your emacs initialization. If the ":" in the variable name is > somehow confusing your Emacs, then possibly you could use the alternate > format of specifying file local variables (see the info link in my > attached example). I tried (the file is below). In this case I even get the question on unsafe variables. [...] Thanks for the suggestions anyway, Andreas PS: the file again: #+begin_org #+Title: Example #+Author: Eric Schulte For more information on file local variables see [[info:elisp#File%20Local%20Variables][info:elisp#File Local Variables]]. Because there is a default :session values assigned locally for R blocks we have the following. #+begin_src R x <- 1 x #+end_src #+RESULTS: : 1 #+begin_src R x #+end_src #+RESULTS: But non-R code blocks do not have a default session value. #+begin_src sh date #+end_src #+RESULTS: : Mi 27. Mär 21:18:49 CET 2013 # Local Variables: # org-babel-default-header-args:R: ((:session . "foo")) # End: #+end_org