* Org Babel code blocks in COMMENT subtrees gets executed!?
@ 2015-02-13 10:52 Sebastien Vauban
2015-02-13 21:02 ` Nicolas Goaziou
0 siblings, 1 reply; 3+ messages in thread
From: Sebastien Vauban @ 2015-02-13 10:52 UTC (permalink / raw)
To: emacs-orgmode-mXXj517/zsQ
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Org Babel code blocks in COMMENT subtrees gets executed!?
2015-02-13 10:52 Org Babel code blocks in COMMENT subtrees gets executed!? Sebastien Vauban
@ 2015-02-13 21:02 ` Nicolas Goaziou
2015-02-13 22:06 ` Sebastien Vauban
0 siblings, 1 reply; 3+ messages in thread
From: Nicolas Goaziou @ 2015-02-13 21:02 UTC (permalink / raw)
To: Sebastien Vauban; +Cc: public-emacs-orgmode-mXXj517/zsQ
Hello,
Sebastien Vauban <sva-news-D0wtAvR13HarG/iDocfnWg@public.gmane.org>
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Org Babel code blocks in COMMENT subtrees gets executed!?
2015-02-13 21:02 ` Nicolas Goaziou
@ 2015-02-13 22:06 ` Sebastien Vauban
0 siblings, 0 replies; 3+ messages in thread
From: Sebastien Vauban @ 2015-02-13 22:06 UTC (permalink / raw)
To: emacs-orgmode-mXXj517/zsQ
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-02-13 22:06 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-13 10:52 Org Babel code blocks in COMMENT subtrees gets executed!? Sebastien Vauban
2015-02-13 21:02 ` Nicolas Goaziou
2015-02-13 22:06 ` Sebastien Vauban
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).