emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Richard Stanton <stanton@haas.berkeley.edu>
Cc: emacs-orgmode@gnu.org
Subject: Re: Bug: Setting org-export-use-babel to nil causes exporting to ignore :exports header
Date: Thu, 14 Sep 2017 14:58:47 +0200	[thread overview]
Message-ID: <87wp51l9mg.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <m2tw06xltd.fsf@mortgage.haas.berkeley.edu> (Richard Stanton's message of "Wed, 13 Sep 2017 15:42:22 -0700")

Hello,

Richard Stanton <stanton@haas.berkeley.edu> writes:

> Emacs  : GNU Emacs 25.2.1 (x86_64-apple-darwin16.7.0, Carbon Version 157 AppKit 1504.83)
>  of 2017-08-28
> Package: Org mode version 9.1 (9.1-20-ga4f139-elpa @ /Users/stanton/.emacs.d/elpa/org-20170911/)
>
> 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.

Here is `org-export-use-babel' docstring:

  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
  ‘:eval never-export’.

So you need to use ":eval never-export", not that variable.

Regards,

-- 
Nicolas Goaziou

  reply	other threads:[~2017-09-14 12:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-13 22:42 Bug: Setting org-export-use-babel to nil causes exporting to ignore :exports header Richard Stanton
2017-09-14 12:58 ` Nicolas Goaziou [this message]
2017-09-14 14:42   ` Richard Stanton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87wp51l9mg.fsf@nicolasgoaziou.fr \
    --to=mail@nicolasgoaziou.fr \
    --cc=emacs-orgmode@gnu.org \
    --cc=stanton@haas.berkeley.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).