From mboxrd@z Thu Jan 1 00:00:00 1970 From: Oleh Subject: [PATCH] Add ob-J.el Date: Fri, 20 Dec 2013 14:51:30 +0100 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=089e0102e6da46bcf004edf79300 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48898) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vu0UM-0001ut-PV for emacs-orgmode@gnu.org; Fri, 20 Dec 2013 08:51:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vu0UG-0005oB-PQ for emacs-orgmode@gnu.org; Fri, 20 Dec 2013 08:51:38 -0500 Received: from mail-wg0-x233.google.com ([2a00:1450:400c:c00::233]:59077) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vu0UG-0005ni-Ep for emacs-orgmode@gnu.org; Fri, 20 Dec 2013 08:51:32 -0500 Received: by mail-wg0-f51.google.com with SMTP id b13so2450030wgh.6 for ; Fri, 20 Dec 2013 05:51:30 -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: org mode --089e0102e6da46bcf004edf79300 Content-Type: text/plain; charset=ISO-8859-1 Hi all, Here's a patch to add babel support for J. I couldn't figure out how to make ob-J.elc a target for make, maybe someone can fix this. regards, Oleh --089e0102e6da46bcf004edf79300 Content-Type: text/x-patch; charset=US-ASCII; name="0001-Add-org-babel-support-for-J.patch" Content-Disposition: attachment; filename="0001-Add-org-babel-support-for-J.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_hpfhtfuq0 RnJvbSAwMTM5YWY4NTM0ZGMzMzkxMWVkMWEyNGE5NzAyYTE1NmFlNDZjOTlkIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwM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ICJJbml0aWF0 ZSBhIEogc2Vzc2lvbi4KK1NFU1NJT04gaXMgYSBwYXJhbWV0ZXIgZ2l2ZW4gYnkgb3JnLWJhYmVs LiIKKyAgKHVubGVzcyAoc3RyaW5nPSBzZXNzaW9uICJub25lIikKKyAgICAocmVxdWlyZSAnai1j b25zb2xlKQorICAgIChqLWNvbnNvbGUtZW5zdXJlLXNlc3Npb24pKSkKKworKHByb3ZpZGUgJ29i LUopCisKKzs7OyBvYi1KLmVsIGVuZHMgaGVyZQotLSAKMS44LjQKCg== --089e0102e6da46bcf004edf79300--