From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bill White Subject: Re: disable tangling for an entire section? Date: Wed, 08 May 2013 12:00:53 -0500 Message-ID: <87r4hhv22i.fsf@wolfram.com> References: <87haifz6hb.fsf@wolfram.com> <8638tzvuzy.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:47575) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ua7jt-0001qv-Ix for emacs-orgmode@gnu.org; Wed, 08 May 2013 13:01:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ua7js-00070b-6C for emacs-orgmode@gnu.org; Wed, 08 May 2013 13:01:13 -0400 Received: from plane.gmane.org ([80.91.229.3]:43018) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ua7js-00070T-0D for emacs-orgmode@gnu.org; Wed, 08 May 2013 13:01:12 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Ua7jm-0003nW-Nr for emacs-orgmode@gnu.org; Wed, 08 May 2013 19:01:06 +0200 Received: from 173-19-205-93.client.mchsi.com ([173.19.205.93]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 08 May 2013 19:01:06 +0200 Received: from billw by 173-19-205-93.client.mchsi.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 08 May 2013 19:01:06 +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: emacs-orgmode@gnu.org On Tue May 07 2013 at 07:23, "Sebastien Vauban" wrote: > Christian Moe wrote: >> Bill White writes: >>> Is there a simple way to disable tangling for an entire section's code >>> blocks? Or to put it a different way, can tangling be toggled at the >>> section level and not just the code-block level? >>> >>> I tried this: >>> >>> ** a section in my file >>> :PROPERTIES: >>> :tangle: no >>> :END: >>> >>> by analogy from >>> #+PROPERTY: tangle yes >>> in (info "(org) Header arguments in Org mode properties"), but code >>> blocks in that section were still tangled. >> >> That should work, I think, and it does work for me (on 8.0.1). >> I cannot reproduce the problem. > > That must work, yes. Except if you have ":tangle" header arguments set > on sub-subtrees, or on code blocks, of course. Thank you Christian and Sebastien for your replies. 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. For example, I had hoped that the following would disable tangling for both code blocks, but for me[1] even under 'emacs -Q' the first block is tangled: * headline :PROPERTIES: :tangle: no :END: #+begin_src perl :tangle yes 2 + 2 #+end_src #+begin_src perl :tangle no 3 + 3 #+end_src [1]: Org-mode version 8.0.2 (release_8.0.2-61-g22dfa7 @ /home/billw/Dropbox/org/org-mode/lisp/) GNU Emacs 24.3.1 (i686-pc-linux-gnu, GTK+ Version 3.6.0) of 2013-03-11 on wri Cheers - bw -- Bill White . billw@wolfram.com "No ma'am, we're musicians."