From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Detect if export is running Date: Sun, 22 Sep 2013 14:26:07 +0200 Message-ID: References: <87txhd11wy.fsf@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Content-Type: multipart/signed; boundary="Apple-Mail=_774D4591-538D-4B56-BB27-448C2A549D9C"; protocol="application/pgp-signature"; micalg=pgp-sha1 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53858) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VNik2-00010s-6A for emacs-orgmode@gnu.org; Sun, 22 Sep 2013 08:26:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VNijs-0002ty-3F for emacs-orgmode@gnu.org; Sun, 22 Sep 2013 08:26:22 -0400 Received: from mail-ee0-x22f.google.com ([2a00:1450:4013:c00::22f]:63593) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VNijr-0002tl-Rh for emacs-orgmode@gnu.org; Sun, 22 Sep 2013 08:26:12 -0400 Received: by mail-ee0-f47.google.com with SMTP id d49so1139761eek.20 for ; Sun, 22 Sep 2013 05:26:11 -0700 (PDT) In-Reply-To: <87txhd11wy.fsf@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Nicolas Goaziou Cc: Org Mode , Eric Schulte --Apple-Mail=_774D4591-538D-4B56-BB27-448C2A549D9C Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii On 22.9.2013, at 14:22, Nicolas Goaziou wrote: > Hello, > > Carsten Dominik 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 --Apple-Mail=_774D4591-538D-4B56-BB27-448C2A549D9C Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- iQEcBAEBAgAGBQJSPuHfAAoJEO+gg/nAZuwMYkUIAKH7hcVSSS0vN9RCe+8DgNgX /TQZ6Xl7iTZZOQ8Kqv94QQouX3FroMCBoaMVQWpJZo9njA0Pv8n+6oYcpOAgNemX HEytR40eokGYq0LgbFhdh6LPuGuk7Qrentd5S+tW84LRL+qF6tXGvlNf0kbgpa1H QekdjhHvG/9FkS29b6OnqcQ03x5ArD1U9n7Z+zbTXpyy09iGka0rPOQ7NTbea3X7 /7TDBxKaRAZSk4vBL6m5/DW57ompX/MZYd1JlnsZqOFhEUn3VW0d8PZHjCzdFU4w RodVVEVFWjRZCHRE8U1CCPYt3flgOmoSRWuaCv8cBvz8kQD8A00NLEgJPMgUbqg= =wdG1 -----END PGP SIGNATURE----- --Apple-Mail=_774D4591-538D-4B56-BB27-448C2A549D9C--