From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Stanton Subject: Re: Bug: Setting org-export-use-babel to nil causes exporting to ignore :exports header Date: Thu, 14 Sep 2017 07:42:15 -0700 Message-ID: <11A8D5FD-2103-43B1-9CCD-27EE5A662AA4@haas.berkeley.edu> References: <87wp51l9mg.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 (1.0) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47540) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dsVLR-000728-Gv for emacs-orgmode@gnu.org; Thu, 14 Sep 2017 10:42:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dsVLQ-0003Vd-F9 for emacs-orgmode@gnu.org; Thu, 14 Sep 2017 10:42:21 -0400 Received: from mail-pg0-x229.google.com ([2607:f8b0:400e:c05::229]:49303) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dsVLQ-0003Ua-8R for emacs-orgmode@gnu.org; Thu, 14 Sep 2017 10:42:20 -0400 Received: by mail-pg0-x229.google.com with SMTP id m30so413510pgn.6 for ; Thu, 14 Sep 2017 07:42:18 -0700 (PDT) In-Reply-To: <87wp51l9mg.fsf@nicolasgoaziou.fr> 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: Nicolas Goaziou Cc: emacs-orgmode@gnu.org Thanks, Nicolas. It looks like the default behavior changed at some point bu= t it could have been some while ago... Sent from my iPad > On Sep 14, 2017, at 5:58 AM, Nicolas Goaziou wrot= e: >=20 > Hello, >=20 > Richard Stanton writes: >=20 >> Emacs : GNU Emacs 25.2.1 (x86_64-apple-darwin16.7.0, Carbon Version 157 A= ppKit 1504.83) >> of 2017-08-28 >> Package: Org mode version 9.1 (9.1-20-ga4f139-elpa @ /Users/stanton/.emac= s.d/elpa/org-20170911/) >>=20 >> I typically set org-export-use-babel to nil, to prevent all the code >> cells being executed on export. However, if this variable is set, org >> export both code and results for each cell, regardless of the setting of >> the :exports header option. Withoput this variable being set, exporting >> correctly obeys the :exports directives in the cell headers. >=20 > Here is `org-export-use-babel' docstring: >=20 > Switch controlling code evaluation and header processing during > export. When set to nil no code will be evaluated as part of the > export process and no header arguments will be obeyed. Users who wish > to avoid evaluating code on export should use the header argument > =E2=80=98:eval never-export=E2=80=99. >=20 > So you need to use ":eval never-export", not that variable. >=20 > Regards, >=20 > --=20 > Nicolas Goaziou