From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Schmitt Subject: Re: tangle on export Date: Thu, 24 Sep 2015 15:33:00 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41986) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zf6e8-0000Iq-OE for emacs-orgmode@gnu.org; Thu, 24 Sep 2015 09:33:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zf6e3-00064k-1Y for emacs-orgmode@gnu.org; Thu, 24 Sep 2015 09:33:12 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:52858) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zf6e2-00064X-QG for emacs-orgmode@gnu.org; Thu, 24 Sep 2015 09:33:06 -0400 In-Reply-To: (Andreas Leha's message of "Thu, 24 Sep 2015 13:14:57 +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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Andreas Leha Cc: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi Andreas, On 2015-09-24 14:14, Andreas Leha writ= es: > if all of this is for a single block, you can get away quite cheaply > with sth along (untested) > > #+begin_src emacs-lisp :results silent > (save-excursion > ;; tangle > (org-babel-goto-named-src-block "hello") > (org-babel-tangle '(4))) > #+end_src > > and make sure this gets executed during export. I=E2=80=99ve tried this and somehow it replaces the whole org file with a version with comments and src block headers removed, and macros expanded. I have no idea why it does this =E2=80=A6 Best, Alan =2D-=20 OpenPGP Key ID : 040D0A3B4ED2E5C7 Athmospheric CO=E2=82=82 (Updated September 22, 2015, Mauna Loa Obs.): 397.= 23 ppm --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBCgAGBQJWA/uMAAoJEAQNCjtO0uXHpI0IAJG8Jy5uEE4xcpY2p4dSwdoL EHU/6UGv4egHHBJ168IIal6tN1UNinF8rGZX4savP61c2nvKpTgvecT2dBdOhkEc c+P6PB7WHBdgbyyWxsv1iLaqOf5/4Dh9Xn+OsFPgX3DIZ6pFqy/pP4MOQN2XXOJa HD13wcpUv7GJlYV0renwzk5129DKq9YVvWTx4zlC5nlpyogGfFx88VdPtag/p9Lt arvZbp5FVnldGtAodYmZy+ZYQDY2dxciYPWH5ofYeSjlkXGI2a0Jyf5SoJqCWeMI dNn2BSRPRv7vV3ASW46esU2kQw5aohVv3aVyASqcY+Aeemu/udG/4OM8eQsQXYs= =pURQ -----END PGP SIGNATURE----- --=-=-=--