emacs-orgmode
[Top][All Lists]
Advanced

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

Re: noweb


From: Nuno Salgado
Subject: Re: noweb
Date: Thu, 23 Jan 2020 00:04:47 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)

Marco,

Thank you for your help. I read it again and didn't find. But no
problem.

My question was to figure out what's the point to tangle the code without 
substituition!

NS


Marco Wahl <address@hidden> writes:

> Nuno Salgado <address@hidden> writes:
>
>>   Vars definition:
>>   #+NAME:DEFVARS
>>
>>   #+BEGIN_SRC shell :tangle yes
>>     v1=1;
>>     v2=2;
>>   #+END_SRC
>>
>>   Script1:
>>
>>   #+BEGIN_SRC shell :tangle yes :noweb eval
>>     <<DEFVARS>>
>>     echo $v1;
>>   #+END_SRC
>>
>> This works great when I do C-c C-c in each script.
>>
>> But when I do org-babel-tangle, the code gets two <<DEFVARS>>.
>>
>> Does it makes sense? Since I set noweb = eval why does it exports
>> <<DEFVARS>>?
>>
>> Could you please help me turning around this problem without removing every 
>> reference <<DEFVARS>>
>
> You can find the answer in the documentation, I think.  See e.g. (info
> "(org) Noweb Reference Syntax").
>
>
> HTH



reply via email to

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