emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is it possible to #+include: src blocks and tangle them too?


From: Kevin M. Stout
Subject: Re: Is it possible to #+include: src blocks and tangle them too?
Date: Tue, 13 Apr 2021 20:26:23 -0400
User-agent: Mutt/1.10.1 (2018-07-13)

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

--Kevin M. Stout



reply via email to

[Prev in Thread] Current Thread [Next in Thread]