From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Detect if export is running Date: Sun, 22 Sep 2013 14:22:37 +0200 Message-ID: <87txhd11wy.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53296) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VNigJ-0008Pz-6Z for emacs-orgmode@gnu.org; Sun, 22 Sep 2013 08:22:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VNigA-0001z5-QU for emacs-orgmode@gnu.org; Sun, 22 Sep 2013 08:22:31 -0400 Received: from mail-we0-x22d.google.com ([2a00:1450:400c:c03::22d]:48777) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VNigA-0001yx-K6 for emacs-orgmode@gnu.org; Sun, 22 Sep 2013 08:22:22 -0400 Received: by mail-we0-f173.google.com with SMTP id w62so2070923wes.18 for ; Sun, 22 Sep 2013 05:22:21 -0700 (PDT) In-Reply-To: (Carsten Dominik's message of "Sun, 22 Sep 2013 14:08:27 +0200") 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: Carsten Dominik Cc: Org Mode , Eric Schulte 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. Regards, -- Nicolas Goaziou