|
From: | Charles C. Berry |
Subject: | Re: [O] Tangling flow control |
Date: | Wed, 9 Nov 2016 17:19:16 -0800 |
User-agent: | Alpine 2.20 (OSX 67 2015-01-07) |
On Wed, 9 Nov 2016, Philip Hudson wrote:
On 9 November 2016 at 21:41, Charles C. Berry <address@hidden> wrote:The org src block is just a container. Its body is a src block template that gets copied into the variable `tmpl', which if filled and placed in file can be tangled.That makes sense, but it seems to conflict with what you illustrate: #+RESULTS: #+BEGIN_src org ,#+BEGIN_SRC shell :tangle abc.sh ls -lt my-dir ,#+END_SRC #+END_src I'd expect/want: #+RESULTS: #+BEGIN_SRC shell :tangle abc.sh ls -lt my-dir #+END_SRC Wouldn't I?
For sure. But when developing stuff like this `:wrap src org' will capture it and protect against messing up the rest of your *.org file.
Once you get it filling the template as you want it, remove the :wrap header and add a `:file script.org' header
But it is indeed optional. Chuck
[Prev in Thread] | Current Thread | [Next in Thread] |