emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* noweb expansion when eval and not tangle?
@ 2021-02-19 23:00 George Mauer
  2021-02-20  4:23 ` Timothy
  0 siblings, 1 reply; 2+ messages in thread
From: George Mauer @ 2021-02-19 23:00 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 251 bytes --]

I would like noweb to expand during eval but *not* tangle. Is this possible?

I realize I can achieve the same effect with multiple code blocks but it
seems an odd asymmetry to not be able to do this directly.

Is it possible and just not documented?

[-- Attachment #2: Type: text/html, Size: 329 bytes --]

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

* Re: noweb expansion when eval and not tangle?
  2021-02-19 23:00 noweb expansion when eval and not tangle? George Mauer
@ 2021-02-20  4:23 ` Timothy
  0 siblings, 0 replies; 2+ messages in thread
From: Timothy @ 2021-02-20  4:23 UTC (permalink / raw)
  To: gmauer; +Cc: emacs-orgmode


George Mauer <gmauer@gmail.com> writes:

> I would like noweb to expand during eval but *not* tangle. Is this possible?
>
> I realize I can achieve the same effect with multiple code blocks but it
> seems an odd asymmetry to not be able to do this directly.
>
> Is it possible and just not documented?

It is indeed, and it's documented in
https://orgmode.org/manual/Noweb-Reference-Syntax.html.

‘eval’
    Expansion of noweb syntax references in the body of the code block only before evaluating. 

--
Timothy.


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

end of thread, other threads:[~2021-02-20  4:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-19 23:00 noweb expansion when eval and not tangle? George Mauer
2021-02-20  4:23 ` Timothy

Code repositories for project(s) associated with this 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).