emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* How to tangle contents of a noweb-ref block that as source block indicators in it?
@ 2014-09-19 17:51 Grant Rettke
  2014-09-19 18:46 ` Nick Dokos
  0 siblings, 1 reply; 2+ messages in thread
From: Grant Rettke @ 2014-09-19 17:51 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

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?

Kind regards,

Grant Rettke
gcr@wisdomandwonder.com | http://www.wisdomandwonder.com/
“Wisdom begins in wonder.” --Socrates
((λ (x) (x x)) (λ (x) (x x)))
“Life has become immeasurably better since I have been forced to stop
taking it seriously.” --Thompson

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: How to tangle contents of a noweb-ref block that as source block indicators in it?
  2014-09-19 17:51 How to tangle contents of a noweb-ref block that as source block indicators in it? Grant Rettke
@ 2014-09-19 18:46 ` Nick Dokos
  0 siblings, 0 replies; 2+ messages in thread
From: Nick Dokos @ 2014-09-19 18:46 UTC (permalink / raw)
  To: emacs-orgmode

Grant Rettke <gcr@wisdomandwonder.com> 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-09-19 18:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-19 17:51 How to tangle contents of a noweb-ref block that as source block indicators in it? Grant Rettke
2014-09-19 18:46 ` Nick Dokos

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).