From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: :no-expand not working on variables? Date: Sun, 30 Mar 2014 08:13:09 -0600 Message-ID: <87k3bbg4ga.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58534) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WUGUC-0000H3-2F for emacs-orgmode@gnu.org; Sun, 30 Mar 2014 10:13:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WUGU7-0007ge-CD for emacs-orgmode@gnu.org; Sun, 30 Mar 2014 10:13:19 -0400 Received: from mail-pd0-x234.google.com ([2607:f8b0:400e:c02::234]:38833) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WUGU7-0007gX-4j for emacs-orgmode@gnu.org; Sun, 30 Mar 2014 10:13:15 -0400 Received: by mail-pd0-f180.google.com with SMTP id v10so6837945pde.39 for ; Sun, 30 Mar 2014 07:13:14 -0700 (PDT) In-Reply-To: (Rainer M. Krug's message of "Fri, 28 Mar 2014 15:57:00 +0100") 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: Rainer M Krug Cc: emacs-orgmode@gnu.org According to the manual :no-expand is only supposed to have an effect during tangling, not execution. Best, Rainer M Krug writes: > Hi > > shouldn't the following not give an error from R as it should not be > expanding the variables? > > --8<---------------cut here---------------start------------->8--- > #+PROPERTY: no-expand TRUE > #+PROPERTY: var YEAR=2014 > > * a noexpand code > > #+begin_src R :results output :no-expand > cat(YEAR) > #+end_src > > #+RESULTS: > : 2014 > --8<---------------cut here---------------end--------------->8--- > > The manual states: > > ,---- > | 14.8.2.11 `:no-expand' > | ...................... > | > | By default, code blocks are expanded with `org-babel-expand-src-block' > | during tangling. This has the effect of assigning values to variables > | specified with `:var' (see *Note var::), and of replacing "noweb" > | references (see *Note Noweb reference syntax::) with their targets. The > | `:no-expand' header argument can be used to turn off this behavior. > `---- > > Org-mode version 8.2.5h (release_8.2.5h-869-gdcfe09 @ > /Users/rainerkrug/.emacs.d/org-mode/lisp/) > > Cheers, > > Rainer -- Eric Schulte https://cs.unm.edu/~eschulte PGP: 0x614CA05D