[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Babel: How to call code in one org file into another org file
From: |
Nick Dokos |
Subject: |
Re: [O] Babel: How to call code in one org file into another org file |
Date: |
Sat, 31 Oct 2015 12:34:04 -0400 |
User-agent: |
Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux) |
Lawrence Bottorff <address@hidden> writes:
> Yes, I experimented with this too -- and got it to work. But strangely, if
> you leave out the
>
> # eval: (org-babel-lob-ingest "./a.org")
> # eval: (org-babel-lob-ingest "./b.org")
>
> lines and do a regular `org-babel-lob-ingest` (or C-c C-v i) on those
> two files -- it doesn't work. Rather bizarre behavior, IMHO.
>
I think you have some misconceptions about what org-babel-lob-ingest
does. All it does is go through the file and add the named source
blocks in that file to org-babel-library-of-babel: it does *not*
evaluate the code blocks. So if the code block is e.g. a lisp code
block with a defun in it, the function is *not* defined, until the
code block is evaluated by org-babel: that's what org-sbe does.
> Anyway, the dream behavior for LOB would be to simply add your files to your
> `org-babel-lob-files` in your Emacs init, start up an org file -- and be able
> to simply use all the LOB
> files in your "live" `org-babel-library-of-babel` list library.
>
You can do that but again all that does is populate a list that
only org-babel knows about. You'd still need to evaluate the code
blocks in order to tell the inferior lisp process about what the
code block define.
--
Nick
- Re: [O] Babel: How to call code in one org file into another org file, (continued)
- Re: [O] Babel: How to call code in one org file into another org file, John Kitchin, 2015/10/30
- Re: [O] Babel: How to call code in one org file into another org file, Thomas S . Dye, 2015/10/30
- Re: [O] Babel: How to call code in one org file into another org file, Thomas S . Dye, 2015/10/30
- Re: [O] Babel: How to call code in one org file into another org file, Lawrence Bottorff, 2015/10/30
- Re: [O] Babel: How to call code in one org file into another org file, Nick Dokos, 2015/10/31
- Re: [O] Babel: How to call code in one org file into another org file, Lawrence Bottorff, 2015/10/31
- Re: [O] Babel: How to call code in one org file into another org file,
Nick Dokos <=
- Re: [O] Babel: How to call code in one org file into another org file, Lawrence Bottorff, 2015/10/31
Re: [O] Babel: How to call code in one org file into another org file, Rasmus, 2015/10/31