From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: Babel should not work in the subtree marked as not exported Date: Wed, 12 Mar 2014 10:00:39 -0500 Message-ID: References: <87wqg0gawq.fsf@gmail.com> <877g7zfzna.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55294) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WNkeA-0007ko-43 for emacs-orgmode@gnu.org; Wed, 12 Mar 2014 11:00:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WNke8-0004yp-KQ for emacs-orgmode@gnu.org; Wed, 12 Mar 2014 11:00:42 -0400 Received: from mail-ob0-x22f.google.com ([2607:f8b0:4003:c01::22f]:51371) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WNke8-0004yj-BR for emacs-orgmode@gnu.org; Wed, 12 Mar 2014 11:00:40 -0400 Received: by mail-ob0-f175.google.com with SMTP id uy5so10131997obc.34 for ; Wed, 12 Mar 2014 08:00:39 -0700 (PDT) In-Reply-To: <877g7zfzna.fsf@gmail.com> 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: zwz Cc: emacs-orgmode > In my example, I did not set the header argument session, and variable > org-babel-default-header-args has the value: > (:results . "replace") > (:exports . "code") > (:cache . "no") > (:noweb . "no") > (:hlines . "no") > (:tangle . "no")) > However, the block still runs. I wanted to try and reproduce this, as I thought I had the *opposite* issue previously. I was correct, granted it was on Org < 8.0: - http://lists.gnu.org/archive/html/emacs-orgmode/2012-10/msg00762.html Code in :noexport: sections was not running, and I wanted to know how I could get it to run (and I even had a :session argument). I took a stab at your document with R and can't reproduce (behavior is the same as in my post above). /However/, I get the same with you using ditaa, even with no :session argument. Test file: * Trying with R Uses no =:session= argument; =R-yes.png= should be be created and =R-no.png= should not. ** Don't run this :noexport: #+header: :file ./R-no.png :height 200 #+begin_src R :results output graphics x <- 1:10 y <- x^2 plot(x,y) #+end_src ** Run this #+header: :file ./R-yes.png :height 200 #+begin_src R :results output graphics :exports results x <- 1:10 y <- x^2 plot(x,y) #+end_src * Trying with ditaa Uses no =:session= argument; =ditaa-yes.png= should be be created and =ditaa-no.png= should not. ** Don't run this :noexport: #+BEGIN_SRC ditaa :file ./ditaa-no.png :cmdline -E +--------+---+---+---+---+---+---+---+ +---+---+---+---+---+---+---+---+ x | 0 cRED | 0 | 0 | 0 | 0 | 0 | 0 | 0 | | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | +--------+---+---+---+---+---+---+---+ +---+---+---+---+---+---+---+---+ #+END_SRC ** Run this #+BEGIN_SRC ditaa :file ditaa-yes.png :cmdline -E +--------+---+---+---+---+---+---+---+ +---+---+---+---+---+---+---+---+ x | 0 cRED | 0 | 0 | 0 | 0 | 0 | 0 | 0 | | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | +--------+---+---+---+---+---+---+---+ +---+---+---+---+---+---+---+---+ #+END_SRC And here's my minimal config: ;; change accordingly (add-to-list 'load-path "~/.elisp/org.git/lisp/") (add-to-list 'load-path "~/.elisp/org.git/contrib/lisp") (add-to-list 'load-path "~/.elisp/site-lisp/ess/lisp/") (require 'ox-latex) (org-babel-do-load-languages 'org-babel-load-languages '((R . t) (ditaa . t))) So, I can reproduce, but the behavior is not the same with R. My directory ends up with R-yes.png, and both ditaa-no.png *and* ditaa-yes.png. Is there a way to track down the source of the difference? John