From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Leha Subject: Re: :session question Date: Wed, 27 Mar 2013 10:27:30 +0100 Message-ID: <87fvzhmbul.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> 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]:58090) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKme2-0000wp-M6 for emacs-orgmode@gnu.org; Wed, 27 Mar 2013 05:27:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UKme1-0006QI-6I for emacs-orgmode@gnu.org; Wed, 27 Mar 2013 05:27:46 -0400 Received: from plane.gmane.org ([80.91.229.3]:35272) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKme0-0006NT-V4 for emacs-orgmode@gnu.org; Wed, 27 Mar 2013 05:27:45 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UKmeN-000396-7o for emacs-orgmode@gnu.org; Wed, 27 Mar 2013 10:28:07 +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 ; Wed, 27 Mar 2013 10:28:07 +0100 Received: from andreas.leha by genepi110.genepi.med.uni-goettingen.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 27 Mar 2013 10:28:07 +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 Andreas Röhler writes: > Am 26.03.2013 16:31, schrieb Eric Schulte: >> Achim Gratz writes: >> >>> Am 26.03.2013 13:37, schrieb Eric Schulte: >>>> This can be done system wide by setting the language-specific header >>>> arguments. >>> >>> I've yet to see an example on how to do this. >>> >> >> #+begin_src emacs-lisp >> (setq org-babel-default-header-args:R >> '((:session . "org-R"))) >> #+end_src >> >> #+RESULTS: >> | (:session . org-R) | >> >> #+begin_src R >> x <- 1 >> x >> #+end_src >> >> #+RESULTS: >> : 1 >> >> #+begin_src R >> x >> #+end_src >> >> #+RESULTS: >> : 1 >> >>> > > Hi, > > this looks very confusing for me. > > So, what is the purpose of a named session? > Understood it being a name-space, whose values don't affect the other ones. > What's in python-mode a dedicated shell. I can't speak for python, but in R, every differently named session will run within its own R process. The cool thing is, that I can work on file_foo.org and file_bar.org simultaneously, when file_foo.org uses R-session *foo* and file_bar.org uses R-session *bar*. [...] Regards, Andreas