Re: [O] Org Babel code blocks in COMMENT subtrees gets executed!?

2015-02-13 Thread Sebastien Vauban
Hello Nicolas,

Nicolas Goaziou wrote:
> Sebastien Vauban writes:
>
>> Save this as and Org file, and press C-c C-v C-e...
>>
>> * Intro
>>
>> #+begin_src emacs-lisp
>> (print "Foo")
>> #+end_src
>>
>> * COMMENT Method
>>
>> #+begin_src emacs-lisp
>> (print "Bar")
>> #+end_src
>>
>> ^ I don't think we should have blocks in COMMENT trees executed, right?
>>
>> Isn't that supposed to be (one of) the difference(s) between :noexport:
>> and COMMENT?
>
> C-c C-v C-e on the block executes it. I see nothing wrong with that.
> However, during an export process, it will not be executed.
>
> Do you mean anything else?

I guess you must be right.  I've mentally confused "execute all code
blocks in buffer" with "export".

I don't think he should work otherwise.  Sorry for the noise.

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] Org Babel code blocks in COMMENT subtrees gets executed!?

2015-02-13 Thread Nicolas Goaziou


Hello,

Sebastien Vauban 
writes:

> Save this as and Org file, and press C-c C-v C-e...
>
> * Intro
>
> #+begin_src emacs-lisp
> (print "Foo")
> #+end_src
>
> * COMMENT Method
>
> #+begin_src emacs-lisp
> (print "Bar")
> #+end_src
>
> ^ I don't think we should have blocks in COMMENT trees executed, right?
>
> Isn't that supposed to be (one of) the difference(s) between :noexport:
> and COMMENT?

C-c C-v C-e on the block executes it. I see nothing wrong with that.
However, during an export process, it will not be executed.

Do you mean anything else?


Regards,

-- 
Nicolas Goaziou




[O] Org Babel code blocks in COMMENT subtrees gets executed!?

2015-02-13 Thread Sebastien Vauban
Save this as and Org file, and press C-c C-v C-e...

--8<---cut here---start->8---
* Intro

#+begin_src emacs-lisp
(print "Foo")
#+end_src

* COMMENT Method

#+begin_src emacs-lisp
(print "Bar")
#+end_src

^ I don't think we should have blocks in COMMENT trees executed, right?

Isn't that supposed to be (one of) the difference(s) between :noexport:
and COMMENT?

* Results

#+begin_src emacs-lisp
(print "Baz")
#+end_src
--8<---cut here---end--->8---

Best regards,
  Seb

-- 
Sebastien Vauban