unofficial mirror of emacs-orgmode@gnu.org
 help / color / mirror / code / Atom feed
From: Timothy <tecosaur@gmail.com>
To: gmauer@gmail.com
Cc: emacs-orgmode@gnu.org
Subject: Re: noweb expansion when eval and not tangle?
Date: Sat, 20 Feb 2021 12:23:31 +0800
Message-ID: <87lfbjpdqq.fsf@gmail.com> (raw)
In-Reply-To: <CA+pajW+Fn74WOdPNrKga1Kk4VQHy_kuQ8-qcaeNoL+JnP9i6Vg@mail.gmail.com>


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.


      reply	other threads:[~2021-02-20  4:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-19 23:00 George Mauer
2021-02-20  4:23 ` Timothy [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87lfbjpdqq.fsf@gmail.com \
    --to=tecosaur@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=gmauer@gmail.com \
    --subject='Re: noweb expansion when eval and not tangle?' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

unofficial mirror of emacs-orgmode@gnu.org

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://yhetil.org/orgmode/0 orgmode/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 orgmode orgmode/ https://yhetil.org/orgmode \
		emacs-orgmode@gnu.org
	public-inbox-index orgmode

Example config snippet for mirrors.
Newsgroups are available over NNTP:
	nntp://news.yhetil.org/yhetil.emacs.orgmode
	nntp://news.gmane.io/gmane.emacs.orgmode


code repositories for project(s) associated with this inbox:

	orgmode.git.git (no URL configured)

AGPL code for this site: git clone http://ou63pmih66umazou.onion/public-inbox.git