From: Carsten Dominik <carsten.dominik@gmail.com>
To: Nicolas Goaziou <n.goaziou@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:26:07 +0200 [thread overview]
Message-ID: <CE012247-7273-4EC9-9978-7F28CCE2ED94@gmail.com> (raw)
In-Reply-To: <87txhd11wy.fsf@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 978 bytes --]
On 22.9.2013, at 14:22, Nicolas Goaziou <n.goaziou@gmail.com> wrote:
> 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.
This is exactly the point. I want to be able to create local variables
and change filter lists during export, while interactive evaluation should
not create local variables in the Org mode buffer. I do not plan to
advertise this flag, but to use it in one very specific function.
Regards
- Carsten
>
>
> Regards,
>
> --
> Nicolas Goaziou
[-- Attachment #2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 455 bytes --]
next prev parent reply other threads:[~2013-09-22 12:26 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
2013-09-22 12:26 ` Carsten Dominik [this message]
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=CE012247-7273-4EC9-9978-7F28CCE2ED94@gmail.com \
--to=carsten.dominik@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=eschulte@cs.unm.edu \
--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).