From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lawrence Bottorff Subject: Library of Babel confusion Date: Tue, 3 Apr 2018 16:31:57 -0400 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000178c0b0568f7998c" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53223) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f3Sb2-0002Xk-CT for emacs-orgmode@gnu.org; Tue, 03 Apr 2018 16:32:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f3Sb1-0006BE-BA for emacs-orgmode@gnu.org; Tue, 03 Apr 2018 16:32:00 -0400 Received: from mail-ot0-x22a.google.com ([2607:f8b0:4003:c0f::22a]:36298) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f3Sb1-0006AF-5N for emacs-orgmode@gnu.org; Tue, 03 Apr 2018 16:31:59 -0400 Received: by mail-ot0-x22a.google.com with SMTP id n40-v6so20885518otd.3 for ; Tue, 03 Apr 2018 13:31:59 -0700 (PDT) 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" To: emacs-orgmode Mailinglist --000000000000178c0b0568f7998c Content-Type: text/plain; charset="UTF-8" I've been trying to grok LOB again. So I've cloned the worg git and library-of-babel.el is one of the files. org-babel-lob-injest didn't work, so I customized org-babel-lob-files and inserted .../worg/library-of-babel.el . . . and it did in fact get added to my init.el under the custom-set-variables: '(org-babel-lob-files (quote ("~/org/worg/library-of-babel.org"))) I checked org-babel-library-of-babel variable, and the new things seemed to be there, although it's rather mind-bending to know I will be calling LOB code that is internally stored inside of an association list. Now, in my org file I put this: #+lob: write(file="jsontest") and try C-c C-c on it. Nothing. My minibuffer says "local setup has been refreshed". How does one use, call a LOB function? Also, while I'm demonstrating my rank noobian-ness, I try this: #+name: myelsquare #+header: :var x=0 #+begin_src emacs-lisp (* x x) #+end_src #+call: myelsquare(x=6) #+RESULTS: : 36 but this results in #+name: myelsquare #+header: :var x=0 #+begin_src emacs-lisp (defun myelsquare (x) (* x x)) #+end_src #+call: myelsquare(x=6) #+RESULTS: : myelsquare2 After a #+call:... I use C-c C-c to evaluate it. What am I missing here? LB --000000000000178c0b0568f7998c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I've been trying to grok LOB again. So I've cloned= the worg git and library-of-babel.el is one of the files. org-babel-lob-in= jest didn't work, so I customized org-babel-lob-files and inserted .../= worg/library-of-babel.el . . . and it did in fact get added to my init.el u= nder the custom-set-variables:

=C2=A0'(org-babel-lob= -files (quote ("~/org/worg/lib= rary-of-babel.org")))

I checked org-b= abel-library-of-babel variable, and the new things seemed to be there, alth= ough it's rather mind-bending to know I will be calling LOB code that i= s internally stored inside of an association list.

Now, in my org file I put this:

#+lob: write(file= =3D"jsontest")

and try C-c C-c on it= . Nothing. My minibuffer says "local setup has been refreshed". H= ow does one use, call a LOB function? Also, while I'm demonstrating my = rank noobian-ness, I try this:

#+name: myelsq= uare
#+header: :var x=3D0
#+begin_src emacs-lisp
<= div>=C2=A0 (* x x)
#+end_src

#+call: mye= lsquare(x=3D6)

#+RESULTS:
: 36

but this results in

#+n= ame: myelsquare
#+header: :var x=3D0
#+begin_src emacs-= lisp
=C2=A0 (defun myelsquare (x)
=C2=A0 =C2=A0 =C2=A0 = (* x x))
#+end_src

#+call: myelsquare(x= =3D6)

#+RESULTS:
: myelsquare= 2

After a #+call:... I use C-c C-c to evalua= te it. What am I missing here?

LB
--000000000000178c0b0568f7998c--