From: Alan Schmitt <alan.schmitt@polytechnique.org>
To: Eric Schulte <schulte.eric@gmail.com>
Cc: Bastien <bzg@altern.org>,
emacs-orgmode@gnu.org, Alan L Tyree <alantyree@gmail.com>,
Rainer M Krug <r.m.krug@gmail.com>
Subject: Re: [babel] Commenting out src blocks for tangling
Date: Sat, 19 Oct 2013 08:06:18 +0200 [thread overview]
Message-ID: <m2a9i594md.fsf@polytechnique.org> (raw)
In-Reply-To: <87fvry1qc8.fsf@gmail.com>
schulte.eric@gmail.com writes:
>> I just tried it with my init file and it did not work. Here is a
>> minimal example. Save this as "test.org":
>>
>> --8<---------------cut here---------------start------------->8---
>> * Testing
>>
>> #+BEGIN_SRC emacs-lisp
>> (message "hello world")
>> #+END_SRC
>>
>> * COMMENT Commenting
>>
>> #+BEGIN_SRC emacs-lisp
>> (message "Salut le monde 2")
>> #+END_SRC
>> --8<---------------cut here---------------end--------------->8---
>>
>> Then do a "M-x org-babel-load-file" giving "test.org" as file name.
>>
>> If you look at *Messages*, or at the generated test.el, you will see the
>> second block has been tangled.
>>
>> Am I missing something with this feature, or is this a bug? (I tried
>> with "emacs -Q" and loading a current org, and the same happens.)
>>
>
> I can't reproduce, both manual tangling and tangling through
> org-babel-load-file only tangle the first block for me. Maybe you
> aren't using a current version of Org-mode.
>
> I'm on.
>
> Org-mode version 8.2.1 (release_8.2.1-99-g2eef1b @ /home/eschulte/src/org-mode/lisp/)
Thanks, my version was a couple weeks old and the current version does
work with this example. However I could not make it work with this
slightly bigger example:
--8<---------------cut here---------------start------------->8---
* Testing
#+BEGIN_SRC emacs-lisp
(message "hello world")
#+END_SRC
* COMMENT Commenting
#+BEGIN_SRC emacs-lisp
(message "Salut le monde 2")
#+END_SRC
** Testing sub tree
#+BEGIN_SRC emacs-lisp
(message "hello subtree")
#+END_SRC
--8<---------------cut here---------------end--------------->8---
I see that "hello subtree" is tangled. Does it mean that to comment a
whole tree I need to comment every subtree (recursively)?
Thanks,
Alan
next prev parent reply other threads:[~2013-10-19 6:06 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-27 17:53 [babel] Commenting out src blocks for tangling Eric S Fraga
2013-02-27 18:10 ` Aaron Ecay
2013-02-27 18:22 ` Eric S Fraga
2013-02-27 19:18 ` Alan L Tyree
2013-02-27 19:32 ` Eric S Fraga
2013-02-27 23:33 ` Darlan Cavalcante Moreira
2013-02-28 9:01 ` Rainer M Krug
2013-02-28 9:25 ` Bastien
2013-02-28 9:27 ` Rainer M Krug
2013-02-28 9:30 ` Sebastien Vauban
2013-02-28 9:42 ` Rainer M Krug
2013-02-28 9:47 ` Sebastien Vauban
2013-02-28 12:30 ` Rainer M Krug
2013-03-02 10:31 ` Bastien
2013-03-03 3:44 ` Charles Berry
2013-03-03 6:18 ` Bastien
2013-02-28 9:44 ` Bastien
2013-02-28 9:51 ` Rasmus
2013-02-28 10:05 ` Bastien
2013-02-28 19:45 ` Eric S Fraga
2013-10-18 14:37 ` Alan Schmitt
2013-10-18 16:43 ` Eric Schulte
2013-10-19 6:06 ` Alan Schmitt [this message]
2013-10-19 21:56 ` Eric Schulte
2013-10-20 17:05 ` Alan Schmitt
2013-10-20 21:58 ` Eric Schulte
2013-10-21 6:49 ` Alan Schmitt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2a9i594md.fsf@polytechnique.org \
--to=alan.schmitt@polytechnique.org \
--cc=alantyree@gmail.com \
--cc=bzg@altern.org \
--cc=emacs-orgmode@gnu.org \
--cc=r.m.krug@gmail.com \
--cc=schulte.eric@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).