From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan L Tyree Subject: Re: [babel] Commenting out src blocks for tangling Date: Thu, 28 Feb 2013 06:18:45 +1100 Message-ID: <87mwup8t0q.fsf@breezy.my.home> References: <87r4k18wy2.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:57456) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UAmX6-0004x5-9O for emacs-orgmode@gnu.org; Wed, 27 Feb 2013 14:19:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UAmWs-00070j-6B for emacs-orgmode@gnu.org; Wed, 27 Feb 2013 14:19:10 -0500 Received: from mail-pb0-f52.google.com ([209.85.160.52]:36805) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UAmWq-0006tO-Ty for emacs-orgmode@gnu.org; Wed, 27 Feb 2013 14:19:02 -0500 Received: by mail-pb0-f52.google.com with SMTP id ma3so557022pbc.11 for ; Wed, 27 Feb 2013 11:18:42 -0800 (PST) In-reply-to: <87r4k18wy2.fsf@ucl.ac.uk> 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: Eric S Fraga Cc: emacs-orgmode@gnu.org Eric S Fraga writes: > Hello, > > I finally bit the bullet and converted by rather convoluted and long > emacs startup code to an org file with emacs-lisp code blocks. I then > tangle these into the actual code which is loaded by emacs at > startup. So far, so good, and it does make it easier for me to navigate > around my customisations. > > However, it has highlighted a feature which is missing (I think) but > which would be great. I tangle all the code blocks to the same > file. It would be great if I could have the =org-babel-tangle= command > skip sections that are COMMENTed out (i.e. headline with COMMENT, as > produced by =org-toggle-comment=). > > Alternatively, a :nobabel: or :notangle: tag to mark subtrees that > should be excluded would be fine. > > If I have missed a way of doing this, please do let me know (politely > ;-). If not, any suggestions on how to achieve this would be great. G'day Eric, If I understand your problem correctly, doesn't the property :tangle: do what you want? Cheers, Alan > > Thanks, > eric -- Alan L Tyree http://www2.austlii.edu.au/~alan Tel: 04 2748 6206 sip:172385@iptel.org