Re: [O] Babel: How to call code in one org file into another org file

2015-11-02 Thread Nick Dokos
Eric S Fraga writes: > On Saturday, 31 Oct 2015 at 16:51, Lawrence Bottorff wrote: >> I guess I'm saying that the whole `org-babel-lob-ingest` into >> `org-babel-library-of-babel` exercise should make code ready and available. > > But it does. There are two levels here: the babel codes and the r

Re: [O] Babel: How to call code in one org file into another org file

2015-11-01 Thread Eric S Fraga
On Saturday, 31 Oct 2015 at 16:51, Lawrence Bottorff wrote: > I guess I'm saying that the whole `org-babel-lob-ingest` into > `org-babel-library-of-babel` exercise should make code ready and available. But it does. There are two levels here: the babel codes and the results of the codes. If your

Re: [O] Babel: How to call code in one org file into another org file

2015-10-31 Thread Lawrence Bottorff
I guess I'm saying that the whole `org-babel-lob-ingest` into `org-babel-library-of-babel` exercise should make code ready and available. Otherwise (especially with the extra `org-babel-lob-ingest` in Local Variable step I mentioned), what John Kitchin suggested with `org-babel-load-file` is just a

Re: [O] Babel: How to call code in one org file into another org file

2015-10-31 Thread Nick Dokos
Lawrence Bottorff 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 fil

Re: [O] Babel: How to call code in one org file into another org file

2015-10-31 Thread Lawrence Bottorff
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 beha

Re: [O] Babel: How to call code in one org file into another org file

2015-10-31 Thread Nick Dokos
Lawrence Bottorff writes: > I would use local variables for this--something like (untested): > > # eval: (org-babel-lob-ingest path/to/your/file) > # eval: (sbe "my-add") > # eval: (sbe "multi_x2") > > Computer savvy Org moders don't like eval because anything can happ

Re: [O] Babel: How to call code in one org file into another org file

2015-10-31 Thread Rasmus
Hi Lawrence, Lawrence Bottorff writes: > There are many, many Babel examples, but I can't seem to find this > functionality: A function in a Lisp code block in one org file is to be > called from a Lisp code block in another org file. Is this possible? I know > you can stick stuff into your pers

Re: [O] Babel: How to call code in one org file into another org file

2015-10-30 Thread Lawrence Bottorff
> > > I would use local variables for this--something like (untested): > > # eval: (org-babel-lob-ingest path/to/your/file) > # eval: (sbe "my-add") > # eval: (sbe "multi_x2") > > Computer savvy Org moders don't like eval because anything can happen, > but if you're willing to trust yourself, then

Re: [O] Babel: How to call code in one org file into another org file

2015-10-30 Thread Thomas S . Dye
Aloha Lawrence, Lawrence Bottorff writes: > Doing M-x org-babel-lob-files called up a customization buffer that allowed > me to put in many separate file paths. I did this for ../a.org and ../b.org. > > a.org: > > #+name: myadd > #+begin_src lisp :session > (defun myadd (x y) > (+ x y)) > #+en

Re: [O] Babel: How to call code in one org file into another org file

2015-10-30 Thread Lawrence Bottorff
Org-mode version 8.3.2 (8.3.2-10-g00dacd-elpa @ ../.emacs.d/elpa/org-20151005/) Did you all see my post directly before? The whole LOB idea seems not to work with Lisp/SLIME. . .

Re: [O] Babel: How to call code in one org file into another org file

2015-10-30 Thread John Kitchin
Odd. I found this I wrote before http://kitchingroup.cheme.cmu.edu/blog/2014/06/24/Using-org-files-like-el-files/ What org version do you have? On October 30, 2015, at 10:15 PM, Lawrence Bottorff wrote: @John Kitchin: I can't seem to find a `org-babel-load-file`.  

Re: [O] Babel: How to call code in one org file into another org file

2015-10-30 Thread Lawrence Bottorff
In my init file I have (custom-set-variables . . . '(org-babel-lob-files (quote ("/home/hercynian/org/babeltest/a.org" "/home/hercynian/org/babeltest/ b.org"))) that, of course, lasted an Emacs reboot after I had set them with customization. But then right after Emacs reboot, looking

Re: [O] Babel: How to call code in one org file into another org file

2015-10-30 Thread Lawrence Bottorff
@John Kitchin: I can't seem to find a `org-babel-load-file`.

Re: [O] Babel: How to call code in one org file into another org file

2015-10-30 Thread Lawrence Bottorff
Doing M-x org-babel-lob-files called up a customization buffer that allowed me to put in many separate file paths. I did this for ../a.org and ../b.org. a.org: #+name: myadd #+begin_src lisp :session (defun myadd (x y) (+ x y)) #+end_src b.org: #+name: multi_x2 #+begin_src lisp :session (defu

Re: [O] Babel: How to call code in one org file into another org file

2015-10-30 Thread briangpowell .
Could create a named pipe and have one org-mode file write to it and another org-mode file read from it. On Fri, Oct 30, 2015 at 4:55 PM, Thomas S. Dye wrote: > Aloha Lawrence, > > Lawrence Bottorff writes: > > > There are many, many Babel examples, but I can't seem to find this > > functionali

Re: [O] Babel: How to call code in one org file into another org file

2015-10-30 Thread Thomas S . Dye
Aloha Lawrence, Lawrence Bottorff writes: > There are many, many Babel examples, but I can't seem to find this > functionality: A function in a Lisp code block in one org file is to be > called from a Lisp code block in another org file. Is this possible? I know > you can stick stuff into your p

Re: [O] Babel: How to call code in one org file into another org file

2015-10-30 Thread John Kitchin
I don't think this is possible. You probably need some tangling and loading to make it happen the way I understand it. Lawrence Bottorff writes: > There are many, many Babel examples, but I can't seem to find this > functionality: A function in a Lisp code block in one org file is to be > called

[O] Babel: How to call code in one org file into another org file

2015-10-30 Thread Lawrence Bottorff
There are many, many Babel examples, but I can't seem to find this functionality: A function in a Lisp code block in one org file is to be called from a Lisp code block in another org file. Is this possible? I know you can stick stuff into your personal "Library of Babel," but I just want to write