From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Leha Subject: Re: :session question Date: Tue, 26 Mar 2013 10:23:20 +0100 Message-ID: <87ip4ezf93.fsf@med.uni-goettingen.de> References: <51501AF2.1070405@easy-emacs.de> <8738vjugwd.fsf@gmail.com> <51516699.6090604@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]:41256) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKQ6Q-0005U3-Q1 for emacs-orgmode@gnu.org; Tue, 26 Mar 2013 05:23:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UKQ6P-0007H0-Jf for emacs-orgmode@gnu.org; Tue, 26 Mar 2013 05:23:34 -0400 Received: from plane.gmane.org ([80.91.229.3]:33811) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKQ6P-0007Gu-Cn for emacs-orgmode@gnu.org; Tue, 26 Mar 2013 05:23:33 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UKQ6l-0005Rj-TK for emacs-orgmode@gnu.org; Tue, 26 Mar 2013 10:23:55 +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 ; Tue, 26 Mar 2013 10:23:55 +0100 Received: from andreas.leha by genepi110.genepi.med.uni-goettingen.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 26 Mar 2013 10:23:55 +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 Rainer M Krug writes: > On 26/03/13 01:46, Eric Schulte wrote: >> Michael Gauland writes: >> >>> Andreas Röhler easy-emacs.de> writes: >>> >>>> Would find it more natural if ":session" is the default, while a command "refresh" makes a >>>> new one. >>> >> >> Header argument defaults are easy to accomplish on a per user or per file basis, just customize >> the `org-babel-default-header-args' variable. >> >> ,----[org-babel-default-header-args] | org-babel-default-header-args is a variable defined in >> `ob.el'. | Its value is ((:noweb . "yes") | (:session . "none") | (:results . "replace") | >> (:exports . "code") | (:cache . "no") | (:hlines . "no") | (:tangle . "no") | (:padnewline >> . "yes")) | | | Documentation: | Default arguments to use when evaluating a source block. > > Question from here: > > I use mainly R and have there set file wide > > #+PROPERTY: session "R-session" > > But I also have bash code, which would be evaluated in the R session, unless I use > > #+begin_src sh :session sh-session > ... > #+end_src > > But I do not need a session for the bash code blocks - so would :session "none" disable session > for this source block? > This would be great! > > Also: it would be quite nice if one could set the session argument specific for languages, so that > I could file wide > > #+PROPERTY: R-session "R" > #+PROPERTY: sh-session "sh" > +1 [...] Regards, Andreas