From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Leha Subject: Re: Babel should not work in the subtree marked as not exported Date: Wed, 12 Mar 2014 23:58:37 +0100 Message-ID: <87ha73dnxe.fsf@med.uni-goettingen.de> References: <87wqg0gawq.fsf@gmail.com> <87lhwgettp.fsf@med.uni-goettingen.de> <87bnxbg02x.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54683) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WNs71-0004hk-OK for emacs-orgmode@gnu.org; Wed, 12 Mar 2014 18:59:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WNs6t-0001Yn-4t for emacs-orgmode@gnu.org; Wed, 12 Mar 2014 18:58:59 -0400 Received: from plane.gmane.org ([80.91.229.3]:44824) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WNs6s-0001Yg-Ug for emacs-orgmode@gnu.org; Wed, 12 Mar 2014 18:58:51 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WNs6r-0001Rk-3w for emacs-orgmode@gnu.org; Wed, 12 Mar 2014 23:58:49 +0100 Received: from vpn-2003.gwdg.de ([134.76.2.3]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 12 Mar 2014 23:58:49 +0100 Received: from andreas.leha by vpn-2003.gwdg.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 12 Mar 2014 23:58:49 +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 Hi zwz, zwz writes: > Ken Mankoff writes: > >> Hi Andreas, >> >> On 2014-03-11 at 09:41, Andreas Leha wrote: >>> Hi Ken, >>> >>> Ken Mankoff writes: >>> >>>> On 2014-03-11 at 08:47, zwz wrote: >>>>> In my setup, there is >>>>> (setq org-export-exclude-tags '("private" "exclude") >>>>> >>>>> and In my test.org: >>>>> >>>>> * test >>>>> >>>>> ** Not exported :exclude: >>>>> #+BEGIN_SRC ditaa :file test.png :cmdline -E >>>>> +--------+---+---+---+---+---+---+---+ +---+---+---+---+---+---+---+---+ >>>>> x | 0 cRED | 0 | 0 | 0 | 0 | 0 | 0 | 0 | | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | >>>>> +--------+---+---+---+---+---+---+---+ +---+---+---+---+---+---+---+---+ >>>>> #+END_SRC >>>>> >>>>> ** blah blah >>>>> blah blah blah >>>>> >>>>> >>>>> When I try to export it to pdf, the test.png is still generated, >>>>> although it is not used for the pdf at all. >>>>> So I think the export procedure may be optimized for more efficiency. >>>> >>>> No, because I often have code and sections I don't want exported, but >>>> I want their side-effects active. For example, code with sessions >>>> where part is not exported, but I need that code run so code >>>> elsewhere, using the same session, is able to run and be exported. >>>> >>>> -k. >>> >>> >>> So what is your suggestion for the OP to achieve what he is after? >>> noexport and noeval at the same time. >>> >> >> I do not have a suggestion. I'm not very familiar with the various >> options, and didn't know noeval exists. That sounds like a good >> solution. The OP suggestion of "may be optimized" is vague, but I took >> it, perhaps incorrectly, to mean "don't run code in noexport >> sections", hence my disagreement. >> >> -k. > > I totally get you. > As I was not aware of the fact that it is session related, I used the > vague phrase. > Now I just want to know how to turn off "session" for some source block. That can be done with ':session none'. - Andreas