From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: :session question Date: Thu, 28 Mar 2013 08:22:18 -0500 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> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:48040) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ULCmc-00084G-13 for emacs-orgmode@gnu.org; Thu, 28 Mar 2013 09:22:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ULCma-0006JI-6g for emacs-orgmode@gnu.org; Thu, 28 Mar 2013 09:22:21 -0400 Received: from mail-la0-x233.google.com ([2a00:1450:4010:c03::233]:33175) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ULCmZ-0006JD-VZ for emacs-orgmode@gnu.org; Thu, 28 Mar 2013 09:22:20 -0400 Received: by mail-la0-f51.google.com with SMTP id fo13so17769106lab.10 for ; Thu, 28 Mar 2013 06:22:19 -0700 (PDT) In-Reply-To: <87k3oszilk.fsf@gmail.com> 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: Eric Schulte Cc: Andreas Leha , emacs-orgmode@gnu.org On Wed, Mar 27, 2013 at 3:35 PM, Eric Schulte wrote: > Andreas Leha writes: > > [...] >> >> Is that just not working for me? And any ideas, what I could do about >> it? >> > > I have no good ideas. Is the `org-babel-default-header-args:R' variable > defined on your system before you load this file? If not, maybe you > should be sure to add > > (require 'ob-R) > > to your emacs initialization. If the ":" in the variable name is > somehow confusing your Emacs, then possibly you could use the alternate > format of specifying file local variables (see the info link in my > attached example). > By "alternate" do you mean: # Local Variables: # stuff # End: vs. -*-stuff-*- ? If so, this isn't working for me either (I get "malformed modeline"): -*- org-babel-default-header-args:R: ((:session . "foo")) -*- I read through the *info* on local file variables and both of the above seem like they should be correct. Wouldn't it be the colon? Emacs is looking for VAR:VALUE. Here's from files.el, which contains the function =hack-local-variables=. While not an elisper, this looks like it wouldn't figure out two colons: (while (and (not (eobp)) (or (not mode-only) (not result))) ;; Find the variable name; strip whitespace. (skip-chars-forward " \t") (setq beg (point)) (skip-chars-forward "^:\n") (if (eolp) (error "Missing colon in local variables entry")) (skip-chars-backward " \t") Isn't this sort of saying, "split up the var:value pair by starting at line beginning, going to the first =:=, and then looking for a newline? If so, I'd take the execution as trying to set: =org-babel-default-header-args= to a value of =R: ((:session . "foo"))= John > I hope one of these works, aside from that I have no idea why our Emacs > versions would differ in such fundamental behavior. > > Cheers, > > -- > Eric Schulte > http://cs.unm.edu/~eschulte >