emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] [babel] Commenting out src blocks for tangling


From: Alan L Tyree
Subject: Re: [O] [babel] Commenting out src blocks for tangling
Date: Thu, 28 Feb 2013 06:18:45 +1100
User-agent: mu4e 0.9.9; emacs 24.2.1

Eric S Fraga writes:

> Hello,
>
> I finally bit the bullet and converted by rather convoluted and long
> emacs startup code to an org file with emacs-lisp code blocks.  I then
> tangle these into the actual code which is loaded by emacs at
> startup.  So far, so good, and it does make it easier for me to navigate
> around my customisations.
>
> However, it has highlighted a feature which is missing (I think) but
> which would be great.  I tangle all the code blocks to the same
> file.  It would be great if I could have the =org-babel-tangle= command
> skip sections that are COMMENTed out (i.e. headline with COMMENT, as
> produced by =org-toggle-comment=).
>
> Alternatively, a :nobabel: or :notangle: tag to mark subtrees that
> should be excluded would be fine.
>
> If I have missed a way of doing this, please do let me know (politely
> ;-).  If not, any suggestions on how to achieve this would be great.
G'day Eric,

If I understand your problem correctly, doesn't the property :tangle: do
what you want?

Cheers,
Alan

>
> Thanks,
> eric


-- 
Alan L Tyree           http://www2.austlii.edu.au/~alan
Tel:  04 2748 6206     sip:address@hidden



reply via email to

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