From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: [babel] PROPERTY doesn't do what BABEL did Date: Wed, 14 Dec 2011 18:12:36 -0700 Message-ID: <87k45yy6wr.fsf@gmx.com> References: <8762hi3gcv.fsf@tajo.ucsd.edu> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:46657) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RazsV-0004WK-J7 for emacs-orgmode@gnu.org; Wed, 14 Dec 2011 20:12:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RazsU-0000Mb-6B for emacs-orgmode@gnu.org; Wed, 14 Dec 2011 20:12:55 -0500 Received: from mailout-us.gmx.com ([74.208.5.67]:38938 helo=mailout-us.mail.com) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1RazsU-0000MS-01 for emacs-orgmode@gnu.org; Wed, 14 Dec 2011 20:12:54 -0500 In-Reply-To: <8762hi3gcv.fsf@tajo.ucsd.edu> (cberry@tajo.ucsd.edu's message of "Wed, 14 Dec 2011 15:04:16 -0800") 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: cberry@tajo.ucsd.edu Cc: emacs-orgmode@gnu.org cberry@tajo.ucsd.edu writes: > I would like to get the same behavior as when I export a file with (say) > these three lines: > > #+begin_src emacs-lisp :var foo=1 :var bar=2 :results value :exports both > (+ foo bar) > #+end_src > > But I'd like to set a buffer wide PROPERTY to achieve that as with a > file with these lines: > > #+property: var foo=1 > #+property: var+ bar=2 > #+begin_src emacs-lisp :results value :exports both > (+ foo bar) > #+end_src > The above works on my system. You may want to try C-c C-c on one of the property lines so that Org-mode re-reads them (it does this automatically upon opening an Org-mode file). Best, > > it throws an error under 7.8.02 (downloaded as tar.gz) when I try to > export it with 'C-c C-e a yes RET' : > > progn: Symbol's value as variable is void: foo > > Other trials seem to show that #+PROPERTY: is ignored by the src blocks > > I'd really like to get something that does what BABEL used to do as I > have a lot of code that relies on that behavior. :-( > > Chuck > > --- > > -- Eric Schulte http://cs.unm.edu/~eschulte/