From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: org-babel clojure support outdated/not working Date: Tue, 29 May 2012 09:41:22 -0600 Message-ID: <87fwaj0zbx.fsf@gmx.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:41638) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SZOYI-0000e2-Gk for emacs-orgmode@gnu.org; Tue, 29 May 2012 11:41:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SZOYB-0003Vu-SL for emacs-orgmode@gnu.org; Tue, 29 May 2012 11:41:42 -0400 Received: from mailout-us.gmx.com ([74.208.5.67]:50973) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1SZOYB-0003VO-L2 for emacs-orgmode@gnu.org; Tue, 29 May 2012 11:41:35 -0400 In-Reply-To: (kima VCRP's message of "Mon, 28 May 2012 23:01:25 +0200") 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: kima VCRP Cc: emacs-orgmode@gnu.org kima VCRP writes: > Hello Org-people. > After using org-mode for organisation, I came around org-babel and it's > capabilities of literate programming. > I will do some literate programming with clojure in the future and wanted > to use org-babel with clojure, but the instructions at > http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-clojure.html are > not working anymore. > I described this and my naive workarounds in my blog: > http://kimavcrp.blogspot.de/2012/05/setting-up-org-mode-babel-with-clojure.html > Can you give me some advice/starting points to update clojure support or at > least the instruction manual ? > thanks Hi, Please search through these list archives for previous discussions of working with Clojure code blocks. Every time the clojure slime support changes small changes are required in ob-clojure.el as well. Generally the change is as simple as changing a single function name in the definition of the `org-babel-execute:clojure' function. Currently this function uses ;; -*- emacs-lisp -*- (slime-eval `(swank:eval-and-grab-output ,(buffer-substring-no-properties (point-min) (point-max))) (cdr (assoc :package params))) to evaluate a snippet of clojure code returning a string of the results. If you come up with a patch to ob-clojure.el please do share it on this list. Thanks, -- Eric Schulte http://cs.unm.edu/~eschulte