emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Babel: How to call code in one org file into another org file
@ 2015-10-30 20:21 Lawrence Bottorff
  2015-10-30 20:53 ` John Kitchin
                   ` (2 more replies)
  0 siblings, 3 replies; 18+ messages in thread
From: Lawrence Bottorff @ 2015-10-30 20:21 UTC (permalink / raw)
  To: emacs-orgmode Mailinglist

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

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 a Lisp block that calls a function from another org file. I'll
have SLIME running, of course.


file1.org:
...
 #+begin_src lisp
(defun foo ()
   (...))
#+end_src

is then called from. . .

file2.org:
...
#+begin_src lisp
(defun baa ()
  (foo))
#+end_src


LB

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

^ permalink raw reply	[flat|nested] 18+ messages in thread
* Re: Babel: How to call code in one org file into another org file
@ 2015-10-31  2:24 John Kitchin
  2015-10-31  2:33 ` Lawrence Bottorff
  0 siblings, 1 reply; 18+ messages in thread
From: John Kitchin @ 2015-10-31  2:24 UTC (permalink / raw)
  To: Lawrence Bottorff, emacs-orgmode@gnu org

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

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

@John Kitchin: I can't seem to find a `org-babel-load-file`.

 



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

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2015-11-02 13:37 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-30 20:21 Babel: How to call code in one org file into another org file Lawrence Bottorff
2015-10-30 20:53 ` John Kitchin
2015-10-30 20:55 ` Thomas S. Dye
2015-10-30 22:57   ` briangpowell .
2015-10-31  0:14   ` Lawrence Bottorff
     [not found]     ` <m21tcbx2iy.fsf@andrew.cmu.edu>
2015-10-31  2:12       ` Lawrence Bottorff
2015-10-31  2:15         ` Lawrence Bottorff
2015-10-31  3:08     ` Thomas S. Dye
2015-10-31  3:58       ` Lawrence Bottorff
2015-10-31 15:41         ` Nick Dokos
2015-10-31 16:17           ` Lawrence Bottorff
2015-10-31 16:34             ` Nick Dokos
2015-10-31 16:51               ` Lawrence Bottorff
2015-11-02  7:09                 ` Eric S Fraga
2015-11-02 13:36                   ` Nick Dokos
2015-10-31  9:57 ` Rasmus
  -- strict thread matches above, loose matches on Subject: below --
2015-10-31  2:24 John Kitchin
2015-10-31  2:33 ` Lawrence Bottorff

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).