From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Schmitt Subject: Re: [babel] Commenting out src blocks for tangling Date: Fri, 18 Oct 2013 16:37:07 +0200 Message-ID: References: <87r4k18wy2.fsf@ucl.ac.uk> <87mwup8t0q.fsf@breezy.my.home> <87bob58sdi.fsf@ucl.ac.uk> <512e97cf.82c1ec0a.76d4.ffffc5f1@mx.google.com> <512F1CDF.80906@gmail.com> <877glsg57i.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52702) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VXBAx-0005b6-3u for emacs-orgmode@gnu.org; Fri, 18 Oct 2013 10:37:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VXBAs-000833-7h for emacs-orgmode@gnu.org; Fri, 18 Oct 2013 10:37:15 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:21077) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VXBAs-00082l-29 for emacs-orgmode@gnu.org; Fri, 18 Oct 2013 10:37:10 -0400 In-reply-to: <877glsg57i.fsf@bzg.ath.cx> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Bastien Cc: emacs-orgmode@gnu.org, Alan L Tyree , Rainer M Krug Hello, Sorry to resurrect this old thread, but I cannot make this work. bzg@altern.org writes: > Rainer M Krug writes: > >> I agree - COMMENTing a subtree should automatically disable tangling of code blocks in the >> subtree. Would this something which could be introduced easily, as it seems there are quite a few >> who assumed that it would be doing it? > > This is now the case in master: > http://orgmode.org/cgit.cgi/org-mode.git/commit/?id=8e0b45 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.) Thanks, Alan