From mboxrd@z Thu Jan 1 00:00:00 1970 From: tsd@tsdye.com (Thomas S. Dye) Subject: Re: Contribution: ob-groovy.el Date: Thu, 26 Dec 2013 14:08:57 -1000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53762) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VwKza-0000cB-DV for emacs-orgmode@gnu.org; Thu, 26 Dec 2013 19:09:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VwKzU-0000vA-6u for emacs-orgmode@gnu.org; Thu, 26 Dec 2013 19:09:30 -0500 Received: from alt-proxy33.mail.unifiedlayer.com ([70.40.209.146]:35627) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1VwKzT-0000uK-Vu for emacs-orgmode@gnu.org; Thu, 26 Dec 2013 19:09:24 -0500 In-Reply-To: (Miro Bezjak's message of "Thu, 26 Dec 2013 22:25:15 +0100") 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: Miro Bezjak Cc: emacs-orgmode@gnu.org Aloha Miro, Thanks for your contribution to Org mode. Have you signed the FSF papers so that ob-groovy.el can be added to Org mode? See: http://orgmode.org/worg/org-contribute.html#sec-6 Contributions by authors who have not signed the FSF papers are typically added to the contrib directory and are not distributed with Emacs. Also, are you willing to draft documentation? For a link to a documentation template, see: http://orgmode.org/worg/org-contrib/babel/languages.html I was going to suggest that you use the Scala documentation as a guide, but it doesn't exist! In fact, Scala doesn't appear in Worg's list of languages supported by Babel. One of those days ... Thanks again for your contribution. All the best, Tom Miro Bezjak writes: > Hi all, > > I would like to contribute org-babel functions for Groovy evaluation. I > simply > copy/pasted ob-scala.el and made appropriate changes. > > I'm attaching ob-groovy.el as a file. > > All 3 tests pass, although I haven't created `testing/test-ob-groovy.el` - > I'll > look into that. > > --- testing last result ---------------- > #+BEGIN_SRC groovy > println "ignored" > 1 + 2 > #+END_SRC > > #+RESULTS: > : 3 > ---------------------------------------- > > --- testing results output -------------- > #+BEGIN_SRC groovy :results output > println '1' > println '2' > println 1 + 2 > #+END_SRC > > #+RESULTS: > =1 > 2 > 3 > ---------------------------------------- > > --- testing table ---------------------- > #+BEGIN_SRC groovy :results verbatim raw > """ > | 1 | 2 > |-- > | a | b > """.trim() > #+END_SRC > > #+RESULTS: > | 1 | 2 | > |---+---| > | a | b | > ---------------------------------------- > > > Kind Regards, > Miro Bezjak > Hi all, > > I would like to contribute org-babel functions for Groovy evaluation. > I simply > copy/pasted ob-scala.el and made appropriate changes. > > I'm attaching ob-groovy.el as a file. > > All 3 tests pass, although I haven't created > `testing/test-ob-groovy.el` - I'll > look into that. > > --- testing last result ---------------- > #+BEGIN_SRC groovy > println "ignored" > 1 + 2 > #+END_SRC > > #+RESULTS: > : 3 > ---------------------------------------- > > --- testing results output -------------- > #+BEGIN_SRC groovy :results output > println '1' > println '2' > println 1 + 2 > #+END_SRC > > #+RESULTS: > =1 > 2 > 3 > ---------------------------------------- > > --- testing table ---------------------- > #+BEGIN_SRC groovy :results verbatim raw > """ > | 1 | 2 > |-- > | a | b > """.trim() > #+END_SRC > > #+RESULTS: > | 1 | 2 | > |---+---| > | a | b | > ---------------------------------------- > > Kind Regards, > Miro Bezjak > > -- Thomas S. Dye http://www.tsdye.com