From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer M Krug Subject: Re: Format output of org-babel-tangle for exported file Date: Wed, 03 Sep 2014 15:30:47 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57999) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XPAeK-0005nH-V6 for emacs-orgmode@gnu.org; Wed, 03 Sep 2014 09:31:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XPAeF-0006gH-4O for emacs-orgmode@gnu.org; Wed, 03 Sep 2014 09:31:00 -0400 Received: from mail-wg0-f47.google.com ([74.125.82.47]:64275) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XPAeE-0006gB-R9 for emacs-orgmode@gnu.org; Wed, 03 Sep 2014 09:30:55 -0400 Received: by mail-wg0-f47.google.com with SMTP id z12so8367871wgg.18 for ; Wed, 03 Sep 2014 06:30:54 -0700 (PDT) Received: from Rainers-MacBook-Pro-3.local (arn78-1-88-186-171-7.fbx.proxad.net. [88.186.171.7]) by mx.google.com with ESMTPSA id z5sm4780240wib.20.2014.09.03.06.30.52 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 03 Sep 2014 06:30:53 -0700 (PDT) In-Reply-To: (Rainer M. Krug's message of "Wed, 03 Sep 2014 15:08:41 +0200") 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 --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Some further information, as I just realized that it is not working: In the message buffer I get the following output: ,---- | executing Emacs-Lisp code block... | Saving file /Users/rainerkrug/Documents/Projects/IFN/ProductivityMixedSta= nds/prodMixStands.org... | Wrote /Users/rainerkrug/Documents/Projects/IFN/ProductivityMixedStands/pr= odMixStands.org | Wrote /Users/rainerkrug/Documents/Projects/IFN/ProductivityMixedStands/pr= odMixStands.R [7 times] | Wrote /Users/rainerkrug/Documents/Projects/IFN/ProductivityMixedStands/R/= initializeAnalysis.R [8 times] | Wrote /Users/rainerkrug/Documents/Projects/IFN/ProductivityMixedStands/R/= loadIFN.R | Wrote /Users/rainerkrug/Documents/Projects/IFN/ProductivityMixedStands/R/= loadIFNcompetition.R | Wrote /Users/rainerkrug/Documents/Projects/IFN/ProductivityMixedStands/R/= loadIFNqmd.R | Wrote /Users/rainerkrug/Documents/Projects/IFN/ProductivityMixedStands/R/= loadIFNstl.R | Wrote /Users/rainerkrug/Documents/Projects/IFN/ProductivityMixedStands/R/= selectPlotsVallet.R | Wrote /Users/rainerkrug/Documents/Projects/IFN/ProductivityMixedStands/R/= plot.frontier.R | Wrote /Users/rainerkrug/Documents/Projects/IFN/ProductivityMixedStands/R/= SDI.R | Wrote /Users/rainerkrug/Documents/Projects/IFN/ProductivityMixedStands/pr= odMixStands.R [11 times] | Wrote /Users/rainerkrug/Documents/Projects/IFN/ProductivityMixedStands/pr= odMixStands.RDescr | Wrote /Users/rainerkrug/Documents/Projects/IFN/ProductivityMixedStands/pr= odMixStands.makefile [7 times] | Wrote /Users/rainerkrug/Documents/Projects/IFN/ProductivityMixedStands/pr= odMixStands.el [7 times] | Tangled 48 code blocks from prodMixStands.org | Wrote /Users/rainerkrug/Documents/Projects/IFN/ProductivityMixedStands/pr= odMixStands.RDescr | Wrote /Users/rainerkrug/Documents/Projects/IFN/ProductivityMixedStands/R/= SDI.R | Wrote /Users/rainerkrug/Documents/Projects/IFN/ProductivityMixedStands/R/= plot.frontier.R | Wrote /Users/rainerkrug/Documents/Projects/IFN/ProductivityMixedStands/R/= selectPlotsVallet.R | Wrote /Users/rainerkrug/Documents/Projects/IFN/ProductivityMixedStands/R/= loadIFNstl.R | Wrote /Users/rainerkrug/Documents/Projects/IFN/ProductivityMixedStands/R/= loadIFNqmd.R | Wrote /Users/rainerkrug/Documents/Projects/IFN/ProductivityMixedStands/R/= loadIFNcompetition.R | Wrote /Users/rainerkrug/Documents/Projects/IFN/ProductivityMixedStands/R/= loadIFN.R | Wrote /Users/rainerkrug/Documents/Projects/IFN/ProductivityMixedStands/R/= initializeAnalysis.R | Wrote /Users/rainerkrug/Documents/Projects/IFN/ProductivityMixedStands/pr= odMixStands.R | Code block evaluation complete. `---- So not all files tangled are passed on in the script (I assume because of the length?). In addition, not all files resulting from the tangling are in the message buffer (I am tangling a ./DESCRIPTION file as well). How can I get all names resulting from the tangling in the results block of the code block? Rainer Rainer M Krug writes: > Hi > > I am calling (org-bable-tangle) in a code block in an org file and I > would show the files resulting from the tangling in a nice format. > > But I do not manage. I have the following at the moment: > > #+begin_src emacs-lisp=20 > (replace-regexp-in-string "[)\"]" "" > (replace-regexp-in-string "[(]" "- " > (replace-regexp-in-string " " "\n- " > (prin1-to-string (org-babel-tangle))))) > #+end_src > > #+RESULTS: > #+begin_example > - /Users/rainerkrug/Documents/Projects/IFN/ProductivityMixedStands/prodMi= xStands.el > - /Users/rainerkrug/Documents/Projects/IFN/ProductivityMixedStands/prodMi= xStands.makefile > - /Users/rainerkrug/Documents/Projects/IFN/ProductivityMixedStands/prodMi= xStands.RDescr > - ./R/SDI.R > - ./R/plot.frontier.R > - ./R/selectPlotsVallet.R > - ./R/loadIFNstl.R > - ./R/loadIFNqmd.R > - ./R/loadIFNcompetition.R > - ./R/loadIFN.R > - ./R/initializeAnalysis.R > - /Users/rainerkrug/Documents/Projects/IFN/ProductivityMixedStands/prodMi= xStands.R > #+end_example > > Which is neither elegant nor short, and I am sure I could do this > easier. Any suggestions? > > Rainer =2D-=20 Rainer M. Krug email: Rainerkrugsde PGP: 0x0F52F982 --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.22 (Darwin) iQEcBAEBAgAGBQJUBxgLAAoJENvXNx4PUvmChQUIAPBXgqT3U2U55kk9ZL+YKk3C 2uXQHLRiIMGWossxqlNoyamcPxbxRN9iFoI5V35898rrl6BYhPoQeeYdzJCTE4pm cX43s37vUaBlzhbUlsuwiVtPu+Lx6kaXxOwxcjdyZ8zdmCtmmR+zmqgj1RvlHDpH P8UzXPuvqJNm7Yg5JZOnF9ddoPap9bKobeDojwxHevFETRIB469MV5kIRPyDIxV/ VQfUznmqTTDQe5KGP0oog3wvjw4qF4D1LB7HJDld7fXSZ0ubrADuJWr1hgi1JbBR hdtSYZWvIa8ujOeAkbGrHPmia8ehhmC1Kwu9YnkCEoxDcwEOpP6mceA7XvSg/7w= =O5ca -----END PGP SIGNATURE----- --=-=-=--