emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Rasmus <rasmus@gmx.us>
To: emacs-orgmode@gnu.org
Subject: Re: control tangling from section header
Date: Mon, 23 Feb 2015 15:54:31 +0100	[thread overview]
Message-ID: <87a904llug.fsf@gmx.us> (raw)
In-Reply-To: 8661auhuh6.fsf@me.localhost.invalid

Daniele Pizzolli <dan@toel.it> writes:

> Hello Ken,
>
> Ken Mankoff writes:
>
>> I'm working with my literate init file (emacs.org), and would like to
>> have certain sections not tangle. I currently do this with ":tangle no"
>> at the SRC block level. Is it possible to control tangling with tags at
>> the header level?
>
> Not with tag but with PROPERTIES:
>
> * outline header
>   :PROPERTIES:
>   :header-args: :tangle no
>   :END:
>
> More at
> http://orgmode.org/manual/Header-arguments-in-Org-mode-properties.html

This is what I would do as well.

>> It would make it much easier to disable/enable sections, and see what
>> sections are enabled/disabled, if the tangling state were more clearly
>> visible like tags are.
>
> I do not think that this is currently possible.

I haven't tried, but maybe one could use org-babel-pre-tangle-hook or
org-export-before-parsing-hook, depending on the context, to set/update
properties based on tags.  

For an init file the timing might matter.  I don't know how init.org
works, but presumably there's a "ignite.el" that starts the init process
using init.org?

—Rasmus

-- 
Need more coffee. . .

      parent reply	other threads:[~2015-02-23 14:54 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-22 14:36 control tangling from section header Ken Mankoff
2015-02-22 14:49 ` Daniele Pizzolli
2015-02-23 14:39   ` Rainer M Krug
2015-02-23 14:47     ` Ken Mankoff
2015-02-23 15:03       ` Rainer M Krug
2015-02-23 15:39         ` Ken Mankoff
2015-02-23 14:54   ` Rasmus [this message]

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=87a904llug.fsf@gmx.us \
    --to=rasmus@gmx.us \
    --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).