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 19:21:34 +0200 Message-ID: References: <87txhd11wy.fsf@gmail.com> <87txhc3iba.fsf@cs.unm.edu> Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Content-Type: multipart/signed; boundary="Apple-Mail=_2B9485E2-4F14-435B-AAE5-4730D7342E57"; protocol="application/pgp-signature"; micalg=pgp-sha1 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33991) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VNnLy-0005Km-4M for emacs-orgmode@gnu.org; Sun, 22 Sep 2013 13:21:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VNnLs-000250-RI for emacs-orgmode@gnu.org; Sun, 22 Sep 2013 13:21:49 -0400 Received: from mail-ee0-x22a.google.com ([2a00:1450:4013:c00::22a]:52859) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VNnLs-00024r-JI for emacs-orgmode@gnu.org; Sun, 22 Sep 2013 13:21:44 -0400 Received: by mail-ee0-f42.google.com with SMTP id b45so1255852eek.29 for ; Sun, 22 Sep 2013 10:21:43 -0700 (PDT) In-Reply-To: <87txhc3iba.fsf@cs.unm.edu> 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: Eric Schulte Cc: Org Mode , Nicolas Goaziou --Apple-Mail=_2B9485E2-4F14-435B-AAE5-4730D7342E57 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii On 22.9.2013, at 18:57, Eric Schulte 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 writes: > >> 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 >> > > -- > Eric Schulte > https://cs.unm.edu/~eschulte > PGP: 0x614CA05D --Apple-Mail=_2B9485E2-4F14-435B-AAE5-4730D7342E57 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----- iQEcBAEBAgAGBQJSPyceAAoJEO+gg/nAZuwM5PIH/0QcAeOQMU0Pwap3G+se6tPj xJgLW5Bb8Xm2JKujnntc2H2pwByTY3hC0duvoPxPJzXO3bYWth5QbgpvsQCCb4aA 34PmepAS9OxxXx6MTS6D0pd0moFJnPK5EcrX7BknEtB/zVOtNGrlyHmHuDwqS/fW m0u3bQpCuymMMFH2LImkVIQShyVUZW6W4DS/XYZav/wkdFeZesjO7dm3Ksa3fs1j E7HOx57cc5YuuEQLmuHQCtv1xDIt0aN3DEheQ1+a1t+0pviANnFqwgHmqxjFojXY 7yhNrYY48QYNObLnBldqMYz2mPwLvzn6N7ynnVXbSSGbx7b7YaB3vQ4cKpEbl1M= =SQrV -----END PGP SIGNATURE----- --Apple-Mail=_2B9485E2-4F14-435B-AAE5-4730D7342E57--