From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer M Krug Subject: Format output of org-babel-tangle for exported file Date: Wed, 03 Sep 2014 15:08:41 +0200 Message-ID: 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]:52625) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XPAJF-0003dy-O4 for emacs-orgmode@gnu.org; Wed, 03 Sep 2014 09:09:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XPAJ8-0007DS-3r for emacs-orgmode@gnu.org; Wed, 03 Sep 2014 09:09:13 -0400 Received: from plane.gmane.org ([80.91.229.3]:58900) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XPAJ7-0007DI-Tq for emacs-orgmode@gnu.org; Wed, 03 Sep 2014 09:09:06 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XPAJ6-0001g1-GW for emacs-orgmode@gnu.org; Wed, 03 Sep 2014 15:09:04 +0200 Received: from arn78-1-88-186-171-7.fbx.proxad.net ([88.186.171.7]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 03 Sep 2014 15:09:04 +0200 Received: from Rainer by arn78-1-88-186-171-7.fbx.proxad.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 03 Sep 2014 15:09:04 +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 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: =2D-8<---------------cut here---------------start------------->8--- #+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 =2D /Users/rainerkrug/Documents/Projects/IFN/ProductivityMixedStands/prodMi= xStands.el =2D /Users/rainerkrug/Documents/Projects/IFN/ProductivityMixedStands/prodMi= xStands.makefile =2D /Users/rainerkrug/Documents/Projects/IFN/ProductivityMixedStands/prodMi= xStands.RDescr =2D ./R/SDI.R =2D ./R/plot.frontier.R =2D ./R/selectPlotsVallet.R =2D ./R/loadIFNstl.R =2D ./R/loadIFNqmd.R =2D ./R/loadIFNcompetition.R =2D ./R/loadIFN.R =2D ./R/initializeAnalysis.R =2D /Users/rainerkrug/Documents/Projects/IFN/ProductivityMixedStands/prodMi= xStands.R #+end_example =2D-8<---------------cut here---------------end--------------->8--- 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) iQEcBAEBAgAGBQJUBxLeAAoJENvXNx4PUvmCq+MIAJ/eHg1n2cIMANzMcRmQU3aU bKoo5aCs06p06kqFYeQ6mojSD0zrSopKykQhJTToMGXKnvPR8o/zaUrpLhASHk7S mc2UZGJxDm4ECYgYmq1CwsDAtDwPp0KqBAP2y8VKM12fUvWStkn8h3ZYZzT/L/Sy CqmHkKYpWUc/SsQJmpOPHNwtKy83OATDDKNmDvDA7/E3RwQ3bBJaZoEQaE+B6Ydc c9RERrxATPjrUkmHry0QGUrBwZFUIRlXk5MuG/hO67U+KmvLBpPFBMfBIdmNcydM bXkOTTuLKNHjmuGY6qnnvmajTpgRMcG1P6cJpofcjcTiuBmHBl3Qd0RzyYLxkiA= =aYy1 -----END PGP SIGNATURE----- --=-=-=--