From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: [babel] Commenting out src blocks for tangling Date: Sat, 19 Oct 2013 15:56:07 -0600 Message-ID: <87a9i5vsaw.fsf@gmail.com> 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> <87fvry1qc8.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34118) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VXeVp-0004pm-7z for emacs-orgmode@gnu.org; Sat, 19 Oct 2013 17:56:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VXeVl-00056X-3e for emacs-orgmode@gnu.org; Sat, 19 Oct 2013 17:56:45 -0400 Received: from mail-pd0-x231.google.com ([2607:f8b0:400e:c02::231]:33025) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VXeVk-00056R-Rd for emacs-orgmode@gnu.org; Sat, 19 Oct 2013 17:56:41 -0400 Received: by mail-pd0-f177.google.com with SMTP id p10so3766589pdj.22 for ; Sat, 19 Oct 2013 14:56:39 -0700 (PDT) In-Reply-To: (Alan Schmitt's message of "Sat, 19 Oct 2013 08:06:18 +0200") 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: Alan Schmitt Cc: Bastien , emacs-orgmode@gnu.org, Alan L Tyree , Rainer M Krug Alan Schmitt writes: > 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 I just pushed up a fix, thanks for catching this bug. -- Eric Schulte https://cs.unm.edu/~eschulte PGP: 0x614CA05D