emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Lawrence Bottorff <borgauf@gmail.com>
To: Nick Dokos <ndokos@gmail.com>
Cc: emacs-orgmode Mailinglist <emacs-orgmode@gnu.org>
Subject: Re: How does Library of Babel actually work?
Date: Sat, 31 Oct 2015 16:25:15 +0000	[thread overview]
Message-ID: <CAFAhFSVy-rbKQmaiX7F3dRBEx0idy1=ThwsdTBX1E3GLx7BXmg@mail.gmail.com> (raw)
In-Reply-To: <87fv0r825k.fsf@pierrot.dokosmarshall.org>

[-- Attachment #1: Type: text/plain, Size: 1530 bytes --]

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 <ndokos@gmail.com> wrote:

> Lawrence Bottorff <borgauf@gmail.com> 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
>
>
>

[-- Attachment #2: Type: text/html, Size: 2321 bytes --]

      reply	other threads:[~2015-10-31 16:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-31 15:10 How does Library of Babel actually work? Lawrence Bottorff
2015-10-31 15:29 ` John Kitchin
2015-10-31 15:53 ` Nick Dokos
2015-10-31 16:25   ` Lawrence Bottorff [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAFAhFSVy-rbKQmaiX7F3dRBEx0idy1=ThwsdTBX1E3GLx7BXmg@mail.gmail.com' \
    --to=borgauf@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=ndokos@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).