emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] Deactivate babel source block


From: Eric Schulte
Subject: Re: [O] Deactivate babel source block
Date: Wed, 09 Oct 2013 10:28:27 -0600
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Eric S Fraga <address@hidden> writes:

> Rainer M Krug <address@hidden> writes:
>
> [...]
>
>> Correct me if I am wrong, but I seem to remember that source blocks
>> under a commented heading are not tangled?
>>
>> But I just tried it now, and it doesn't seem to be the case anymore -
>> code blocks under commented header are still tangled - has this feature
>> been removed or was it never there?
>
> It was there; we had a discussion about this early this year.  There is
> a commit log entry indicating that this was implemented:
>
> ,----
> | commit 8e0b4529f780de4e442d26a7ba4aedd892c78c5b
> | Author: Bastien Guerry <address@hidden>
> | Date:   Thu Feb 28 10:25:21 2013 +0100
> | 
> |     ob-tangle.el (org-babel-tangle-collect-blocks): Don't collect blocks in 
> commented out headings
> |     
> |     * ob-tangle.el (org-babel-tangle-collect-blocks): Don't
> |     collect blocks in commented out headings.
> |     
> |     Thansk to the various people who requested this.
> `----
>
> but I also found recently that code blocks in commented sections are
> indeed tangled.
>
> I have no idea what has happened to the code since.

It looks like commit 17131cb broke the heading handling of
`org-babel-tangle-collect-blocks' by removing the application of an
anonymous lambda function.

I just pushed up a fix which reapplies this function, and tangles the
following file correctly (i.e., does not tangle the commented heading).

Thanks for pointing this out.

Cheers,

-- 
Eric Schulte
https://cs.unm.edu/~eschulte
PGP: 0x614CA05D



reply via email to

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