emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Bill White <billw@wolfram.com>
To: emacs-orgmode@gnu.org
Subject: Re: disable tangling for an entire section?
Date: Wed, 08 May 2013 12:00:53 -0500	[thread overview]
Message-ID: <87r4hhv22i.fsf@wolfram.com> (raw)
In-Reply-To: 8638tzvuzy.fsf@somewhere.org

On Tue May 07 2013 at 07:23, "Sebastien Vauban" <sva-news@mygooglest.com> 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."

  reply	other threads:[~2013-05-08 17:01 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-07  5:47 disable tangling for an entire section? Bill White
2013-05-07  7:14 ` Christian Moe
2013-05-07 12:23   ` Sebastien Vauban
2013-05-08 17:00     ` Bill White [this message]
2013-05-09  6:54       ` Christian Moe
2013-05-13  8:23         ` Rainer M. Krug
2013-05-13 15:51           ` Bill White

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87r4hhv22i.fsf@wolfram.com \
    --to=billw@wolfram.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).