emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* tangling from multiple files
@ 2020-03-17 23:21 David Bremner
  2020-03-18 22:10 ` Berry, Charles via General discussions about Org-mode.
  0 siblings, 1 reply; 8+ messages in thread
From: David Bremner @ 2020-03-17 23:21 UTC (permalink / raw)
  To: emacs-orgmode


I've seen this question around e.g. stack overflow, but none of the
answers I found seems really satisfactory.

I'd like to share a set of begin_src / end_src blocks in a.org between
b.org and c.org; in particular b.org and c.org contain noweb references
to names defined in a.org. Is there a better way than using
(org-babel-lob-ingest "a.org")? This seems a bit clunky, requiring
manual action every time a.org changes.

For example, here is a.org

#+name: x.scm
#+begin_src scheme
(define x 1)
#+end_src

#+name: y.scm
#+begin_src scheme
(define y 2)
#+end_src

and here is b.org. You can imagine c is similar, but maybe swaps the
order of x and y

#+begin_src scheme :tangle "b.scm" :noweb strip-export
<<x.scm>>
<<y.scm>>
#+end_src

# Local Variables:
# eval: (org-babel-lob-ingest "a.org")
# End:

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

end of thread, other threads:[~2020-04-08 17:14 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-17 23:21 tangling from multiple files David Bremner
2020-03-18 22:10 ` Berry, Charles via General discussions about Org-mode.
2020-03-19  1:29   ` David Bremner
2020-03-19  2:38     ` Berry, Charles via General discussions about Org-mode.
2020-03-19 17:40       ` Berry, Charles via General discussions about Org-mode.
2020-04-04 18:08         ` David Bremner
2020-04-05 17:56           ` Berry, Charles via General discussions about Org-mode.
2020-04-08 17:14             ` David Bremner

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