emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <n.goaziou@gmail.com>
To: Carsten Dominik <carsten.dominik@gmail.com>
Cc: Org Mode <emacs-orgmode@gnu.org>, Eric Schulte <eschulte@cs.unm.edu>
Subject: Re: Detect if export is running
Date: Sun, 22 Sep 2013 14:22:37 +0200	[thread overview]
Message-ID: <87txhd11wy.fsf@gmail.com> (raw)
In-Reply-To: <ACBF21A1-1F76-46BE-B0CD-9191AFF28024@gmail.com> (Carsten Dominik's message of "Sun, 22 Sep 2013 14:08:27 +0200")

Hello,

Carsten Dominik <carsten.dominik@gmail.com> writes:

> I am trying to write a function that will only run if it is called
> during the evaluation of babel code during export, so basically during
> `org-export-execute-babel code'. Do you know if there is a way to
> detect that this is the case,

There isn't.

> or should I introduce a flag that is set by
> `org-export-execute-babel-code'?

This may be dangerous. Introducing such a flag means that Babel results
may be different when exporting and when evaluating a block.


Regards,

-- 
Nicolas Goaziou

  reply	other threads:[~2013-09-22 12:22 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-22 12:08 Detect if export is running Carsten Dominik
2013-09-22 12:22 ` Nicolas Goaziou [this message]
2013-09-22 12:26   ` Carsten Dominik
2013-09-22 15:07     ` Patch: Allow installation of file-local export filters Carsten Dominik
2013-09-22 16:57     ` Detect if export is running Eric Schulte
2013-09-22 17:21       ` Carsten Dominik

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=87txhd11wy.fsf@gmail.com \
    --to=n.goaziou@gmail.com \
    --cc=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=eschulte@cs.unm.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).