From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joon Ro Subject: Tangling #+Results block? Date: Sun, 21 Jun 2015 21:40:17 -0700 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="_a0409a31-1619-456d-af48-bc71648e664a_" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42043) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z6tWy-00055o-3v for emacs-orgmode@gnu.org; Mon, 22 Jun 2015 00:40:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z6tWt-00029w-9g for emacs-orgmode@gnu.org; Mon, 22 Jun 2015 00:40:24 -0400 Received: from col004-omc1s1.hotmail.com ([65.55.34.11]:55047) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z6tWt-00029j-3q for emacs-orgmode@gnu.org; Mon, 22 Jun 2015 00:40:19 -0400 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "emacs-orgmode@gnu.org" --_a0409a31-1619-456d-af48-bc71648e664a_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Is it possible to tangle #+RESULTS: block? For example=2C #+BEGIN_SRC rst :tangle ./test.txt :noweb yes<>#+END_SRC #+BEGIN_SRC python :exports results :results output rawprint("Printed Resul= ts")#+END_SRC #+RESULTS: Printed Results And I want to tangle #+RESULTS: part=2C not the actual Python source code= =2C so the tangled test.txt file has the following: Printed Results Best=2CJoon = --_a0409a31-1619-456d-af48-bc71648e664a_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Is it possible to tangle #+= RESULTS: block? For example=2C

#+BEGIN_SRC rst :ta= ngle ./test.txt :noweb yes
<=3B<=3BTangle_Test>=3B>=3B
#+END_SRC

#+BEGIN_SRC python :exports resu= lts :results output raw
print("Printed Results")
#+END_= SRC

#+RESULTS: =3B
Printed =3B= Results

And I want to tangle #+RESULTS: par= t=2C not the actual Python source code=2C so the tangled test.txt file has = the following:

= Printed =3BResults

Best=2C
Joon


<= /div>
= --_a0409a31-1619-456d-af48-bc71648e664a_-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joon Ro Subject: Re: Tangling #+Results block? Date: Mon, 22 Jun 2015 10:22:11 -0700 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="_2402fde1-f458-4de8-b332-6ef6f3b7bd8a_" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49236) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z75QI-0007g0-0c for emacs-orgmode@gnu.org; Mon, 22 Jun 2015 13:22:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z75QD-0005EF-2V for emacs-orgmode@gnu.org; Mon, 22 Jun 2015 13:22:17 -0400 Received: from col004-omc1s12.hotmail.com ([65.55.34.22]:59364) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z75QC-0005Dr-Py for emacs-orgmode@gnu.org; Mon, 22 Jun 2015 13:22:12 -0400 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "emacs-orgmode@gnu.org" --_2402fde1-f458-4de8-b332-6ef6f3b7bd8a_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I found the following thread=2C and tried to follow it=2C but it did not wo= rk: https://lists.gnu.org/archive/html/emacs-orgmode/2010-11/msg00390.html From: joon.ro@outlook.com To: emacs-orgmode@gnu.org Date: Sun=2C 21 Jun 2015 21:40:17 -0700 Subject: [O] Tangling #+Results block? Is it possible to tangle #+RESULTS: block? For example=2C #+BEGIN_SRC rst :tangle ./test.txt :noweb yes<>#+END_SRC #+BEGIN_SRC python :exports results :results output rawprint("Printed Resul= ts")#+END_SRC #+RESULTS: Printed Results And I want to tangle #+RESULTS: part=2C not the actual Python source code= =2C so the tangled test.txt file has the following: Printed Results Best=2CJoon = --_2402fde1-f458-4de8-b332-6ef6f3b7bd8a_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
I found the following thread=2C = and tried to follow it=2C but it did not work:





From:=3B joon.ro@outlook.com
To:=3B emacs-orgmode@gnu.org
= Date:=3B Sun=2C 21 Jun 2015 21:=3B40:=3B17 -0700
Subject:=3B= [O] Tangling #+Results block?

