[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Babel should not work in the subtree marked as not exported
From: |
John Hendy |
Subject: |
Re: [O] Babel should not work in the subtree marked as not exported |
Date: |
Wed, 12 Mar 2014 10:00:39 -0500 |
> 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
- Re: [O] Babel should not work in the subtree marked as not exported, (continued)
- Re: [O] Babel should not work in the subtree marked as not exported, Eric Schulte, 2014/03/24
- Re: [O] Babel should not work in the subtree marked as not exported, Bastien, 2014/03/24
- Re: [O] Babel should not work in the subtree marked as not exported, Eric Schulte, 2014/03/24
- Re: [O] Babel should not work in the subtree marked as not exported, Samuel Wales, 2014/03/24
- Re: [O] Babel should not work in the subtree marked as not exported, Samuel Wales, 2014/03/24
- Re: [O] Babel should not work in the subtree marked as not exported, Sebastien Vauban, 2014/03/14
Re: [O] Babel should not work in the subtree marked as not exported, Rainer M Krug, 2014/03/11
Re: [O] Babel should not work in the subtree marked as not exported, zwz, 2014/03/12
Re: [O] Babel should not work in the subtree marked as not exported,
John Hendy <=