On Wed, 9 Nov 2016, Philip Hudson wrote:

On 9 November 2016 at 21:41, Charles C. Berry <ccbe...@ucsd.edu> 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

Reply via email to