emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric Schulte <schulte.eric@gmail.com>
To: Nicolas Goaziou <n.goaziou@gmail.com>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>,
	Nicolas Girard <girard.nicolas@gmail.com>
Subject: Re: [Babel] org-babel-execute-buffer gives different results than org-babel-exp-non-block-elements
Date: Fri, 23 Aug 2013 08:55:59 -0600	[thread overview]
Message-ID: <87fvu0tq0w.fsf@gmail.com> (raw)
In-Reply-To: <87k3jckes7.fsf@gmail.com> (Nicolas Goaziou's message of "Fri, 23 Aug 2013 10:11:20 +0200")

Nicolas Goaziou <n.goaziou@gmail.com> writes:

> Nicolas Girard <girard.nicolas@gmail.com> writes:
>
>>> `org-babel-exp-non-block-elements' and `org-babel-exp-process-buffer'
>>> could probably check if code still exists before trying to remove (and
>>> replace) it.
>>>
>>
>> Yeah, I don't know how much work it would represent but it seems much
>> more appropriate that my hack-ish solution.
>
> It might be tricky to set up. I'm not even sure Babel is meant for these
> cases (where evaluating code removes its source).
>
> Another possibility is to have a "side-effect only" behaviour for export
> where code block is not removed nor replaced. ":exports none" could be
> a candidate for this. Maybe Eric Schulte has an opinion on it.
>

If I understand correctly, I think ":export both :results none" should
have the desired effect of executing the code block, not inserting the
results, and keeping the code block itself in place.

If you want to run emacs lisp at export time but don't want the code or
the results, maybe it would be a more natural fit for a filter function?

-- 
Eric Schulte
https://cs.unm.edu/~eschulte
PGP: 0x614CA05D

  reply	other threads:[~2013-08-23 14:56 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-22 18:23 [Babel] org-babel-execute-buffer gives different results than org-babel-exp-non-block-elements Nicolas Girard
2013-08-22 18:41 ` Nicolas Goaziou
2013-08-22 19:28   ` Nicolas Girard
2013-08-22 20:28     ` Nicolas Girard
2013-08-22 20:33       ` Nicolas Goaziou
2013-08-22 21:01         ` Nicolas Girard
2013-08-22 23:06           ` Nicolas Goaziou
2013-08-22 23:20             ` Nicolas Girard
2013-08-23  8:11               ` Nicolas Goaziou
2013-08-23 14:55                 ` Eric Schulte [this message]
2013-08-26 10:33                   ` 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=87fvu0tq0w.fsf@gmail.com \
    --to=schulte.eric@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=girard.nicolas@gmail.com \
    --cc=n.goaziou@gmail.com \
    /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).