From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Charles C. Berry" Subject: Re: Tangling flow control Date: Wed, 9 Nov 2016 17:19:16 -0800 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53407) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c4e1U-0001cG-1L for emacs-orgmode@gnu.org; Wed, 09 Nov 2016 20:19:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c4e1Q-0005mS-BK for emacs-orgmode@gnu.org; Wed, 09 Nov 2016 20:19:24 -0500 Received: from iport-bcv2-out.ucsd.edu ([132.239.0.73]:60212) by eggs.gnu.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.71) (envelope-from ) id 1c4e1P-0005m9-VG for emacs-orgmode@gnu.org; Wed, 09 Nov 2016 20:19:20 -0500 In-Reply-To: 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" To: Philip Hudson Cc: emacs orgmode-mailinglist On Wed, 9 Nov 2016, Philip Hudson wrote: > On 9 November 2016 at 21:41, Charles C. Berry 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