From: Eric Schulte <eschulte@cs.unm.edu>
To: Carsten Dominik <carsten.dominik@gmail.com>
Cc: Org Mode <emacs-orgmode@gnu.org>, Nicolas Goaziou <n.goaziou@gmail.com>
Subject: Re: Detect if export is running
Date: Sun, 22 Sep 2013 10:57:45 -0600 [thread overview]
Message-ID: <87txhc3iba.fsf@cs.unm.edu> (raw)
In-Reply-To: <CE012247-7273-4EC9-9978-7F28CCE2ED94@gmail.com> (Carsten Dominik's message of "Sun, 22 Sep 2013 14:26:07 +0200")
I've used the org-export-file (or somesuch) variable in the past which
is only set during export.
Carsten Dominik <carsten.dominik@gmail.com> writes:
> 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
>
--
Eric Schulte
https://cs.unm.edu/~eschulte
PGP: 0x614CA05D
next prev parent reply other threads:[~2013-09-22 16:57 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
2013-09-22 15:07 ` Patch: Allow installation of file-local export filters Carsten Dominik
2013-09-22 16:57 ` Eric Schulte [this message]
2013-09-22 17:21 ` Detect if export is running 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=87txhc3iba.fsf@cs.unm.edu \
--to=eschulte@cs.unm.edu \
--cc=carsten.dominik@gmail.com \
--cc=emacs-orgmode@gnu.org \
--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).