From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Preventing noweb substitution during export Date: Thu, 28 Dec 2017 12:42:51 +0100 Message-ID: <874lobf58k.fsf@nicolasgoaziou.fr> References: <87y3lnesdq.fsf@curry.flintfam.org> <87vagryfdc.fsf@nicolasgoaziou.fr> <87h8sbeqg6.fsf@curry.flintfam.org> 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]:35654) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eUWaR-0001oq-Bl for emacs-orgmode@gnu.org; Thu, 28 Dec 2017 06:43:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eUWaN-0000OJ-EP for emacs-orgmode@gnu.org; Thu, 28 Dec 2017 06:42:59 -0500 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:54370) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eUWaN-0000N9-8y for emacs-orgmode@gnu.org; Thu, 28 Dec 2017 06:42:55 -0500 In-Reply-To: <87h8sbeqg6.fsf@curry.flintfam.org> (Samuel W. Flint's message of "Wed, 27 Dec 2017 16:50:01 -0600") 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: "Samuel W. Flint" Cc: Org-Mode Hello, swflint@flintfam.org (Samuel W. Flint) writes: > 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. Patches welcome! Org manual is now an Org file, it should be much more pleasant to edit. :) > And the following should demonstrate how they currently behave: > > #+BEGIN_EXAMPLE > #+PROPERTY: :noweb tangle This should be: #+property: header-args :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. I cannot reproduce it. The following document: --8<---------------cut here---------------start------------->8--- #+PROPERTY: header-args :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 --8<---------------cut here---------------end--------------->8--- becomes --8<---------------cut here---------------start------------->8--- =E2=94=8C=E2=94=80=E2=94=80=E2=94=80=E2=94=80 =E2=94=82 def foo(): =E2=94=82 print "foo" =E2=94=94=E2=94=80=E2=94=80=E2=94=80=E2=94=80 =E2=94=8C=E2=94=80=E2=94=80=E2=94=80=E2=94=80 =E2=94=82=20 =E2=94=82=20 =E2=94=82 <> =E2=94=82=20 =E2=94=82 foo() =E2=94=94=E2=94=80=E2=94=80=E2=94=80=E2=94=80 =E2=94=8C=E2=94=80=E2=94=80=E2=94=80=E2=94=80 =E2=94=82=20 =E2=94=82 import bar =E2=94=82 <> =E2=94=94=E2=94=80=E2=94=80=E2=94=80=E2=94=80 --8<---------------cut here---------------end--------------->8--- when exported to UTF-8. Regards, --=20 Nicolas Goaziou