Is it possible to tangle #+RESULTS:=3B block? For ex= ample=2C

#+BEGIN_SRC rst :=3Btangle ./test.txt = :=3Bnoweb yes
<=3B<=3BTangle_Test>=3B>=3B
#+= END_SRC

#+BEGIN_SRC python :=3Bexports results = :=3Bresults output raw
print("=3BPrinted Results"=3B)<= /div>
#+END_SRC

#+RESULTS:=3B =3B
=
Printed =3BResults

And= I want to tangle #+RESULTS:=3B part=2C not the actual Python source cod= e=2C so the tangled test.txt file has the following:=3B

Printed =3BResults

Best=2C
Joon


= --_2402fde1-f458-4de8-b332-6ef6f3b7bd8a_-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Charles C. Berry" Subject: Re: Tangling #+Results block? Date: Mon, 22 Jun 2015 19:05:33 -0700 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]:34441) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z7Dap-0005KO-4P for emacs-orgmode@gnu.org; Mon, 22 Jun 2015 22:05:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z7Dak-00049p-RP for emacs-orgmode@gnu.org; Mon, 22 Jun 2015 22:05:42 -0400 Received: from iport-acv5-out.ucsd.edu ([132.239.0.10]:14312) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z7Dak-000498-Ib for emacs-orgmode@gnu.org; Mon, 22 Jun 2015 22:05:38 -0400 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Joon Ro Cc: "emacs-orgmode@gnu.org" On Mon, 22 Jun 2015, Joon Ro wrote: > I found the following thread, and tried to follow it, but it did not work: > https://lists.gnu.org/archive/html/emacs-orgmode/2010-11/msg00390.html See: http://orgmode.org/manual/Noweb-reference-syntax.html#Noweb-reference-syntax > From: joon.ro@outlook.com > To: emacs-orgmode@gnu.org > Date: Sun, 21 Jun 2015 21:40:17 -0700 > Subject: [O] Tangling #+Results block? > > > > > Is it possible to tangle #+RESULTS: block? For example, > #+BEGIN_SRC rst :tangle ./test.txt :noweb yes > <> > #+END_SRC Make that : <> And use : #+NAME: Tangle_Test to name this block: > #+BEGIN_SRC python :exports results :results output raw > print("Printed Results") > #+END_SRC > #+RESULTS: > Printed Results > > And I want to tangle #+RESULTS: part, not the actual Python source > code, so the tangled test.txt file has the following: > Printed Results HTH, Chuck From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joon Ro Subject: Re: Tangling #+Results block? Date: Mon, 22 Jun 2015 19:55:08 -0700 Message-ID: References: , , Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="_491226ea-e335-449d-bf85-54e2aca6057f_" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44091) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z7EMi-0002IK-TZ for emacs-orgmode@gnu.org; Mon, 22 Jun 2015 22:55:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z7EMf-00061V-OD for emacs-orgmode@gnu.org; Mon, 22 Jun 2015 22:55:12 -0400 Received: from col004-omc3s16.hotmail.com ([65.55.34.154]:55747) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z7EMf-00061M-J5 for emacs-orgmode@gnu.org; Mon, 22 Jun 2015 22:55:09 -0400 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "Charles C. Berry" Cc: "emacs-orgmode@gnu.org" --_491226ea-e335-449d-bf85-54e2aca6057f_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable >=20 > See: >=20 > http://orgmode.org/manual/Noweb-reference-syntax.html#Noweb-reference-syn= tax >=20 I have read that documentation several times - I cannot believe I missed th= at. Thank you very much. = --_491226ea-e335-449d-bf85-54e2aca6057f_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
>=3B
>=3B See:
&= gt=3B
>=3B http://orgmode.org/manual/Noweb-reference-syntax.html#Nowe= b-reference-syntax
>=3B =3B

I have read that documentation several times -&nb= sp=3BI cannot believe I missed that. Thank you very much.
=
= --_491226ea-e335-449d-bf85-54e2aca6057f_--