From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jarmo Hurri Subject: Re: org-babel-execute: being exported Date: Tue, 03 Mar 2015 12:36:03 +0200 Message-ID: <87pp8ql65o.fsf@iki.fi> References: <87vbijykjc.fsf@iki.fi> <871tl7oabq.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46309) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YSkBa-0000Ks-Oq for emacs-orgmode@gnu.org; Tue, 03 Mar 2015 05:36:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YSkBW-0006QQ-El for emacs-orgmode@gnu.org; Tue, 03 Mar 2015 05:36:22 -0500 Received: from plane.gmane.org ([80.91.229.3]:37880) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YSkBW-0006QI-8S for emacs-orgmode@gnu.org; Tue, 03 Mar 2015 05:36:18 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YSkBU-0007EK-P9 for emacs-orgmode@gnu.org; Tue, 03 Mar 2015 11:36:16 +0100 Received: from host-137-163-18-130.edu.hel.fi ([137.163.18.130]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 03 Mar 2015 11:36:16 +0100 Received: from jarmo.hurri by host-137-163-18-130.edu.hel.fi with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 03 Mar 2015 11:36:16 +0100 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: emacs-orgmode@gnu.org Aaron Ecay writes: > Hi Jarmo, > > 2015ko martxoak 2an, Jarmo Hurri-ek idatzi zuen: > > [...] > >> 1. How can I identify, in org-babel-execute:processing, if the code is >> executed for export or for some other reason? > > I think the test (not (null org-babel-exp-reference-buffer)) should thee > you when you’re being called as part of export. Seems to work, thanks! Jarmo