Re: [O] Babel should not work in the subtree marked as not exported

2014-03-24 Thread Nicolas Goaziou
Hello, Eric Schulte schulte.e...@gmail.com writes: Nicolas Goaziou n.goaz...@gmail.com writes: As a side note, I think `org-babel-under-commented-heading-p' is useful enough (with an optional parameter to prevent inheritance, maybe) to be moved into org.el. I agree. Here is the patch.

Re: [O] Babel should not work in the subtree marked as not exported

2014-03-24 Thread Eric Schulte
Nicolas Goaziou n.goaz...@gmail.com writes: Hello, Eric Schulte schulte.e...@gmail.com writes: Nicolas Goaziou n.goaz...@gmail.com writes: As a side note, I think `org-babel-under-commented-heading-p' is useful enough (with an optional parameter to prevent inheritance, maybe) to be moved

Re: [O] Babel should not work in the subtree marked as not exported

2014-03-24 Thread Bastien
Hi Nicolas and Eric, Eric Schulte schulte.e...@gmail.com writes: Looks good to me, I'll leave to Bastien since it touches core Org-mode functionality and not just Babel. Looks good to me, please apply, -- Bastien

Re: [O] Babel should not work in the subtree marked as not exported

2014-03-24 Thread Eric Schulte
Bastien b...@gnu.org writes: Hi Nicolas and Eric, Eric Schulte schulte.e...@gmail.com writes: Looks good to me, I'll leave to Bastien since it touches core Org-mode functionality and not just Babel. Looks good to me, please apply, Applied. -- Eric Schulte https://cs.unm.edu/~eschulte

Re: [O] Babel should not work in the subtree marked as not exported

2014-03-24 Thread Samuel Wales
now that everybody is happy, agreeing, and singing in a circle holding hands, i thought i'd stir the pot. :] i hope i don't get wicked glares. :] there are a few unresolved questions. there is also something that, for my workflow at least, is a bug. i set org-export-with-tasks to nil,

Re: [O] Babel should not work in the subtree marked as not exported

2014-03-24 Thread Samuel Wales
note: this is not a high priority for me, but it seems like a bug, it can result in surprising behavior for new users, and it helps clarify this thread, so it seemed worth posting. the ecm is in this thread.

Re: [O] Babel should not work in the subtree marked as not exported

2014-03-17 Thread Andreas Leha
Hi Nicolas and Eric, Eric Schulte schulte.e...@gmail.com writes: Nicolas Goaziou n.goaz...@gmail.com writes: Hello, Eric Schulte schulte.e...@gmail.com writes: This sounds like a good compromise to me. As you say, this should easily and visually support both use cases and is intuitive.

Re: [O] Babel should not work in the subtree marked as not exported

2014-03-15 Thread zwz
Eric Schulte schulte.e...@gmail.com writes: Sorry for being unclear here. I wanted to propose different behaviour for TAGs (lets say :noexport:) and the COMMENT keyword. I am perfectly fine with :noexport: only prohibiting export but still allowing evaluation. But I propose that COMMENT be

Re: [O] Babel should not work in the subtree marked as not exported

2014-03-15 Thread Nicolas Goaziou
Hello, Eric Schulte schulte.e...@gmail.com writes: This sounds like a good compromise to me. As you say, this should easily and visually support both use cases and is intuitive. I've not touched the export machinery myself, so I'll leave the implementation to Nicolas but I definitely

Re: [O] Babel should not work in the subtree marked as not exported

2014-03-15 Thread Eric Schulte
Nicolas Goaziou n.goaz...@gmail.com writes: Hello, Eric Schulte schulte.e...@gmail.com writes: This sounds like a good compromise to me. As you say, this should easily and visually support both use cases and is intuitive. I've not touched the export machinery myself, so I'll leave the

Re: [O] Babel should not work in the subtree marked as not exported

2014-03-14 Thread Sebastien Vauban
Andreas Leha wrote: Just to confirm. This is what you suggest, correct? * test ** Not exported :noexport: :PROPERTIES: :noeval: yes :export: none :END: Maybe it's not a real problem, but quotes are for sure not

Re: [O] Babel should not work in the subtree marked as not exported

2014-03-14 Thread Andreas Leha
Hi Eric, Eric Schulte schulte.e...@gmail.com writes: Andreas Leha andreas.l...@med.uni-goettingen.de writes: Hi Eric, Eric Schulte schulte.e...@gmail.com writes: So what is your suggestion for the OP to achieve what he is after? noexport and noeval at the same time. I'm jumping in

Re: [O] Babel should not work in the subtree marked as not exported

