From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer@krugs.de (Rainer M. Krug) Subject: Re: disable tangling for an entire section? Date: Mon, 13 May 2013 10:23:00 +0200 Message-ID: <87txm7mgpn.fsf@krugs.de> References: <87haifz6hb.fsf@wolfram.com> <8638tzvuzy.fsf@somewhere.org> <87r4hhv22i.fsf@wolfram.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:44184) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ubo2H-0005W4-9g for emacs-orgmode@gnu.org; Mon, 13 May 2013 04:23:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ubo2E-0002qv-6g for emacs-orgmode@gnu.org; Mon, 13 May 2013 04:23:09 -0400 Received: from mail-wi0-x22c.google.com ([2a00:1450:400c:c05::22c]:41460) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ubo2E-0002qh-0m for emacs-orgmode@gnu.org; Mon, 13 May 2013 04:23:06 -0400 Received: by mail-wi0-f172.google.com with SMTP id ey16so626883wid.17 for ; Mon, 13 May 2013 01:23:05 -0700 (PDT) In-Reply-To: (Christian Moe's message of "Thu, 09 May 2013 08:54:03 +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: Christian Moe Cc: emacs-orgmode@gnu.org, Bill White Christian Moe writes: >> I was hoping that a higher-level setting would override all tangle >> settings under it, no matter what they might be. This would make it >> possible to change an entire section's tangling without fussing with >> each code block's setting. > > The status quo makes more sense, I think. It allows you to easily change > an entire section's tangling but make specific exceptions that > override the general setting. I agree with Christian here. But you could trick org into achieving what you want, in specifying a tangle target in the PROPERTIES sectio, given that you only use :tangle yes : * headline :PROPERTIES: :tangle: tmp.tmp :END: #+begin_src perl :tangle yes 2 + 2 #+end_src #+begin_src perl :tangle no 3 + 3 #+end_src In this case, the the first code block can be tangled into tmp.tmp and the second one won't. So no harm done to your "clean" tangled file, only the tmp.tmp, which you can discard afterwords. Cheers, Rainer > > Yours, > Christian > -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Stellenbosch University South Africa Tel : +33 - (0)9 53 10 27 44 Cell: +33 - (0)6 85 62 59 98 Fax : +33 - (0)9 58 10 27 44 Fax (D): +49 - (0)3 21 21 25 22 44 email: Rainer@krugs.de Skype: RMkrug