From mboxrd@z Thu Jan 1 00:00:00 1970 From: zwz Subject: Re: Babel should not work in the subtree marked as not exported Date: Fri, 14 Mar 2014 21:02:11 +0800 Message-ID: <87y50dvsq4.fsf@gmail.com> References: <87wqg0gawq.fsf@gmail.com> <87lhwgettp.fsf@med.uni-goettingen.de> <87bnxbg02x.fsf@gmail.com> <87ha73dnxe.fsf@med.uni-goettingen.de> <87zjku41nq.fsf@gmail.com> <878usdemuv.fsf@med.uni-goettingen.de> <87eh25d22d.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35767) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WOS8g-0003hc-PP for emacs-orgmode@gnu.org; Fri, 14 Mar 2014 09:27:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WOS8Z-0002Ak-4V for emacs-orgmode@gnu.org; Fri, 14 Mar 2014 09:27:06 -0400 Received: from plane.gmane.org ([80.91.229.3]:37861) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WOS8Y-0002AO-U9 for emacs-orgmode@gnu.org; Fri, 14 Mar 2014 09:26:59 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WOS8Y-0003dc-56 for emacs-orgmode@gnu.org; Fri, 14 Mar 2014 14:26:58 +0100 Received: from 115.236.9.82 ([115.236.9.82]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 14 Mar 2014 14:26:58 +0100 Received: from zhangweize by 115.236.9.82 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 14 Mar 2014 14:26:58 +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 Samuel Wales writes: > how about call lines? > > to me, they should not run if they are not supposed to be exported. > > is this a bug? > > ********* babel should not export a call line via todo kw > *********** NEXT to reproduce > set org-export-with-tasks to nil > *********** NEXT this should not run > #+call: hi(a=2) > *********** hi > #+name: hi > #+begin_src sh :var a=1 > echo hi $a > #+end_src Maybe this is a simple and clear way: noexport means no export and no code running, either. While if you want to get the code run, just call it somewhere explicitly. What do you think?