From mboxrd@z Thu Jan 1 00:00:00 1970 From: Martin =?ISO-8859-1?Q?G=FCrtler?= Subject: Re: src blocks: code is /always/ exported Date: Thu, 29 Dec 2016 19:45:50 +0100 Message-ID: <3083091.RUdT2yByqR@bombus> References: Mime-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart7440468.KbFj10SYXa"; micalg="pgp-sha256"; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54073) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cMfiY-0002B1-V0 for emacs-orgmode@gnu.org; Thu, 29 Dec 2016 13:46:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cMfiV-0002Ip-Pi for emacs-orgmode@gnu.org; Thu, 29 Dec 2016 13:46:23 -0500 Received: from mout.gmx.net ([212.227.15.19]:50364) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cMfiV-0002GR-E9 for emacs-orgmode@gnu.org; Thu, 29 Dec 2016 13:46:19 -0500 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" To: "Charles C. Berry" Cc: emacs-orgmode@gnu.org --nextPart7440468.KbFj10SYXa Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" Am Donnerstag, 29. Dezember 2016, 09:07:40 CET schrieb Charles C. Berry: > On Thu, 29 Dec 2016, "Martin G=FCrtler" wrote: > > Dear list, > > I am exporting the following org mode file: > > ----8<-------------------- > > * doc > > #+BEGIN_SRC shell :exports none > > ls |wc > > #+END_SRC > >=20 > > #+RESULTS: > > : 20 20 199 > >=20 > > ----8<-------------------- I'd expect org mode to honour the > > :exports none header argument and create a document that contains > > only the result. However, the exported document contains both, code > > and results. This seems to be independent of the type of SRC and > > independent of the export type (I tried dot and shell for odt, latex > > and beamer exports). How can I get rid of the src code in the > > exported document? >=20 > What does C-h v org-export-use-babel RET say? >=20 > If the result is not `t' that is the problem, and somewhere in your setup > you have set that variable (or its predecessor org-export-babel-evaluate) > to nil or something other than `t'. That was indeed the culprit. I had switched it off to speed up export. After setting that to t again it works (of course). Drawbacks are, that I need to confirm the evaluation in each export (I am a bit hesitant to generally accepting src block evaluation), and evaluation takes time. I do not really need src block evaluation during export. I only need to evaluate (manually) when I changed the graphics src, what I am doing anyway to check the changed image. But how would I control the (not-)inclusion of the src code during export in that case? Thanks, Martin --nextPart7440468.KbFj10SYXa Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEEqtklbEgX6LLFRqEHKKc62Q3OCnQFAlhlWd4ACgkQKKc62Q3O CnSYJAgAilqu2FTj+CU51V7hE1uJ6ZUxsihhqAYi0MV4eKDBHgA41sCEfpTuroiW 3mD0m3kEOL8fgz/b1Qo4nl23L3d+pbHp2lkDSTCic2KZQ1X6g9vuOPDL0bxHpcwW X8h+d83d20aq02kxlknkI98v0fz52O7vMkmW8MxToftLpYJihKUesTRFguTTG3dq j6CmoDH3ZRaUBElZpoA1Fg480Q9OG50HbAT6ghGCyhkZrqec++8DQfbFZJdsbRwt Wi9aOQat0Kd2w35pw13p95dCyfw9hLRskYoD8HNzlM3wmMty5tMpBkFXjEsK4ivJ 9l1jQfcZCgOBB84d5gnTtnxyfdRx4Q== =eDeo -----END PGP SIGNATURE----- --nextPart7440468.KbFj10SYXa--