From mboxrd@z Thu Jan 1 00:00:00 1970 From: Robert McIntyre Subject: [PATCH] Adding support for :results output for clojure src blocks. Date: Tue, 12 Jul 2011 23:56:56 -0400 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=000e0cd32d1e56ee7a04a7eb6819 Return-path: Received: from eggs.gnu.org ([140.186.70.92]:38819) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QgqZH-0005tm-LE for emacs-orgmode@gnu.org; Tue, 12 Jul 2011 23:57:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QgqZG-0008Py-PC for emacs-orgmode@gnu.org; Tue, 12 Jul 2011 23:56:59 -0400 Received: from mail-pv0-f169.google.com ([74.125.83.169]:47139) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QgqZG-0008Ps-K4 for emacs-orgmode@gnu.org; Tue, 12 Jul 2011 23:56:58 -0400 Received: by pvc12 with SMTP id 12so5129164pvc.0 for ; Tue, 12 Jul 2011 20:56:56 -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 --000e0cd32d1e56ee7a04a7eb6819 Content-Type: multipart/alternative; boundary=000e0cd32d1e56ee7304a7eb6817 --000e0cd32d1e56ee7304a7eb6817 Content-Type: text/plain; charset=ISO-8859-1 This small patch handles :results output for clojure src blocks by using clojure's with-out-str function. Please let me know if I've done anything wrong as this is my first patch to org-mode. sincerely, --Robert McIntyre --000e0cd32d1e56ee7304a7eb6817 Content-Type: text/html; charset=ISO-8859-1 This small patch handles :results output for clojure src blocks by using clojure's with-out-str function.

Please let me know if I've done anything wrong as this is my first patch to org-mode.

sincerely,
--Robert McIntyre
--000e0cd32d1e56ee7304a7eb6817-- --000e0cd32d1e56ee7a04a7eb6819 Content-Type: text/x-patch; charset=US-ASCII; name="ob-clojure.el.diff" Content-Disposition: attachment; filename="ob-clojure.el.diff" Content-Transfer-Encoding: base64 X-Attachment-Id: f_gq1r6yte0 ZGlmZiAtLWdpdCBhL2xpc3Avb2ItY2xvanVyZS5lbCBiL2xpc3Avb2ItY2xvanVyZS5lbAppbmRl eCBhNzJiMTRjLi4wMDAxM2I4IDEwMDY0NAotLS0gYS9saXNwL29iLWNsb2p1cmUuZWwKKysrIGIv bGlzcC9vYi1jbG9qdXJlLmVsCkBAIC02MiwxNiArNjIsMjIgQEAKIAkJCSAgICAgdmFycyAiXG4g ICAgICAiKQogCQkJICAgICJdXG4iIGJvZHkgIikiKQogCQkgIGJvZHkpKSkpCi0gICAgKGlmIChv ciAobWVtYmVyICJjb2RlIiByZXN1bHQtcGFyYW1zKQotCSAgICAobWVtYmVyICJwcCIgcmVzdWx0 LXBhcmFtcykpCi0JKGZvcm1hdAotCSAoY29uY2F0Ci0JICAiKGxldCBbb3JnLW1vZGUtcHJpbnQt Y2F0Y2hlciAoamF2YS5pby5TdHJpbmdXcml0ZXIuKV0gIgotCSAgIihjbG9qdXJlLnBwcmludC93 aXRoLXBwcmludC1kaXNwYXRjaCBjbG9qdXJlLnBwcmludC8lcy1kaXNwYXRjaCAiCi0JICAiKGNs b2p1cmUucHByaW50L3BwcmludCAoZG8gJXMpIG9yZy1tb2RlLXByaW50LWNhdGNoZXIpICIKLQkg ICIoc3RyIG9yZy1tb2RlLXByaW50LWNhdGNoZXIpKSkiKQotCSAoaWYgKG1lbWJlciAiY29kZSIg cmVzdWx0LXBhcmFtcykgImNvZGUiICJzaW1wbGUiKSBib2R5KQotICAgICAgYm9keSkpKQorICAg IChjb25kIAorICAgICAoKG9yIChtZW1iZXIgImNvZGUiIHJlc3VsdC1wYXJhbXMpCisJICAobWVt YmVyICJwcCIgcmVzdWx0LXBhcmFtcykpCisgICAgICAoZm9ybWF0CisgICAgICAgKGNvbmNhdAor CSIobGV0IFtvcmctbW9kZS1wcmludC1jYXRjaGVyIChqYXZhLmlvLlN0cmluZ1dyaXRlci4pXSAi CisJIihjbG9qdXJlLnBwcmludC93aXRoLXBwcmludC1kaXNwYXRjaCBjbG9qdXJlLnBwcmludC8l cy1kaXNwYXRjaCAiCisJIihjbG9qdXJlLnBwcmludC9wcHJpbnQgKGRvICVzKSBvcmctbW9kZS1w cmludC1jYXRjaGVyKSAiCisJIihzdHIgb3JnLW1vZGUtcHJpbnQtY2F0Y2hlcikpKSIpCisgICAg ICAgKGlmIChtZW1iZXIgImNvZGUiIHJlc3VsdC1wYXJhbXMpICJjb2RlIiAic2ltcGxlIikgYm9k eSkpCisgICAgIDs7IGlmICg6cmVzdWx0cyBvdXRwdXQpLCBjb2xsZWN0IHByaW50ZWQgb3V0cHV0 IAorICAgICAoKG1lbWJlciAib3V0cHV0IiByZXN1bHQtcGFyYW1zKQorICAgICAgKGZvcm1hdCAi KGNsb2p1cmUuY29yZS93aXRoLW91dC1zdHIgJXMpIiBib2R5KSkKKyAgICAgKHQgYm9keSkpKSkK KworCiAKIChkZWZ1biBvcmctYmFiZWwtZXhlY3V0ZTpjbG9qdXJlIChib2R5IHBhcmFtcykKICAg IkV4ZWN1dGUgYSBibG9jayBvZiBDbG9qdXJlIGNvZGUgd2l0aCBCYWJlbC4iCg== --000e0cd32d1e56ee7a04a7eb6819--