From mboxrd@z Thu Jan 1 00:00:00 1970 From: Asrail Subject: [PATCH] Babel: add results value support to Scala Date: Mon, 15 Oct 2012 16:39:08 -0300 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=047d7b33d8d6f23d8104cc1e3038 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:50228) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TNqVR-0001a1-AH for emacs-orgmode@gnu.org; Mon, 15 Oct 2012 15:39:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TNqVK-00041I-JE for emacs-orgmode@gnu.org; Mon, 15 Oct 2012 15:39:17 -0400 Received: from mail-pa0-f41.google.com ([209.85.220.41]:62451) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TNqVK-00040U-6p for emacs-orgmode@gnu.org; Mon, 15 Oct 2012 15:39:10 -0400 Received: by mail-pa0-f41.google.com with SMTP id fa10so5735068pad.0 for ; Mon, 15 Oct 2012 12:39:09 -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 --047d7b33d8d6f23d8104cc1e3038 Content-Type: text/plain; charset=ISO-8859-1 * lisp/ob-scala.el (org-babel-scala-wrapper-method): Use an scala block enclosing the submitted code The string representing an well formed block was not an Scala code. I put the string from the user into an block, surrounded by an call to replace the default output stream. --047d7b33d8d6f23d8104cc1e3038 Content-Type: application/octet-stream; name="0001-Babel-add-results-value-support-to-Scala.patch" Content-Disposition: attachment; filename="0001-Babel-add-results-value-support-to-Scala.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_h8bzlviw0 RnJvbSAwZDdiMWIzZTdlNWQ2M2E3N2ExZmU0N2NlZTgwZmQ3ZjdiY2I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