From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: :session question Date: Wed, 01 May 2013 11:18:29 -0600 Message-ID: <87sj264o0f.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> <87ip4e5gai.fsf@gmail.com> <87k3nmd5es.fsf@Rainer.invalid> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:59202) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UXag4-0007ec-Md for emacs-orgmode@gnu.org; Wed, 01 May 2013 13:18:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UXag3-0005Hm-2J for emacs-orgmode@gnu.org; Wed, 01 May 2013 13:18:48 -0400 Received: from mail-pa0-f54.google.com ([209.85.220.54]:44067) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UXag2-0005HV-RL for emacs-orgmode@gnu.org; Wed, 01 May 2013 13:18:46 -0400 Received: by mail-pa0-f54.google.com with SMTP id fa10so955161pad.27 for ; Wed, 01 May 2013 10:18:46 -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: > Eric Schulte writes: >> 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. > > I'm thinking that something like > > #+PROPERTY: header-args:R :session "*R*" :exports none > > should work. I hate to change syntax, but the syntax you mention above does look both appealing and natural. Even with working file local variables [1]. > I've checked that the property interface returns the data as expected, > but I haven't implemented anything yet. It does not seem to be an > overly difficult endeavour, however. > That is very good news. With that portion working I would agree that this should be a fairly straightforward task. > >>> 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. > > General settings for all languages should be effected by > > #+PROPERTY: header-args :results value :exports none > > and there'd be a list of header arguments (or specific values) that are > either ignored or warned about when not associated with a particular > language. > > BTW, I think the current property syntax for header arguments should be > deprecated since it is the only place where the leading ":" is missing > for those. > > Comments, thoughts? > I think these are great ideas. Personally I'd love to see them implemented. Unfortunately I don't have time to work on an implementation currently. I'm surprised that none of the users who motivated this discussion have chimed in. Their opinions may be more valuable than my own in this regard (as I'm not a heavy #+Property user). Thanks for the clean and initially tested implementation idea! > > > Regards, > Achim. Footnotes: [1] Thanks to Bastien my patch allowing variables like `org-babel-default-header-args:R' to be set file-local has been applied to Emacs. -- Eric Schulte http://cs.unm.edu/~eschulte