From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: Babel: How to call code in one org file into another org file Date: Fri, 30 Oct 2015 16:53:47 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48978) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZsGgM-0000lW-Ai for emacs-orgmode@gnu.org; Fri, 30 Oct 2015 16:53:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZsGgI-0006vw-88 for emacs-orgmode@gnu.org; Fri, 30 Oct 2015 16:53:54 -0400 Received: from mail-qg0-x231.google.com ([2607:f8b0:400d:c04::231]:36042) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZsGgI-0006vs-3a for emacs-orgmode@gnu.org; Fri, 30 Oct 2015 16:53:50 -0400 Received: by qgad10 with SMTP id d10so71864825qga.3 for ; Fri, 30 Oct 2015 13:53:49 -0700 (PDT) In-reply-to: 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: Lawrence Bottorff Cc: emacs-orgmode Mailinglist 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 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 -- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu