From mboxrd@z Thu Jan 1 00:00:00 1970 From: kima VCRP Subject: org-babel clojure support outdated/not working Date: Mon, 28 May 2012 23:01:25 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=14dae93998355f44f604c11f058a Return-path: Received: from eggs.gnu.org ([208.118.235.92]:45712) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SZ74F-0001fC-DF for emacs-orgmode@gnu.org; Mon, 28 May 2012 17:01:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SZ74C-0003BU-4A for emacs-orgmode@gnu.org; Mon, 28 May 2012 17:01:30 -0400 Received: from mail-ob0-f169.google.com ([209.85.214.169]:56431) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SZ74B-0003AC-TL for emacs-orgmode@gnu.org; Mon, 28 May 2012 17:01:28 -0400 Received: by obbwd18 with SMTP id wd18so7324603obb.0 for ; Mon, 28 May 2012 14:01:25 -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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --14dae93998355f44f604c11f058a Content-Type: text/plain; charset=ISO-8859-1 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 --14dae93998355f44f604c11f058a Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hello Org-people.
After using org-mode for organisation, I came around = org-babel and it's capabilities of literate programming.
I wi= ll do some literate programming with clojure in the future and wanted to us= e org-babel with clojure, but the instructions at=A0
I described this and my= naive workarounds in my blog:=A0http://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 ?=A0
thanks
--14dae93998355f44f604c11f058a-- 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