emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Kevin M. Stout" <kevin.m.stout@gmail.com>
To: Ramachandran Lakshmanan <rama@tzrl.org>
Cc: emacs-orgmode@gnu.org
Subject: Re: Is it possible to #+include: src blocks and tangle them too?
Date: Tue, 13 Apr 2021 20:26:23 -0400	[thread overview]
Message-ID: <20210414002623.GA20677@cibola.cibola> (raw)
In-Reply-To: <87k0p7xjxk.fsf@nicolasgoaziou.fr>

On 2021-04-12 23:38, Nicolas Goaziou wrote:

> However, you may try calling `org-export-expand-include-keyword' from
> `org-babel-pre-tangle-hook'. Untested.

I've done this in the past and can verify that it works well.  That said, it by
definition creates cross-talk between org files, with all the potential for name
collisions and the like that that implies.  One could avoid such problems by
adding some kind of prefix to the block names in the included file (maybe
"common/" or "xyzzy-").  (Some kind of automatic prefixing on inclusion might be

--Kevin M. Stout

  parent reply	other threads:[~2021-04-14  0:27 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-12 15:35 Ramachandran Lakshmanan
2021-04-12 21:38 ` Nicolas Goaziou
2021-04-13  6:31   ` Dr. Arne Babenhauserheide
2021-04-13  6:59   ` Timothy
2021-04-14  0:26   ` Kevin M. Stout [this message]
2021-04-14  3:23 ` Greg Minshall
2021-04-14  3:48   ` Rama
2021-04-14  6:33     ` Dr. Arne Babenhauserheide
2021-04-14  6:52     ` Greg Minshall
2021-04-16 15:27     ` Greg Minshall
2021-04-16 21:14       ` Berry, Charles via General discussions about Org-mode.

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:

  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=20210414002623.GA20677@cibola.cibola \
    --to=kevin.m.stout@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=rama@tzrl.org \
    --subject='Re: Is it possible to #+include: src blocks and tangle them too?' \


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

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


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