2014-03-14 Thread Sebastien Vauban
Samuel Wales wrote: No. This has been raised previously and there was a consensus that it is often desirable for code in a COMMENT section to be evaluated on export. Personally I often stuff code blocks into COMMENT sections which I want run as part of my publishing process (e.g., to create

Re: [O] Babel should not work in the subtree marked as not exported

2014-03-14 Thread zwz
Samuel Wales samolog...@gmail.com 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

Re: [O] Babel should not work in the subtree marked as not exported

2014-03-14 Thread Samuel Wales
please consider this a bug report. On 3/13/14, Samuel Wales samolog...@gmail.com wrote: 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

Re: [O] Babel should not work in the subtree marked as not exported

2014-03-14 Thread Eric Schulte
Sorry for being unclear here. I wanted to propose different behaviour for TAGs (lets say :noexport:) and the COMMENT keyword. I am perfectly fine with :noexport: only prohibiting export but still allowing evaluation. But I propose that COMMENT be more treated like a comment, so more like a

Re: [O] Babel should not work in the subtree marked as not exported

2014-03-13 Thread Eric Schulte
So what is your suggestion for the OP to achieve what he is after? noexport and noeval at the same time. I'm jumping in half way through here, but wouldn't setting the :noeval property to yes and :export property to none on the subtree work? One may also want to COMMENT the subtree to

Re: [O] Babel should not work in the subtree marked as not exported

2014-03-13 Thread Andreas Leha
Hi Eric, Eric Schulte schulte.e...@gmail.com writes: So what is your suggestion for the OP to achieve what he is after? noexport and noeval at the same time. I'm jumping in half way through here, Thanks for jumping in. but wouldn't setting the :noeval property to yes and :export

Re: [O] Babel should not work in the subtree marked as not exported

2014-03-13 Thread John Hendy
On Mar 13, 2014 5:49 PM, Andreas Leha andreas.l...@med.uni-goettingen.de wrote: Hi Eric, Eric Schulte schulte.e...@gmail.com writes: So what is your suggestion for the OP to achieve what he is after? noexport and noeval at the same time. I'm jumping in half way through here,

Re: [O] Babel should not work in the subtree marked as not exported

2014-03-13 Thread Eric Schulte
Andreas Leha andreas.l...@med.uni-goettingen.de writes: Hi Eric, Eric Schulte schulte.e...@gmail.com writes: So what is your suggestion for the OP to achieve what he is after? noexport and noeval at the same time. I'm jumping in half way through here, Thanks for jumping in. but

Re: [O] Babel should not work in the subtree marked as not exported

2014-03-13 Thread Samuel Wales
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

Re: [O] Babel should not work in the subtree marked as not exported

2014-03-13 Thread Samuel Wales
No. This has been raised previously and there was a consensus that it is often desirable for code in a COMMENT section to be evaluated on export. Personally I often stuff code blocks into COMMENT sections which I want run as part of my publishing process (e.g., to create resources used in

Re: [O] Babel should not work in the subtree marked as not exported

2014-03-12 Thread Sebastien Vauban
Rainer M Krug wrote: Ken Mankoff mank...@gmail.com 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

Re: [O] Babel should not work in the subtree marked as not exported

2014-03-12 Thread zwz
Sebastien Vauban sva-n...@mygooglest.com writes: Rainer M Krug wrote: Ken Mankoff mank...@gmail.com 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:

Re: [O] Babel should not work in the subtree marked as not exported

2014-03-12 Thread zwz
Ken Mankoff mank...@gmail.com writes: Hi Andreas, On 2014-03-11 at 09:41, Andreas Leha wrote: Hi Ken, Ken Mankoff mank...@gmail.com 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

Re: [O] Babel should not work in the subtree marked as not exported

2014-03-12 Thread zwz
Rainer M Krug rai...@krugs.de writes: Ken Mankoff mank...@gmail.com 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

Re: [O] Babel should not work in the subtree marked as not exported

2014-03-12 Thread John Hendy
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,

Re: [O] Babel should not work in the subtree marked as not exported

2014-03-12 Thread Andreas Leha
Hi zwz, zwz zhangwe...@gmail.com writes: Ken Mankoff mank...@gmail.com writes: Hi Andreas, On 2014-03-11 at 09:41, Andreas Leha wrote: Hi Ken, Ken Mankoff mank...@gmail.com writes: On 2014-03-11 at 08:47, zwz wrote: In my setup, there is (setq org-export-exclude-tags '(private

[O] Babel should not work in the subtree marked as not exported

2014-03-11 Thread zwz
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

Re: [O] Babel should not work in the subtree marked as not exported

2014-03-11 Thread Ken Mankoff
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 ++---+---+---+---+---+---+---+

Re: [O] Babel should not work in the subtree marked as not exported

2014-03-11 Thread Andreas Leha
Hi Ken, Ken Mankoff mank...@gmail.com 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

Re: [O] Babel should not work in the subtree marked as not exported

2014-03-11 Thread Ken Mankoff
Hi Andreas, On 2014-03-11 at 09:41, Andreas Leha wrote: Hi Ken, Ken Mankoff mank...@gmail.com 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:

Re: [O] Babel should not work in the subtree marked as not exported

2014-03-11 Thread Rainer M Krug
Ken Mankoff mank...@gmail.com 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