emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] How does Library of Babel actually work?


From: Lawrence Bottorff
Subject: Re: [O] How does Library of Babel actually work?
Date: Sat, 31 Oct 2015 16:25:15 +0000

Yes, and see my response. Having to explicitly re-do the `org-babel-lob-ingest` in the Local Variables with an eval tells me org babel doesn't really know about LOB until my file explicitly tells it. Doing `org-babel-lob-ingest` outside of the org file (at Emacs startup) should set something to t and org babel should be happy.

On Sat, Oct 31, 2015 at 3:53 PM, Nick Dokos <address@hidden> wrote:
Lawrence Bottorff <address@hidden> writes:

> New thread. Anyway, putting lisp/SLIME aside, I experimented with emacs lisp -- and got
> the same results, i.e., no real LOB functionality, despite proper loading. I must be doing
> something wrong? I'll describe my process again:
>
> Load a.org and b.org into `org-babel-library-of-babel` with `org-babel-lob-ingest`. Good.
> Check -- and yes, both functions are in `org-babel-library-of-babel` and seem to be ready
> and "live." But when I try to call them in c.org, org-mode has no knowledge of them. Then
> I try #+call and #+lob on a b.org function. Still no knowledge of it. At this point I'm
> not sure LOB works -- or I have a mistaken idea of what it is and what it does.
>

org-babel-lob-ingest adds files to the LOB (i.e. it's as if you had the
code blocks in your file explicitly). But you still need to define the
function, i.e. evaluate the code block. IOW, you need to call (org-sbe
"func") in the buffer where you are going to use "func" I think. See my
other post re. your lisp/slime attempts.

--
Nick




reply via email to

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