From mboxrd@z Thu Jan 1 00:00:00 1970 From: Oleh Subject: [PATCH] ob-ruby.el fix for :session parameter Date: Mon, 21 Oct 2013 13:15:59 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=047d7bd91a04a74f2104e93e68e9 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55209) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VYDSs-0007qg-Fo for emacs-orgmode@gnu.org; Mon, 21 Oct 2013 07:16:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VYDSr-0007fP-Bq for emacs-orgmode@gnu.org; Mon, 21 Oct 2013 07:16:02 -0400 Received: from mail-wi0-x229.google.com ([2a00:1450:400c:c05::229]:42106) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VYDSq-0007fL-RD for emacs-orgmode@gnu.org; Mon, 21 Oct 2013 07:16:01 -0400 Received: by mail-wi0-f169.google.com with SMTP id cb5so5002517wib.0 for ; Mon, 21 Oct 2013 04:15:59 -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: org mode --047d7bd91a04a74f2104e93e68e9 Content-Type: text/plain; charset=ISO-8859-1 Hi all, I attach a patch to change from this behavior: #+begin_src ruby :session :results output s = "1" s = "2" s = "3" puts s #+end_src #+RESULTS: : => "1" : => "2" : => "3" : 3 To this behavior #+begin_src ruby :session :results output s = "1" s = "2" s = "3" puts s #+end_src #+RESULTS: : : 3 I just wrap the code in "conf.echo=false\n" and "\nconf.echo=true\n". I have to set it back to true, otherwise it hangs. regards, Oleh --047d7bd91a04a74f2104e93e68e9 Content-Type: application/octet-stream; name="0001-ob-ruby.el-fix-result-of-results-output-session-comb.patch" Content-Disposition: attachment; filename="0001-ob-ruby.el-fix-result-of-results-output-session-comb.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_hn1ly3yn0 RnJvbSBlMjdmMjQ4ZjU4MjU4Yjc4MjgwZTY5Y2Q3ODE0MGU5MzU1MjcyNDVlIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBPbGVoIEtyZWhlbCA8b2h3b2Vvd2hvQGdtYWlsLmNvbT4KRGF0 ZTogTW9uLCAyMSBPY3QgMjAxMyAxMzowMzoyOCArMDIwMApTdWJqZWN0OiBbUEFUQ0hdIG9iLXJ1 YnkuZWw6IGZpeCByZXN1bHQgb2YgOnJlc3VsdHMgb3V0cHV0IDpzZXNzaW9uCiBjb21iaW5hdGlv bi4KCiogbGlzcC9vYi1ydWJ5LmVsIChvcmctYmFiZWwtcnVieS1ldmFsdWF0ZSk6CiAgc2V0IGNv bmYuZWNobz1mYWxzZSBmb3IgdGhlIGR1cmF0aW9uIG9mIGV2YWx1YXRpb24uCgoqIHRlc3Rpbmcv bGlzcC90ZXN0LW9iLXJ1YnkuZWwgKHRlc3Qtb2ItcnVieS9zZXNzaW9uLW91dHB1dCk6IG5ldyB0 ZXN0LgotLS0KIGxpc3Avb2ItcnVieS5lbCAgICAgICAgICAgICAgfCAzMiArKysrKysrKysrKysr KystLS0tLS0tLS0tLS0tLQogdGVzdGluZy9saXNwL3Rlc3Qtb2ItcnVieS5lbCB8IDQ5ICsrKysr KysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrCiAyIGZpbGVzIGNoYW5nZWQs IDY2IGluc2VydGlvbnMoKyksIDE1IGRlbGV0aW9ucygtKQogY3JlYXRlIG1vZGUgMTAwNjQ0IHRl c3RpbmcvbGlzcC90ZXN0LW9iLXJ1YnkuZWwKCmRpZmYgLS1naXQgYS9saXNwL29iLXJ1YnkuZWwg Yi9saXNwL29iLXJ1YnkuZWwKaW5kZXggYWY1MjgzMS4uZGRiZDBmOCAxMDA2NDQKLS0tIGE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