From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: :session question Date: Tue, 26 Mar 2013 09:31:00 -0600 Message-ID: <87ip4e5gai.fsf@gmail.com> References: <51501AF2.1070405@easy-emacs.de> <8738vjugwd.fsf@gmail.com> <51516699.6090604@gmail.com> <87ip4ezf93.fsf@med.uni-goettingen.de> <87fvzi72ve.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:35187) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKVvu-0002Bw-Lq for emacs-orgmode@gnu.org; Tue, 26 Mar 2013 11:37:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UKVvn-0000LG-Jn for emacs-orgmode@gnu.org; Tue, 26 Mar 2013 11:37:06 -0400 Received: from mail-pa0-f52.google.com ([209.85.220.52]:49925) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKVvn-0000L2-D8 for emacs-orgmode@gnu.org; Tue, 26 Mar 2013 11:36:59 -0400 Received: by mail-pa0-f52.google.com with SMTP id fb10so102092pad.25 for ; Tue, 26 Mar 2013 08:36:58 -0700 (PDT) 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: Achim Gratz Cc: emacs-orgmode@gnu.org 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 > >> This can also be done file-wide through the use of file >> local variables (instead of the property line above). > > Still, language specific properties should exists. > If you mean that there should be new syntax for setting header arguments on a file or sub-tree basis w/o using file local variables, I'd be happy to apply a patch. > > But importantly, there should be no way to set a default session name > without also specifying the language, regardless of which way one > tries to set this up. > If you can think of a clean way to implement this then we should go for it. I doubt many existing configurations rely on this behavior. > >> Please read through the header argument documentation to see the many >> different ways in which header arguments may be set. >> >> http://orgmode.org/manual/Using-header-arguments.html > > This sends you off to Worg (which tries to send you back to where you > came from), Clearly this portion of the manual should be improved. > where you'll learn that there are no language specific header > arguments for R and no further documentation on how to set defaults > specific to R can easily be found (if it exists). > Every language can specify default header arguments through setting a defvar. The syntax is `org-babel-default-header-args:lang'. This should not be hard to find through apropos, simple tab completion or searching the archives of this mailing list. However I agree the manual should be improved wrt this topic. Best, > > > Regards, -- Eric Schulte http://cs.unm.edu/~eschulte