Re: [O] Bug: Setting org-export-use-babel to nil causes exporting to ignore :exports header

2017-09-14 Thread Richard Stanton
Thanks, Nicolas. It looks like the default behavior changed at some point but 
it could have been some while ago...

Sent from my iPad

> On Sep 14, 2017, at 5:58 AM, Nicolas Goaziou  wrote:
> 
> Hello,
> 
> Richard Stanton  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



Re: [O] Bug: Setting org-export-use-babel to nil causes exporting to ignore :exports header

2017-09-14 Thread Nicolas Goaziou
Hello,

Richard Stanton  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



[O] Bug: Setting org-export-use-babel to nil causes exporting to ignore :exports header

2017-09-13 Thread Richard Stanton

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.

Richard Stanton