From mboxrd@z Thu Jan 1 00:00:00 1970 From: Achim Gratz Subject: Re: :session question - a simple PATCH Date: Fri, 29 Mar 2013 10:59:52 +0100 Message-ID: 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> <87sj3flt2e.fsf@med.uni-goettingen.de> <87k3orl3l6.fsf_-_@med.uni-goettingen.de> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:44175) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ULW55-0007GC-Da for emacs-orgmode@gnu.org; Fri, 29 Mar 2013 05:58:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ULW53-00064M-W7 for emacs-orgmode@gnu.org; Fri, 29 Mar 2013 05:58:43 -0400 Received: from plane.gmane.org ([80.91.229.3]:49019) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ULW53-000640-QN for emacs-orgmode@gnu.org; Fri, 29 Mar 2013 05:58:41 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ULW5N-0000pH-AW for emacs-orgmode@gnu.org; Fri, 29 Mar 2013 10:59:01 +0100 Received: from p578f16ac.dip.t-dialin.net ([87.143.22.172]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 29 Mar 2013 10:59:01 +0100 Received: from Stromeko by p578f16ac.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 29 Mar 2013 10:59:01 +0100 In-Reply-To: <87k3orl3l6.fsf_-_@med.uni-goettingen.de> 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 Am 28.03.2013 20:35, schrieb Andreas Leha: > so it seems, currently, I (and John...) can not have both, /file local/ > and /language local/ variables. > > - The emacs-lisp-block > #+begin_src emacs-lisp > (setq org-babel-default-header-args:R > '((:session . "org-R"))) > #+end_src > works, of course, but sets the R-session globally. > > - The file-local variables (both way to set them) choke on the colon in > the varible name. You could use eval: (setq etq org-babel-default-header-args:R '((:session . "org-R"))) instead of setting the variable directly. > I do not know where to search for the reason, these variables work for > Eric but not for me (and John...). I don't think they work for Eric if he tries to set them as file variable. > So attached is a simple patch (search-and-replace) that renames all > org-babel-default-header-args:* variables to > org-babel-default-header-args-* In keeping with the spirit of the original naming I'd suggest switching from ":" to "/". I still think this is a bug in how Emacs evaluates the local variables, but since it has been that way for ages it probably has become a feature. Regards, -- Achim. (on the road :-)