From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: [babel] Commenting out src blocks for tangling Date: Wed, 27 Feb 2013 17:53:57 +0000 Message-ID: <87r4k18wy2.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:52487) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UAlDH-0002uW-GM for emacs-orgmode@gnu.org; Wed, 27 Feb 2013 12:54:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UAlD5-0004U3-DD for emacs-orgmode@gnu.org; Wed, 27 Feb 2013 12:54:37 -0500 Received: from va3ehsobe003.messaging.microsoft.com ([216.32.180.13]:44327 helo=va3outboundpool.messaging.microsoft.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UAlD5-0004Pt-9N for emacs-orgmode@gnu.org; Wed, 27 Feb 2013 12:54:31 -0500 Received: from mail228-va3 (localhost [127.0.0.1]) by mail228-va3-R.bigfish.com (Postfix) with ESMTP id 187EFCC01FF for ; Wed, 27 Feb 2013 17:54:06 +0000 (UTC) Received: from VA3EHSMHS008.bigfish.com (unknown [10.7.14.244]) by mail228-va3.bigfish.com (Postfix) with ESMTP id 7A0D554010A for ; Wed, 27 Feb 2013 17:54:04 +0000 (UTC) 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: emacs-orgmode@gnu.org 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. Thanks, eric -- : Eric S Fraga, GnuPG: 0xC89193D8FFFCF67D : in Emacs 24.3.50.1 and Org release_7.9.3f-1285-g6cc600