[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] How to tangle contents of a noweb-ref block that as source block
From: |
Nick Dokos |
Subject: |
Re: [O] How to tangle contents of a noweb-ref block that as source block indicators in it? |
Date: |
Fri, 19 Sep 2014 14:46:29 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) |
Grant Rettke <address@hidden> writes:
> Good afternoon,
>
> I work in:
>
> ╭────
> │ (print emacs-version)
> │ (print org-version)
> ╰────
>
> ╭────
> │ "24.3.1"
> │
> │ "8.2.7c"
> ╰────
>
> My `org' configuration specifies source blocks like this:
>
> ╭────
> │ (setq org-babel-noweb-wrap-start "«")
> │ (setq org-babel-noweb-wrap-end "»")
> ╰────
>
> When I tangle this block the output is bit for bit.
>
> When I tangle this other block:
>
> ╭────
> │ (wrap-region-add-wrapper "«" "»" "w" 'org-mode) ;; noweb blocks
> ╰────
>
> the guillemot is removed.
>
> What I want is to tangle the source block without having the guillemot
> removed.
>
> I did it wrong because I generated this:
>
> ╭────
> │ (wrap-region-add-wrapper "" "w" 'org-mode) ;; noweb blocks
> ╰────
>
> What should I do to generate the desired output?
>
Just a guess: you probably *evaluated* the first code block, so your
org-babel-noweb-wrap-{start,end} variables got changed, which affected
the second code block. If you leave the markers unchanged, I'd expect it
to work.
Nick