emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Berry, Charles" <ccberry@ucsd.edu>
To: Vikas Rawal <vikaslists@agrarianresearch.org>
Cc: org-mode mailing list <emacs-orgmode@gnu.org>,
	Nicolas Goaziou <mail@nicolasgoaziou.fr>
Subject: Re: "header-args :eval inline-only" not working
Date: Sun, 20 Aug 2017 02:43:32 +0000	[thread overview]
Message-ID: <101B0AF0-A5B4-4FE0-B0B7-192B04B99F3D@ucsd.edu> (raw)
In-Reply-To: <7B90B949-C235-4F16-A2E5-4A22EB850DBC@agrarianresearch.org>


> On Aug 19, 2017, at 7:24 PM, Vikas Rawal <vikaslists@agrarianresearch.org> wrote:
> 
> 
>> 
>> There is a bug in the documentation  -- `org-export-babel-evaluate' is obsolete. It should say `org-export-use-babel’.
> 
> I don’t see org-export-use-babel in available options. I cannot customise it.
> 
> '(org-export-use-babel (quote inline-only))
> 
> Seems to have no effect. Is that so because, as you say later, users are not supposed to touch this option?

No.  You must have an older version of org than

commit 3b5ce449c4b16291ad56e23d5be1e480e57d906f
Author: Charles Berry <ccberry@ucsd.edu>
Date:   Sat Nov 12 18:54:20 2016 -0800

    Replace `org-export-babel-evaluate' with `org-export-use-babel'
    
Did you try `C-h v org-export-use-babel RET', click `customize', etc?

> 
>> But that part of the manual is irrelevant to what the `:eval' header does.  There is no `inline-only' value in either the documentation or in the lisp code.  So, `inline-only' acts like `yes' for the reason I stated earlier.
>> 
>> 
>>> With current org, I get this behaviour only if I globally set the option. But that somehow disables ":results”.
>>> 
>> 
>> Right. `:results' is a babel header.  When babel is off, the babel headers are not acted upon.
>> 
>> Setting `org-export-use-babel' to `nil' or `inline-only' turns off babel for src blocks.
>> 
>> 
>> The behavior was purposely changed. With `inline-only' none of the babel operations will be executed for src blocks  -- i.e. the src blocks and existing results (if any) will be exported as is.  
>> 
>> Users should avoid touching `org-export-use-babel' for almost all purposes.  It does not do the equivalent of setting `:eval' globally.
>> 
> 
> 
> I just saw this thread: https://lists.gnu.org/archive/html/emacs-orgmode/2017-02/msg00443.html
> 
> I certainly feel that the current behaviour is a regression. The user should have the possibility of controlling globally or buffer-wide whether the source codes are evaluated at the time of export or not. org-export-use-babel does not do that. It turns off babel completely, exporting codes and existing results as is.
> 

Try

#+PROPERTY: header-args :eval never-export

and don't forget C-c C-c to update when you add this.

> This is clearly a regression as far as my use case is concerned.
> 

It seems like `:eval never-export' set globally handles the uses most folks had for the old behavior, and I think a bug was fixed by Nicolas in changing it, so reverting is probably not going to happen.

Chuck


  reply	other threads:[~2017-08-20  2:43 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-19 16:36 "header-args :eval inline-only" not working Vikas Rawal
2017-08-19 19:27 ` Nicolas Goaziou
2017-08-19 20:36   ` Vikas Rawal
2017-08-19 22:10     ` Berry, Charles
2017-08-20  1:10       ` Vikas Rawal
2017-08-20  2:07         ` Berry, Charles
2017-08-20  2:24           ` Vikas Rawal
2017-08-20  2:43             ` Berry, Charles [this message]
2017-08-20  3:26               ` Vikas Rawal
2017-08-20 10:21                 ` Nicolas Goaziou
2017-08-20 12:41                   ` Vikas Rawal
2017-08-20 16:51                   ` Berry, Charles
2017-08-26  8:34                     ` Nicolas Goaziou

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=101B0AF0-A5B4-4FE0-B0B7-192B04B99F3D@ucsd.edu \
    --to=ccberry@ucsd.edu \
    --cc=emacs-orgmode@gnu.org \
    --cc=mail@nicolasgoaziou.fr \
    --cc=vikaslists@agrarianresearch.org \
    /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).