emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <carsten.dominik@gmail.com>
To: Eric Schulte <eschulte@cs.unm.edu>
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 19:21:34 +0200	[thread overview]
Message-ID: <D1E63440-D009-4A7C-94D5-930C9232D973@gmail.com> (raw)
In-Reply-To: <87txhc3iba.fsf@cs.unm.edu>

[-- Attachment #1: Type: text/plain, Size: 1415 bytes --]


On 22.9.2013, at 18:57, Eric Schulte <eschulte@cs.unm.edu> wrote:

> I've used the org-export-file (or somesuch) variable in the past which
> is only set during export.

Ah, OK, an even simpler way.  Thank you!

- Carsten

> 
> 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


[-- Attachment #2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 455 bytes --]

      reply	other threads:[~2013-09-22 17:21 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     ` Detect if export is running Eric Schulte
2013-09-22 17:21       ` Carsten Dominik [this message]

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=D1E63440-D009-4A7C-94D5-930C9232D973@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).