emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] :no-expand not working on variables?


From: Rainer M Krug
Subject: Re: [O] :no-expand not working on variables?
Date: Mon, 31 Mar 2014 09:34:19 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (darwin)

Eric Schulte <address@hidden> writes:

> According to the manual :no-expand is only supposed to have an effect
> during tangling, not execution.

Thanks Eric - re-reading the manual, it became clear. Maybe to clarify
this in the manual, one could say:

,----
| The `:no-expand' header argument can be used to turn off this behavior
| for tangling and has no effect on the expansion during code execution.
`----

instead of:

,----
| The `:no-expand' header argument can be used to turn off this behavior.
`----

Rainer

>
> Best,
>
> Rainer M Krug <address@hidden> 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

-- 
Rainer M. Krug
email: Rainer<at>krugs<dot>de
PGP: 0x0F52F982

Attachment: pgpMzTLy5kTWB.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]