[O] Detect if export is running

2013-09-22 Thread Carsten Dominik
Hi Eric, hi Nicolas, 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, or should I introduce a flag that is set

Re: [O] Detect if export is running

2013-09-22 Thread Nicolas Goaziou
Hello, Carsten Dominik carsten.domi...@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,

Re: [O] Detect if export is running

2013-09-22 Thread Carsten Dominik
On 22.9.2013, at 14:22, Nicolas Goaziou n.goaz...@gmail.com wrote: Hello, Carsten Dominik carsten.domi...@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

Re: [O] Detect if export is running

2013-09-22 Thread Eric Schulte
I've used the org-export-file (or somesuch) variable in the past which is only set during export. Carsten Dominik carsten.domi...@gmail.com writes: On 22.9.2013, at 14:22, Nicolas Goaziou n.goaz...@gmail.com wrote: Hello, Carsten Dominik carsten.domi...@gmail.com writes: I am trying to

Re: [O] Detect if export is running

2013-09-22 Thread Carsten Dominik
On 22.9.2013, at 18:57, Eric Schulte eschu...@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.domi...@gmail.com writes: On 22.9.2013, at