From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lawrence Bottorff Subject: Re: How does Library of Babel actually work? Date: Sat, 31 Oct 2015 16:25:15 +0000 Message-ID: References: <87fv0r825k.fsf@pierrot.dokosmarshall.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11410c323463f0052368fd1e Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44607) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZsYxx-0002fb-CZ for emacs-orgmode@gnu.org; Sat, 31 Oct 2015 12:25:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZsYxw-0003P3-At for emacs-orgmode@gnu.org; Sat, 31 Oct 2015 12:25:17 -0400 Received: from mail-lf0-x234.google.com ([2a00:1450:4010:c07::234]:33994) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZsYxv-0003Ox-V7 for emacs-orgmode@gnu.org; Sat, 31 Oct 2015 12:25:16 -0400 Received: by lfgh9 with SMTP id h9so260295lfg.1 for ; Sat, 31 Oct 2015 09:25:15 -0700 (PDT) In-Reply-To: <87fv0r825k.fsf@pierrot.dokosmarshall.org> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Nick Dokos Cc: emacs-orgmode Mailinglist --001a11410c323463f0052368fd1e Content-Type: text/plain; charset=UTF-8 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 wrote: > Lawrence Bottorff 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 > > > --001a11410c323463f0052368fd1e Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
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 babe= l doesn't really know about LOB until my file explicitly tells it. Doin= g `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 <ndokos@gmail.com> wrote:
Lawrence Bottorff <borgauf@gmail.com> writes:

> New thread. Anyway, putting lisp/SLIME aside, I experimented with emac= s lisp -- and got
> the same results, i.e., no real LOB functionality, despite proper load= ing. I must be doing
> something wrong? I'll describe my process again:
>
> Load a.o= rg and b.= org into=C2=A0`org-babel-library-of-babel` with `org-babel-lob-ingest`.= Good.
> Check -- and yes, both functions are in=C2=A0`org-babel-library-of-bab= el` and seem to be ready
> and "live." But when I try to call them in c.org, org-mode has no kno= wledge of them. Then
> I try #+call and #+lob on a b.org function. Still no knowledge of it. At this p= oint 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



--001a11410c323463f0052368fd1e--