From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrzej Lichnerowicz Subject: org-babel functions for Io evaluation Date: Sat, 21 Jan 2012 13:59:19 +0100 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=e89a8f6438ae9248f604b7095db6 Return-path: Received: from eggs.gnu.org ([140.186.70.92]:34260) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RoaXS-0004CL-AM for emacs-orgmode@gnu.org; Sat, 21 Jan 2012 07:59:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RoaXQ-0007XZ-OV for emacs-orgmode@gnu.org; Sat, 21 Jan 2012 07:59:22 -0500 Received: from mail-tul01m020-f169.google.com ([209.85.214.169]:61436) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RoaXQ-0007XT-Ho for emacs-orgmode@gnu.org; Sat, 21 Jan 2012 07:59:20 -0500 Received: by obbta7 with SMTP id ta7so2111344obb.0 for ; Sat, 21 Jan 2012 04:59:19 -0800 (PST) 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 --e89a8f6438ae9248f604b7095db6 Content-Type: text/plain; charset=ISO-8859-1 Hello list. Attached file (also available at https://gist.github.com/1652684), implements org-babel evaluation functions for Io language (http://iolanguage.org). It's not yet fully functional (no value results, and session support) as I'm still learning org-mode from developer perspective, but if you're interested, I'd be happy to contribute it. Best regards, Andrzej --e89a8f6438ae9248f604b7095db6 Content-Type: text/x-emacs-lisp; charset=US-ASCII; name="ob-io.el" Content-Disposition: attachment; filename="ob-io.el" Content-Transfer-Encoding: base64 X-Attachment-Id: f_gxon8zkr0 Ozs7IG9iLWlvLmVsIC0tLSBvcmctYmFiZWwgZnVuY3Rpb25zIG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