From mboxrd@z Thu Jan 1 00:00:00 1970 From: swflint@flintfam.org (Samuel W. Flint) Subject: Re: Preventing noweb substitution during export Date: Wed, 27 Dec 2017 16:50:01 -0600 Message-ID: <87h8sbeqg6.fsf@curry.flintfam.org> References: <87y3lnesdq.fsf@curry.flintfam.org> <87vagryfdc.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52635) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eUKWY-0001Pq-11 for emacs-orgmode@gnu.org; Wed, 27 Dec 2017 17:50:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eUKWU-0006bO-Sb for emacs-orgmode@gnu.org; Wed, 27 Dec 2017 17:50:10 -0500 Received: from mx.flintfam.org ([2001:19f0:6401:1c4:5400:ff:fe4b:c898]:44045) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eUKWU-0006aY-9Y for emacs-orgmode@gnu.org; Wed, 27 Dec 2017 17:50:06 -0500 In-Reply-To: <87vagryfdc.fsf@nicolasgoaziou.fr> (Nicolas Goaziou's message of "Wed, 27 Dec 2017 23:29:03 +0100") 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: Nicolas Goaziou Cc: Org-Mode Nicolas, my apologies for sending this twice. >>>>> Nicolas Goaziou writes: NG> Hello, swflint@flintfam.org (Samuel W. Flint) writes: >> I used to be able to prevent noweb substitution during export by >> setting noweb to tangle, now it's only a yes/no option. When was >> this feature removed, and what can I do to get it back? NG> I don't think that was intended. Would you have an ECM NG> demonstrating the issue? It didn't get removed, though no-export is now the correct value. Neither, however, are currently documented in the manual. NG> Regards, NG> -- Nicolas Goaziou And the following should demonstrate how they currently behave: #+BEGIN_EXAMPLE #+PROPERTY: :noweb tangle #+name: a #+begin_src python def foo(): print "foo" #+end_src #+name: b #+begin_src python <> foo() #+end_src #+name: c #+begin_src python :tangle "test.py" import bar <> #+end_src #+END_EXAMPLE The file 'test.py' will contain: import bar <> foo() If noweb is set to no-export, the <> will be resolved. However, with tangle, the block is included during export. HTH, Sam --=20 Samuel W. Flint 4096R/266596F4 (9477 D23E 389E 40C5 2F10 DE19 68E5 318E 2665 96F4) =CE=BBs.(s s) =CE=BBs.(s s)