emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] disable tangling for an entire section?


From: Bill White
Subject: Re: [O] disable tangling for an entire section?
Date: Wed, 08 May 2013 12:00:53 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

On Tue May 07 2013 at 07:23, "Sebastien Vauban" <address@hidden> 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 . address@hidden
"No ma'am, we're musicians."





reply via email to

[Prev in Thread] Current Thread [Next in Thread]